test: glen-lines (NEW) - invoke fix-info-dir via /sbin/postshell w...

glen glen at pld-linux.org
Thu Jan 24 02:26:57 CET 2008


Author: glen                         Date: Thu Jan 24 01:26:57 2008 GMT
Module: test                          Tag: HEAD
---- Log message:
- invoke fix-info-dir via /sbin/postshell where possible to avoid extra /bin/sh dep

---- Files affected:
test:
   glen-lines (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: test/glen-lines
diff -u /dev/null test/glen-lines:1.1
--- /dev/null	Thu Jan 24 02:26:57 2008
+++ test/glen-lines	Thu Jan 24 02:26:52 2008
@@ -0,0 +1,2 @@
+perl -pe '$/=undef;s#%(post|postun)\n\[ ! -x /usr/sbin/fix-info-dir \] \|\| /usr/sbin/fix-info-dir -c %{_infodir} >\s*/dev/null 2>&1\n\n%#%$1\t-p\t/sbin/postshell\n-/usr/sbin/fix-info-dir -c %{_infodir}\n\n%#gg' -i `cat ../fix-info-dir`
+grep '/usr/sbin/fix-info-dir ] || /usr/sbin/fix' `cat ../fix-info-dir`
================================================================


More information about the pld-cvs-commit mailing list