blob: dd40de979ecc24250ade761db3912f57911b69e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# $Id$
if [ -z "$RPM_BUILD_ROOT" ]; then
echo "No build root defined" >&2
exit 1
fi
if [ ! -d "$RPM_BUILD_ROOT" ]; then
echo "Invalid build root" >&2
exit 1
fi
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 || continue
egrep -q '[[:space:]]*\.[[:space:]]+.*/functions' $f || continue
scripts="$scripts $f"
done
if [ -n "$scripts" ]; then
echo -n "Gprintifying init scripts..."
/usr/share/spec-helper/gprintify.py $scripts
echo "done"
fi
|