aboutsummaryrefslogtreecommitdiffstats
path: root/gprintify
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-05-20 13:14:39 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-05-20 13:14:39 +0000
commit005415fa3c343e6aef056e830e195d87ce8b73e1 (patch)
tree86afe253a616b01b6276efd5da7c4f5e57e8875f /gprintify
parent657c75055954c53ac17ca66167832a0b4ecf5f8c (diff)
downloadspec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.gz
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.bz2
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.xz
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.zip
- split main script, make all script independants
Diffstat (limited to 'gprintify')
-rwxr-xr-xgprintify14
1 files changed, 14 insertions, 0 deletions
diff --git a/gprintify b/gprintify
new file mode 100755
index 0000000..85bf0cf
--- /dev/null
+++ b/gprintify
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# $Id$
+
+if test -z "$DONT_GPRINTIFY"; then
+ scripts=
+ for f in `ls $RPM_BUILD_ROOT/etc/rc.d/init.d/* $RPM_BUILD_ROOT/etc/init.d/* 2> /dev/null`; do
+ test -f $f && egrep -q '[[:space:]]*\.[[:space:]]+.*/functions' $f && scripts="$scripts $f"
+ done
+ if [ -n "$scripts" ]; then
+ echo -n "Gprintifying init scripts..." && gprintify.py $scripts && echo "done"
+ fi
+fi
+