aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2000-05-09 05:09:50 +0000
committerFrederic Lepied <flepied@mandriva.com>2000-05-09 05:09:50 +0000
commit3ff521c3dfb687f6e20194adc485f18ee4d500eb (patch)
tree0b6271139695cce8d768536cda5a1069ac4966fd
parent66fdcee26a2734e9e19dd20ce20e69a2d3c19eb0 (diff)
downloadspec-helper-3ff521c3dfb687f6e20194adc485f18ee4d500eb.tar
spec-helper-3ff521c3dfb687f6e20194adc485f18ee4d500eb.tar.gz
spec-helper-3ff521c3dfb687f6e20194adc485f18ee4d500eb.tar.bz2
spec-helper-3ff521c3dfb687f6e20194adc485f18ee4d500eb.tar.xz
spec-helper-3ff521c3dfb687f6e20194adc485f18ee4d500eb.zip
* exit 0 if no RPM_BUILD_ROOT variable set to allow build with no BuildRoot.
-rwxr-xr-xspec-helper6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec-helper b/spec-helper
index a78282a..2509b73 100755
--- a/spec-helper
+++ b/spec-helper
@@ -10,7 +10,7 @@
if [ -z "$RPM_BUILD_ROOT" ]; then
echo "no RPM_BUILD_ROOT variable; exiting." 1>&2
- exit 1
+ exit 0
fi
SPEC_HELPER_ROOT=${SPEC_HELPER_ROOT=/usr/share/spec-helper}
@@ -23,7 +23,7 @@ usage() {
echo "-c don't clean up files" 1>&2
echo "-m don't compress files" 1>&2
echo "-s don't strip files" 1>&2
- echo "-l don't fix full link as relative."
+ echo "-l don't fix full link as relative." 1>&2
}
# handle options
@@ -42,7 +42,7 @@ done
test -z "$DONT_CLEANUP" && echo -n "Cleaning files..." && clean_files && echo "done"
test -z "$DONT_COMPRESS" && echo -n "Compressing files..." && compress_files && echo "done"
test -z "$DONT_STRIP" && echo -n "Stripping files..." && strip_files && echo "done"
-test -z "$DONT_RELINK" && echo -n "Relativisation of links..." && relative_me_babe && echo "done"
+test -z "$DONT_RELINK" && echo -n "Relativisation of symlinks..." && relative_me_babe && echo "done"
exit 0