100-build_clean.patch 1020 B

123456789101112131415161718192021222324252627282930313233343536
  1. diff -ruN ipkg-utils-1.7-old/ipkg-build ipkg-utils-1.7-new/ipkg-build
  2. --- ipkg-utils-1.7-old/ipkg-build 2004-08-24 04:56:12.000000000 +0200
  3. +++ ipkg-utils-1.7-new/ipkg-build 2004-08-24 04:55:49.000000000 +0200
  4. @@ -47,6 +47,19 @@
  5. PKG_ERROR=0
  6. + cvs_dirs=`find . -name 'CVS'`
  7. + if [ -n "$cvs_dirs" ]; then
  8. + if [ "$noclean" = "1" ]; then
  9. + echo "*** Warning: The following CVS directories where found.
  10. +You probably want to remove them: " >&2
  11. + ls -ld $cvs_dirs
  12. + echo >&2
  13. + else
  14. + echo "*** Removing the following files: $cvs_dirs"
  15. + rm -rf "$cvs_dirs"
  16. + fi
  17. + fi
  18. +
  19. tilde_files=`find . -name '*~'`
  20. if [ -n "$tilde_files" ]; then
  21. if [ "$noclean" = "1" ]; then
  22. @@ -134,8 +147,12 @@
  23. for script in $CONTROL/preinst $CONTROL/postinst $CONTROL/prerm $CONTROL/postrm; do
  24. if [ -f $script -a ! -x $script ]; then
  25. + if [ "$noclean" = "1" ]; then
  26. echo "*** Error: package script $script is not executable" >&2
  27. PKG_ERROR=1
  28. + else
  29. + chmod a+x $script
  30. + fi
  31. fi
  32. done