aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2001-11-22 14:32:59 +0000
committerFrederic Lepied <flepied@mandriva.com>2001-11-22 14:32:59 +0000
commit6a00833de526e464c9a749d3bc61069dc597698f (patch)
tree541cbbdd8f55965767a0865b1fb760e3fb68b62d
parentb83c14a5a82de64992144f24d819b8421cc417cf (diff)
downloadspec-helper-6a00833de526e464c9a749d3bc61069dc597698f.tar
spec-helper-6a00833de526e464c9a749d3bc61069dc597698f.tar.gz
spec-helper-6a00833de526e464c9a749d3bc61069dc597698f.tar.bz2
spec-helper-6a00833de526e464c9a749d3bc61069dc597698f.tar.xz
spec-helper-6a00833de526e464c9a749d3bc61069dc597698f.zip
call gprintify.py
-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