aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xspec-helper11
1 files changed, 9 insertions, 2 deletions
diff --git a/spec-helper b/spec-helper
index 0bf58f2..42ad740 100755
--- a/spec-helper
+++ b/spec-helper
@@ -1,7 +1,7 @@
#!/bin/sh
#---------------------------------------------------------------
-# Project : Linux-Mandrake
-# Module : bin
+# Project : Mandrake Linux
+# Module : spec-helper
# File : spec-helper
# Version : $Id$
# Author : Frederic Lepied
@@ -29,6 +29,7 @@ usage() {
echo "-s don't strip files" 1>&2
echo "-l don't fix full link as relative." 1>&2
echo "-L don't build lib symlinks." 1>&2
+ echo "-g don't grpintify init scripts." 1>&2
}
# handle options
@@ -39,6 +40,7 @@ while [ $# != 0 ]; do
-s) DONT_STRIP=1;;
-l) DONT_RELINK=1;;
-L) DONT_SYMLINK_LIBS=1;;
+ -g) DONT_GPRINTIFY=1;;
*) usage; exit 1;;
esac
@@ -51,6 +53,11 @@ test -z "$DONT_STRIP" && echo -n "Stripping files..." && strip_files && echo "do
test -z "$DONT_RELINK" && echo -n "Relativisation of symlinks..." && relative_me_babe && echo "done"
test -z "$DONT_CLEAN_PERL" && echo -n "Clean perl..." && clean_perl && echo "done"
test -z "$DONT_SYMLINK_LIBS" && echo -n "Building libraries symlinks..." && lib_symlinks && echo "done"
+if [ -d $RPM_BUILD_ROOT/etc/rc.d/init.d ]; then
+ test -z "$DONT_GPRINTIFY" && echo -n "Gprintifying init scripts..." && gprintify.py $RPM_BUILD_ROOT/etc/rc.d/init.d/* && echo "done"
+elif [ -d $RPM_BUILD_ROOT/etc/init.d ]; then
+ test -z "$DONT_GPRINTIFY" && echo -n "Gprintifying init scripts..." && gprintify.py $RPM_BUILD_ROOT/etc/init.d/* && echo "done"
+fi
exit 0