r33 ./vorbis-tools: * Update vorbistagedit to 0.5 to cope with bash users.
Clint Adams
schizo at debian.org
Mon Oct 22 15:32:32 UTC 2007
------------------------------------------------------------
revno: 33
committer: Clint Adams <schizo at debian.org>
branch nick: vorbis-tools
timestamp: Mon 2007-10-22 11:32:32 -0400
message:
* Update vorbistagedit to 0.5 to cope with bash users.
closes: #421319.
modified:
debian/changelog
debian/extra/vorbistagedit
-------------- next part --------------
=== modified file 'debian/changelog'
--- a/debian/changelog 2007-07-27 05:01:16 +0000
+++ b/debian/changelog 2007-10-22 15:32:32 +0000
@@ -1,3 +1,10 @@
+vorbis-tools (1.1.1-15) unstable; urgency=low
+
+ * Update vorbistagedit to 0.5 to cope with bash users.
+ closes: #421319.
+
+ -- Clint Adams <schizo at debian.org> Mon, 22 Oct 2007 11:27:35 -0400
+
vorbis-tools (1.1.1-14) unstable; urgency=low
* Update long description to mention that ogg123 can play FLAC
=== modified file 'debian/extra/vorbistagedit'
--- a/debian/extra/vorbistagedit 2007-01-18 17:35:54 +0000
+++ b/debian/extra/vorbistagedit 2007-10-22 15:32:32 +0000
@@ -5,10 +5,8 @@
# Copyright ? martin f. krafft <madduck at madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
-# $Id$
-#
-VERSION=0.4
+VERSION=0.5
ME=${0##*/}
versioninfo() {
@@ -66,6 +64,7 @@
#
# Edit the lines in this file to your desire, but
# DO NOT touch lines starting with a colon (:)!
+# You may use lines starting with a plus (+) to rename files.
#
# We are in directory:
# $(pwd)
@@ -86,6 +85,7 @@
fi
echo ": $i"
+ echo "+ $i"
vorbiscomment -l "$i"
echo
;;
@@ -125,10 +125,18 @@
echo "I: processing files..." >&2
write_tags() {
+ echo -n "I: processing $file... " >&2
local file="$1"; shift
for tag; do echo "$tag"; done | vorbiscomment -w "$file"
+ if [ -n "${filename_new:-}" ] && [ "${filename_new:-}" != "$file" ]; then
+ echo; echo -n "I: renaming to $filename_new... " >&2
+ mv "$file" "$filename_new"
+ unset filename_new
+ fi
}
+filename_new=
+
while read line; do
case "$line" in
': EOF')
@@ -143,11 +151,14 @@
tags=''
fi
file="${line#: }"
- echo -n "I: processing $file... " >&2
;;
+ +*)
+ filename_new="${line#* }";;
+
*=*)
- tags="${tags:+$tags\\n}$line";;
+ tags="${tags:+$tags
+}$line";;
*|'#*') :;;
esac
More information about the pkg-xiph-commits
mailing list