4cff731d5b0f5396a46c495ef7a4f613e5b0a6d1
[openwrt.git] / toolchain / ipkg-utils / patches / 100-build_clean.patch
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
6 PKG_ERROR=0
7
8 + cvs_dirs=`find . -name 'CVS'`
9 + if [ -n "$cvs_dirs" ]; then
10 + if [ "$noclean" = "1" ]; then
11 + echo "*** Warning: The following CVS directories where found.
12 +You probably want to remove them: " >&2
13 + ls -ld $cvs_dirs
14 + echo >&2
15 + else
16 + echo "*** Removing the following files: $cvs_dirs"
17 + rm -rf "$cvs_dirs"
18 + fi
19 + fi
20 +
21 tilde_files=`find . -name '*~'`
22 if [ -n "$tilde_files" ]; then
23 if [ "$noclean" = "1" ]; then
24 @@ -134,8 +147,12 @@
25
26 for script in $CONTROL/preinst $CONTROL/postinst $CONTROL/prerm $CONTROL/postrm; do
27 if [ -f $script -a ! -x $script ]; then
28 + if [ "$noclean" = "1" ]; then
29 echo "*** Error: package script $script is not executable" >&2
30 PKG_ERROR=1
31 + else
32 + chmod a+x $script
33 + fi
34 fi
35 done
36
This page took 0.040845 seconds and 3 git commands to generate.