aboutsummaryrefslogtreecommitdiffstats
path: root/remove_info_dir
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2006-05-20 13:14:39 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2006-05-20 13:14:39 +0000
commit005415fa3c343e6aef056e830e195d87ce8b73e1 (patch)
tree86afe253a616b01b6276efd5da7c4f5e57e8875f /remove_info_dir
parent657c75055954c53ac17ca66167832a0b4ecf5f8c (diff)
downloadspec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.gz
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.bz2
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.tar.xz
spec-helper-005415fa3c343e6aef056e830e195d87ce8b73e1.zip
- split main script, make all script independants
Diffstat (limited to 'remove_info_dir')
-rwxr-xr-xremove_info_dir12
1 files changed, 12 insertions, 0 deletions
diff --git a/remove_info_dir b/remove_info_dir
new file mode 100755
index 0000000..ae21fcb
--- /dev/null
+++ b/remove_info_dir
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+INFODIR=`rpm --eval %{_infodir}/dir`
+
+test -n "$RPM_BUILD_ROOT" || exit 0
+
+dir="$RPM_BUILD_ROOT/$INFODIR"
+
+if test -z "$DONT_REMOVE_INFO_DIR" -a -f $dir -a ! -L $dir; then
+ rm -f $dir
+fi
+