diff options
author | Satoshi Asami <asami@FreeBSD.org> | 2000-10-11 08:56:13 +0800 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 2000-10-11 08:56:13 +0800 |
commit | ae3b0ce5e505f0630dcc8677f56b1e0983b94da5 (patch) | |
tree | ee37597806cf76cb49c00e061fcaa69cfca91595 /textproc | |
parent | ae9e3e21719bdb8d7cfe8301a0f4a2f9bf86956b (diff) | |
download | freebsd-ports-gnome-ae3b0ce5e505f0630dcc8677f56b1e0983b94da5.tar.gz freebsd-ports-gnome-ae3b0ce5e505f0630dcc8677f56b1e0983b94da5.tar.zst freebsd-ports-gnome-ae3b0ce5e505f0630dcc8677f56b1e0983b94da5.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 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 |