diff misc/gen-dist @ 50:1761b3bde646

fixed wrong paths in the md5sum file (gen-dist)
author meillo@marmaro.de
date Thu, 20 May 2010 21:49:24 +0200
parents 315b74beec1a
children e119cee8d493
line wrap: on
line diff
--- a/misc/gen-dist	Thu May 20 21:23:19 2010 +0200
+++ b/misc/gen-dist	Thu May 20 21:49:24 2010 +0200
@@ -13,6 +13,11 @@
 	exit 1
 fi
 
+dir="${1%/*}"
+file="${1##*/}"
+
 hg archive -t tgz "$1"
-md5sum "$1" > "$1.md5sum"
-gpg -ab "$1"
+
+cd "$dir"
+md5sum "$file" >"$file.md5sum"
+gpg -ab "$file"