filter parameter values

This commit is contained in:
Дмитрий Левин 2002-08-28 15:06:42 +00:00
parent 383c0f06dd
commit aa8845f80c
4 changed files with 8 additions and 2 deletions

View File

@ -21,6 +21,8 @@
PROG="${0##*/}" PROG="${0##*/}"
RPM_CLEANUP_METHOD="${RPM_CLEANUP_METHOD## }"
RPM_CLEANUP_METHOD="${RPM_CLEANUP_METHOD%% }"
echo "Cleaning files in $RPM_BUILD_ROOT ($RPM_CLEANUP_METHOD)" echo "Cleaning files in $RPM_BUILD_ROOT ($RPM_CLEANUP_METHOD)"
if [ "$RPM_CLEANUP_METHOD" = skip ]; then if [ "$RPM_CLEANUP_METHOD" = skip ]; then

View File

@ -20,6 +20,8 @@
PROG="${0##*/}" PROG="${0##*/}"
RPM_COMPRESS_METHOD="${RPM_COMPRESS_METHOD## }"
RPM_COMPRESS_METHOD="${RPM_COMPRESS_METHOD%% }"
echo "Compressing files in $RPM_BUILD_ROOT ($RPM_COMPRESS_METHOD)" echo "Compressing files in $RPM_BUILD_ROOT ($RPM_COMPRESS_METHOD)"
if [ "$RPM_COMPRESS_METHOD" = skip ]; then if [ "$RPM_COMPRESS_METHOD" = skip ]; then

View File

@ -176,8 +176,8 @@ export STRIP_EXECUTABLE=
export STRIP_RELOCATABLE= export STRIP_RELOCATABLE=
export STRIP_SHARED= export STRIP_SHARED=
export STRIP_STATIC= export STRIP_STATIC=
for t in $RPM_STRIP_METHOD; do for t in `echo "$RPM_STRIP_METHOD" |tr , ' '`; do
case "${t/%,}" in case "$t" in
no|none|off|false) no|none|off|false)
exit 0 exit 0
;; ;;

View File

@ -20,6 +20,8 @@
PROG="${0##*/}" PROG="${0##*/}"
RPM_COMPRESS_METHOD="${RPM_COMPRESS_METHOD## }"
RPM_COMPRESS_METHOD="${RPM_COMPRESS_METHOD%% }"
case "$RPM_COMPRESS_METHOD" in case "$RPM_COMPRESS_METHOD" in
no|none|plain|skip) no|none|plain|skip)
exit 0 exit 0