diff options
Diffstat (limited to 'gprintify')
-rwxr-xr-x | gprintify | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,7 +1,16 @@ #!/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 + 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 |