diff options
author | asami <asami@FreeBSD.org> | 2000-10-11 08:56:13 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 2000-10-11 08:56:13 +0800 |
commit | ae78df44b6072dafd6e05f027b9fca6589a14d86 (patch) | |
tree | c0af7f312d04873116abf126822a6ecb663cc36d /textproc | |
parent | 694340a543b21472a17ac0ca35f88baf81d06893 (diff) | |
download | freebsd-ports-graphics-ae78df44b6072dafd6e05f027b9fca6589a14d86.tar.gz freebsd-ports-graphics-ae78df44b6072dafd6e05f027b9fca6589a14d86.tar.zst freebsd-ports-graphics-ae78df44b6072dafd6e05f027b9fca6589a14d86.zip |
Remove share/sgml/catalog if it's empty.
Reported by: bento
Reviewed by: kuriyama
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/jade/pkg-plist | 1 |
1 files changed, 1 insertions, 0 deletions
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 |