[Pkg-mol-commits] r32 - scripts

Gaudenz Steinlin gaudenz at costa.debian.org
Mon Sep 25 20:58:23 UTC 2006


Author: gaudenz
Date: 2006-09-25 20:58:23 +0000 (Mon, 25 Sep 2006)
New Revision: 32

Modified:
   scripts/make_orig_tarballs
Log:
- saner error message if file does not exist
- less strict regex for version number detection (don't assume tarball is 
  in the same dir)


Modified: scripts/make_orig_tarballs
===================================================================
--- scripts/make_orig_tarballs	2006-09-25 20:53:27 UTC (rev 31)
+++ scripts/make_orig_tarballs	2006-09-25 20:58:23 UTC (rev 32)
@@ -8,12 +8,12 @@
 #set -x 
 
 if [ ! -f $1 ] ; then
-	echo "$1 is not a tar.bz2 archive"
+	echo "$1 does not exist."
 	exit 1
 fi
 
 # Guess upstream version
-version=$(echo $1 | perl -ne '/^mol-(.*).tar.(bz2|gz)$/ && print $1')
+version=$(echo $1 | perl -ne '/mol-(.*).tar.(bz2|gz)$/ && print $1')
 ORIG_DIR=$(basename $1 .tar.bz2)
 
 # unpack the original tarball




More information about the Pkg-mol-commits mailing list