summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e7530e7)
Some quotes problems. Again.
Missing a 01 on an INDEX grep.
Starting bits to tag a CUE sheet on a single trac FLAC if available.
Abort if ABORT is defined.
git-svn-id: http://abcde.googlecode.com/svn/trunk@211
a0fa61bc-5347-0410-a1a9-
7f54aa4e1825
echo "-S <#> Set the CD speed"
echo "-t <#> Start the track numbering at a given number"
echo "-T <#> Same as -t but modifies tag numbering"
echo "-S <#> Set the CD speed"
echo "-t <#> Start the track numbering at a given number"
echo "-T <#> Same as -t but modifies tag numbering"
-echo "-u Use UNICODE tags and comments"
+echo "-u Use UNICODE (UTF8) tags and comments"
+echo "-U Do NOT use UNICODE (UTF8) tags and comments"
echo "-v Show version number and exit"
echo "-V Be a bit more verbose about what is happening behind the scenes"
echo "-x Eject CD after all tracks are read"
echo "-v Show version number and exit"
echo "-V Be a bit more verbose about what is happening behind the scenes"
echo "-x Eject CD after all tracks are read"
ALBUMFILE="$(mungefilename "$DALBUM")"
gettracknum
if [ "$VARIOUSARTISTS" = "y" ]; then
ALBUMFILE="$(mungefilename "$DALBUM")"
gettracknum
if [ "$VARIOUSARTISTS" = "y" ]; then
- OUTPUTFILE="$(eval echo "$VAOUTPUTFORMAT")"
+ OUTPUTFILE="$(eval echo \""$VAOUTPUTFORMAT\"")"
- OUTPUTFILE="$(eval echo "$OUTPUTFORMAT")"
+ OUTPUTFILE="$(eval echo \""$OUTPUTFORMAT\"")"
fi
OUTPUTFILES[$REPLAYINDEX]="$OUTPUTDIR/$OUTPUTFILE.$OUTPUT"
(( REPLAYINDEX = $REPLAYINDEX + 1 ))
fi
OUTPUTFILES[$REPLAYINDEX]="$OUTPUTDIR/$OUTPUTFILE.$OUTPUT"
(( REPLAYINDEX = $REPLAYINDEX + 1 ))
# Supported variables for OUTPUTFORMAT are GENRE, YEAR, ALBUMFILE,
# ARTISTFILE, TRACKFILE, and TRACKNUM.
if [ "$VARIOUSARTISTS" = "y" ]; then
# Supported variables for OUTPUTFORMAT are GENRE, YEAR, ALBUMFILE,
# ARTISTFILE, TRACKFILE, and TRACKNUM.
if [ "$VARIOUSARTISTS" = "y" ]; then
- OUTPUTFILE="$(eval echo "$VAOUTPUTFORMAT")"
+ OUTPUTFILE="$(eval echo \""$VAOUTPUTFORMAT\"")"
- OUTPUTFILE="$(eval echo "$OUTPUTFORMAT")"
+ OUTPUTFILE="$(eval echo \""$OUTPUTFORMAT\"")"
fi
if checkerrors "tagtrack-$OUTPUT-$1"; then :; else
# Once we know the specific output was successful, we can change
fi
if checkerrors "tagtrack-$OUTPUT-$1"; then :; else
# Once we know the specific output was successful, we can change
# TRACKNUM value before evaluation
gettracknum
if [ "$VARIOUSARTISTS" = "y" ]; then
# TRACKNUM value before evaluation
gettracknum
if [ "$VARIOUSARTISTS" = "y" ]; then
- OUTPUTFILE="$(eval echo "$VAOUTPUTFORMAT")"
+ OUTPUTFILE="$(eval echo \""$VAOUTPUTFORMAT\"")"
- OUTPUTFILE="$(eval echo "$OUTPUTFORMAT")"
+ OUTPUTFILE="$(eval echo \""$OUTPUTFORMAT\"")"
fi
if [ "$VARIOUSARTISTS" = "y" ]; then
if [ "$VAPLAYLISTDATAPREFIX" ] ; then
fi
if [ "$VARIOUSARTISTS" = "y" ]; then
if [ "$VAPLAYLISTDATAPREFIX" ] ; then
echo "TITLE \"$DALBUM\"" >> "$CUEFILE_OUT"
cat "$CUEFILE_IN" | while read line
do
echo "TITLE \"$DALBUM\"" >> "$CUEFILE_OUT"
cat "$CUEFILE_IN" | while read line
do
- if echo "$line" | grep "INDEX" > /dev/null 2>&1 ; then
+ if echo "$line" | grep "INDEX 01" > /dev/null 2>&1 ; then
eval track="\$TRACK$n"
n=$(expr $n + 1)
echo "TITLE \"$track\"" >> "$CUEFILE_OUT"
eval track="\$TRACK$n"
n=$(expr $n + 1)
echo "TITLE \"$track\"" >> "$CUEFILE_OUT"
CDDBMETHOD=cddb
CDDBURL="http://freedb.freedb.org/~cddb/cddb.cgi"
CDDBSUBMIT=freedb-submit@freedb.org
CDDBMETHOD=cddb
CDDBURL="http://freedb.freedb.org/~cddb/cddb.cgi"
CDDBSUBMIT=freedb-submit@freedb.org
HELLOINFO="$(whoami)@$(hostname)"
CDDBCOPYLOCAL="n"
CDDBLOCALPOLICY="always"
HELLOINFO="$(whoami)@$(hostname)"
CDDBCOPYLOCAL="n"
CDDBLOCALPOLICY="always"
t) STARTTRACKNUMBER="$OPTARG" ;;
T) STARTTRACKNUMBER="$OPTARG" ; STARTTRACKNUMBERTAG="y" ;;
u) CDDBPROTO=6 ;;
t) STARTTRACKNUMBER="$OPTARG" ;;
T) STARTTRACKNUMBER="$OPTARG" ; STARTTRACKNUMBERTAG="y" ;;
u) CDDBPROTO=6 ;;
v)
echo "This is abcde v$VERSION."
echo "Usage: abcde [options] [tracks]"
v)
echo "This is abcde v$VERSION."
echo "Usage: abcde [options] [tracks]"
[ "$FLACENCODERSYNTAX" = "default" ] && FLACENCODERSYNTAX=flac
[ "$DOTAG" = "y" ] && NEEDMETAFLAC=y
[ "$DOREPLAYGAIN" = "y" ] && NEEDMETAFLAC=y
[ "$FLACENCODERSYNTAX" = "default" ] && FLACENCODERSYNTAX=flac
[ "$DOTAG" = "y" ] && NEEDMETAFLAC=y
[ "$DOREPLAYGAIN" = "y" ] && NEEDMETAFLAC=y
+ [ "$ONETRACK" = "y" ] && [ "$MAKECUEFILE" = "y" ] && NEEDMETAFLAC=y
;;
spx)
[ "$SPEEXENCODERSYNTAX" = "default" ] && SPEEXENCODERSYNTAX=speexenc
;;
spx)
[ "$SPEEXENCODERSYNTAX" = "default" ] && SPEEXENCODERSYNTAX=speexenc
if checkstatus onetrack ; then ONETRACK=y ; fi
if [ "$ONETRACK" = "y" ]; then
if checkstatus onetrack ; then ONETRACK=y ; fi
if [ "$ONETRACK" = "y" ]; then
- # Reuse the CUEFILE in case we created it in a previous run
+ # Reuse the CUEFILE in case we created it (now or in a previous run)
if CUEFILE=$(checkstatus cuefile); then
IMPORTCUESHEET=y
fi
if CUEFILE=$(checkstatus cuefile); then
IMPORTCUESHEET=y
fi
fi
# Don't proceed with the rest of the loop if we can't encode
if [ "$ABORT" ]; then continue; fi
fi
# Don't proceed with the rest of the loop if we can't encode
if [ "$ABORT" ]; then continue; fi
+ ## FIXME ## Add here
+ ## run_command tagtrack-$OUTPUT-$1 $METAFLAC $METAFLACOPTS ${IMPORTCUESHEET:+--import-cuesheet-from="$ABCDETEMPDIR/$CUEFILE"} --import-tags-from=- "$ABCDETEMPDIR/track$1.$FLACOUTPUTCONTAINER"
# Set TRACKNUM, TRACKNAME
if [ -e "$CDDBDATA" ]; then
if [ "$ONETRACK" = "y" ]; then
# Set TRACKNUM, TRACKNAME
if [ -e "$CDDBDATA" ]; then
if [ "$ONETRACK" = "y" ]; then
# Go through it again and make sure there's no distmp3 stragglers, otherwise
# we'll delete the files they're working on
# Go through it again and make sure there's no distmp3 stragglers, otherwise
# we'll delete the files they're working on
+# Do NOT play ball if there is no ball to play (so ABORT if needed)
## FIXME ## Check also for files which are encoded using PIPEs.
## FIXME ## Check also for files which are encoded using PIPEs.
-if [ "$DOENCODE" = "y" -a "$USEPIPES" != "y" ]; then
+if [ "$DOENCODE" = "y" ] && [ "$USEPIPES" != "y" ] && [ ! "$ABORT" ]; then
PROCEED=
until [ $PROCEED ]
do
PROCEED=
until [ $PROCEED ]
do
+abcde (2.3.99.6-1) unstable; urgency=low
+
+ * Default to UNICODE (UTF8) tags and comments.
+ * Added a missing "INDEX 01" entry for CUE sheet creation.
+ * Avoid completing the encoding of files if we aborted previously.
+ * Embed the CUE sheet if we have a cuesheet file and we have a single FLAC
+ file, even if we are not tagging.
+ * Fails to quote filenames properly (Closes: #355296)
+
+ -- Jesus Climent <jesus.climent@hispalinux.es> Thu, 23 Mar 2006 15:55:52 +0200
+
abcde (2.3.99.5-1) unstable; urgency=low
* Repaired multiple CDDB entries when recursive search is active.
abcde (2.3.99.5-1) unstable; urgency=low
* Repaired multiple CDDB entries when recursive search is active.