From ae78df44b6072dafd6e05f027b9fca6589a14d86 Mon Sep 17 00:00:00 2001 From: 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') diff --git a/textproc/jade/pkg-plist b/textproc/jade/pkg-plist index 7fa3bb24cd2..1d8794e3000 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