2007-07-09 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Mon, 9 Jul 2007 14:29:25 +0000 (14:29 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Mon, 9 Jul 2007 14:29:25 +0000 (14:29 +0000)
* packages/download.sh: Implement a new function "ren" for
renaming.
* packages/packages.current: Rename gnupg 2.

ChangeLog
packages/download.sh
packages/packages.current

index de3908e..2cf6683 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2007-07-09  Marcus Brinkmann  <marcus@g10code.de>
 
+       * packages/download.sh: Implement a new function "ren" for
+       renaming.
+       * packages/packages.current: Rename gnupg 2.
+
        * packages/packages.current: Update to GPGME 1.1.5.
 
        * src/Makefile.am (gpg4win_pkg_gpgme_configure): Enable gpgsm.
index 0af6cca..8ff5b76 100644 (file)
@@ -134,6 +134,24 @@ while read key value ; do
            fi
        fi
        ;;
+     ren)
+       if [ -z "$value" ]; then
+           echo "syntax error in ren statement, line $lnr" >&2
+           exit 1
+       fi
+       if [ -z "$name" ]; then
+           echo "no file name for ren statement, line $lnr" >&2
+           exit 1
+       fi
+       echo -n "renaming    \`$name' ..."
+       if mv -f "$name" "$value" ; then
+           echo " okay"
+       else
+           echo " FAILED (line $lnr)"
+           echo "line $lnr: renaming $name failed" >> '.#download.failed'
+       fi
+       name="$value"
+       ;;
      chk)
        if [ -z "$value" ]; then
            echo "syntax error in chk statement, line $lnr" >&2
index d384bc7..fe2db42 100644 (file)
@@ -229,6 +229,7 @@ file gnupg/gnupg-1.4.7.tar.bz2
 chk  22149105845c79068771837c8deb7d5ba0854927
 
 file gnupg/gnupg-2.0.5.tar.bz2
+ren  gnupg2-2.0.5.tar.bz2
 chk  9435e7fabe525ce943a5818008d412ecad244018
 
 file libgpg-error/libgpg-error-1.5.tar.bz2