From ae3b0ce5e505f0630dcc8677f56b1e0983b94da5 Mon Sep 17 00:00:00 2001 From: Satoshi Asami Date: Wed, 11 Oct 2000 00:56:13 +0000 Subject: Remove share/sgml/catalog if it's empty. Reported by: bento Reviewed by: kuriyama --- textproc/jade/pkg-plist | 1 + 1 file changed, 1 insertion(+) (limited to 'textproc/jade') diff --git a/textproc/jade/pkg-plist b/textproc/jade/pkg-plist index 7fa3bb24cd23..1d8794e3000b 100644 --- a/textproc/jade/pkg-plist +++ b/textproc/jade/pkg-plist @@ -171,6 +171,7 @@ share/sgml/jade/FOT.tex share/sgml/jade/Makefile.jadetex share/sgml/jade/catalog @unexec env LANG=C perl -ni -e 'print if !m|%D/%F|;' %D/share/sgml/catalog +@unexec if [ -f %D/share/sgml/catalog -a ! -s %D/share/sgml/catalog ]; then rm -f %D/share/sgml/catalog; fi @exec if [ ! -f %D/share/sgml/catalog ]; then echo "CATALOG \"%D/%F\"" > %D/share/sgml/catalog; else env LANG=C perl -ni -e 'print if !m|%D/%F|;print "CATALOG \"%D/%F\"\n" if eof;' %D/share/sgml/catalog; fi share/sgml/jade/demo.dsl share/sgml/jade/demo.sgm -- cgit v1.2.3