Root/tools/ipkg-utils/patches/100-build_clean.patch

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

Archive Download this file



interactive