#705670 abcde: encodes to a wrong directory

#705670#5
Date:
2013-04-18 09:48:10 UTC
From:
To:
Dear Maintainer,

I ran into this weird situation with abcde:

When I set OUTPUTDIR to /home/laiti/flac, a directory '/home/laiti/flac/flac'
is created and files go there.
When I set OUTPUTDIR to /home/laiti/music, the files go to /home/laiti/music.

So on the first case abcde creates an extra directory 'flac' into the OUTPUTDIR
I’ve set and puts the files there.

So far I’ve found only this ugly workaround for the situation: $ cd
/home/laiti/flac && ln -s . flac.


laiti@nark:~$ cat .abcde.conf
CDDBPROTO=6
CDDBLOCALDIR=~/.cddb
CDDBCOPYLOCAL=y
FLACENCODERSYNTAX=flac
FLACOPTS='-8 -V'
CDROMREADERSYNTAX=cdparanoia
KEEPWAVS=n
CDSPEEDVALUE=8
SHOWCDDBFIELDS=year,genre
OUTPUTDIR=/home/laiti/flac
WAVOUTPUTDIR=/home/laiti/wav
KEEPWAVS=n
OUTPUTTYPE=flac
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}/${CDYEAR}_${ALBUMFILE}/${TRACKNUM}_-_${TRACKFILE}'
VAOUTPUTFORMAT='${OUTPUT}/kokoelmat/${YEARFILE}_${ALBUMFILE}/${TRACKNUM}_-_${TRACKFILE}'
MAXPROCS=2
COMMENT='abcde-flac'
EJECTCD=y

# terrible mess of tr and sed to create a safe, lowercase filename
mungefilename ()
{
      echo "$@" | tr \ / __ | tr \.\‐\$\!\'\’\”\“\"\?\&\;\:\,\[\]\(\) _
| tr -d \[:cntrl:\] | tr "[:upper:]" "[:lower:]" | sed s/[ÄÅäå]/a/g | sed
s/[ÖÕØöõø]/o/g | sed s/[Üü]/u/
}

mungegenre ()
{
       echo $CDGENRE | tr "[:upper:]" "[:lower:]"
}


Reported also for Ubuntu:
https://bugs.launchpad.net/ubuntu/+source/abcde/+bug/979228

#705670#8
Date:
2014-10-26 16:16:48 UTC
From:
To:
Hi,

I've never seen this happen myself - I'm surprised at what you're
reporting. Could you please generate a log by running under script
with set -x? It's probably easier to see what's happening that way.

#705670#13
Date:
2014-10-27 16:35:38 UTC
From:
To:
Sure thing!


$ cat abcde.sh
#!/bin/sh
set -x
abcde -v
abcde -N -z -V -D > abcde.log 2> abcde.debug.log


$ sh abcde.sh
+ abcde -v
This is abcde v2.5.4.
Usage: abcde [options] [tracks]
abcde -h for extra help
+ abcde -N -z -V -D

#705670#18
Date:
2015-06-05 09:27:51 UTC
From:
To:
Looks like $OUTPUT = $OUTPUTDIR + / + $OUTPUTFORMAT, at least in my
case. Is this intentional?