]> arthur.barton.de Git - netatalk.git/blobdiff - distrib/debian/cvs2deb.sh
Enhanced machine type
[netatalk.git] / distrib / debian / cvs2deb.sh
index 286614d12b87edb21603520919e6b86570f9ed4f..699131f86b0405b998a16db94c06d0a3e37b8629 100755 (executable)
@@ -6,17 +6,13 @@ set -e
 
 debiandir=distrib/debian
 
-if test ! -e README.ASUN; then
+if test ! -d libatalk; then
   echo "Not in netatalk directory"
   exit 1
 fi
 
 VERSION=`cat VERSION`
-if test -e "$debiandir/VERSION"; then
-  DEBVERSION=`cat "$debiandir/VERSION"`
-else
-  DEBVERSION="$VERSION"
-fi
+DEBVERSION="${VERSION}cvs"
 DISTDIR="netatalk-$VERSION"
 DISTTGZ="netatalk_$DEBVERSION.orig.tar.gz"
 
@@ -43,7 +39,7 @@ fi
 make dist
 
 mv "netatalk-$VERSION.tar.gz" "$DISTTGZ"
-rm -rf "netatalk-$VERSION" || true
+rm -rf "$DISTDIR" || true
 tar xzf "$DISTTGZ"
 
 for FILE in `find $debiandir/patches/*.patch`; do
@@ -53,10 +49,16 @@ done
 cp -a "$debiandir" "$DISTDIR"
 rm -r "$DISTDIR/debian/CVS"
 rm -r "$DISTDIR/debian/patches"
+rm -r "$DISTDIR/debian/split-init"
 rm    "$DISTDIR/debian/cvs2deb.sh"
-rm    "$DISTDIR/debian/VERSION"
 
-cd "$DISTDIR" && dpkg-buildpackage -rfakeroot
+cd $DISTDIR
+
+touch INSTALL
+
+automake
+
+dpkg-buildpackage -rfakeroot
 
 cd ..
 rm -r "$DISTDIR"