]> arthur.barton.de Git - netatalk.git/commitdiff
Better checking for the version information.
authorsrittau <srittau>
Wed, 7 Mar 2001 20:56:13 +0000 (20:56 +0000)
committersrittau <srittau>
Wed, 7 Mar 2001 20:56:13 +0000 (20:56 +0000)
distrib/debian/cvs2deb.sh

index 4fb6022a7a1fddc0972aafdec808e90053da1ba6..286614d12b87edb21603520919e6b86570f9ed4f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# Execute this script from the main 
+# Execute this script from the main netatalk source directory.
 
 set -e
 
@@ -12,7 +12,11 @@ if test ! -e README.ASUN; then
 fi
 
 VERSION=`cat VERSION`
-DEBVERSION=`cat "$debiandir/VERSION"`
+if test -e "$debiandir/VERSION"; then
+  DEBVERSION=`cat "$debiandir/VERSION"`
+else
+  DEBVERSION="$VERSION"
+fi
 DISTDIR="netatalk-$VERSION"
 DISTTGZ="netatalk_$DEBVERSION.orig.tar.gz"