generate-deb 743 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/sh
  2. #
  3. # Intended to be run from the root of the isync source tree in the repository.
  4. #
  5. VERSION=`dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-[^-]\+$/\1/p'`
  6. if [ ! -f ../isync_$VERSION.orig.tar.gz ]; then
  7. echo isync_$VERSION.orig.tar.gz must be found in the parent directory.
  8. exit 1
  9. fi
  10. rm -rf ../isync-$VERSION
  11. fakeroot ./debian/rules clean
  12. cp -rl . ../isync-$VERSION
  13. cd ../isync-$VERSION
  14. find . -name CVS -print0 | xargs -0r rm -rf
  15. find . -name .cvsignore -print0 | xargs -0r rm
  16. find . -type l -print0 | xargs -0r rm
  17. find . -name .#\*# -print0 | xargs -0r rm
  18. aclocal
  19. autoheader
  20. automake --add-missing --copy
  21. autoconf
  22. if [ -n "$DOSIGN" ]; then
  23. SIGNOPTS=
  24. else
  25. SIGNOPTS="-us -uc"
  26. fi
  27. dpkg-buildpackage -rfakeroot $SIGNOPTS