3 # Execute this script from the main
7 debiandir=distrib/debian
9 if test ! -e README.ASUN; then
10 echo "Not in netatalk directory"
15 DEBVERSION=`cat "$debiandir/VERSION"`
16 DISTDIR="netatalk-$VERSION"
17 DISTTGZ="netatalk_$DEBVERSION.orig.tar.gz"
19 if test ! -x configure; then
23 if test ! -e Makefile; then
24 if test -x config.status; then
33 mv "netatalk-$VERSION.tar.gz" "$DISTTGZ"
34 rm -rf "netatalk-$VERSION" || true
37 for FILE in `find $debiandir/patches/*.patch`; do
38 patch --dir="$DISTDIR" --strip=1 <$FILE
41 cp -a "$debiandir" "$DISTDIR"
42 rm -r "$DISTDIR/debian/CVS"
43 rm -r "$DISTDIR/debian/patches"
44 rm "$DISTDIR/debian/cvs2deb.sh"
45 rm "$DISTDIR/debian/VERSION"
47 cd "$DISTDIR" && dpkg-buildpackage -rfakeroot
49 cd .. && rm -r "$DISTDIR"