diff options
author | Frederic Lepied <flepied@mandriva.com> | 2002-12-13 11:52:45 +0000 |
---|---|---|
committer | Frederic Lepied <flepied@mandriva.com> | 2002-12-13 11:52:45 +0000 |
commit | c15de3c990b04a54117f499e703f10ffbd6b4e76 (patch) | |
tree | e29fd23db65d60c5ae2e2d728015d277164fcdc7 | |
parent | 445de83e6177375fd3149a35b3384ebbf0987ef8 (diff) | |
download | spec-helper-c15de3c990b04a54117f499e703f10ffbd6b4e76.tar spec-helper-c15de3c990b04a54117f499e703f10ffbd6b4e76.tar.gz spec-helper-c15de3c990b04a54117f499e703f10ffbd6b4e76.tar.bz2 spec-helper-c15de3c990b04a54117f499e703f10ffbd6b4e76.tar.xz spec-helper-c15de3c990b04a54117f499e703f10ffbd6b4e76.zip |
remove info dir if not the one from info-install
-rwxr-xr-x | spec-helper | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec-helper b/spec-helper index 24a00a8..18d216f 100755 --- a/spec-helper +++ b/spec-helper @@ -23,7 +23,7 @@ export PATH # usage usage() { - echo "usage: spec-helper [-l|-c|-m|-s|-L|-g|-p]" 1>&2 + echo "usage: spec-helper [-l|-c|-m|-s|-L|-g|-p|-i]" 1>&2 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 @@ -31,6 +31,7 @@ usage() { echo "-L don't build lib symlinks." 1>&2 echo "-g don't grpintify init scripts." 1>&2 echo "-p don't fix pam.d configs." 1>&2 + echo "-i don't delete info dir." 1>&2 } # handle options @@ -43,6 +44,7 @@ while [ $# != 0 ]; do -L) DONT_SYMLINK_LIBS=1;; -g) DONT_GPRINTIFY=1;; -p) DONT_FIX_PAMD_CONFIGS=1;; + -i) DONT_REMOVE_INFO_DIR=1;; *) usage; exit 1;; esac @@ -79,6 +81,12 @@ if test -z "$DONT_FIX_PAMD_CONFIGS"; then fi fi +dir=$RPM_BUILD_ROOT/usr/share/info/dir + +if test -z "$DONT_REMOVE_INFO_DIR" -a -f $dir -a ! -L $dir; then + echo -n "Removing info dir..." && rm -f $dir && echo done +fi + exit 0 # spec-helper ends here |