diff options
author | tg <tg@FreeBSD.org> | 1998-02-09 20:42:59 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1998-02-09 20:42:59 +0800 |
commit | 9f4f6567c88e7ee43c6d5841f4dbb425c8d38b87 (patch) | |
tree | 45e11637fcda8673a55554285f47332153910ae7 /print | |
parent | 1052654c4cd292d2fc67e352ed72420813c3c887 (diff) | |
download | freebsd-ports-graphics-9f4f6567c88e7ee43c6d5841f4dbb425c8d38b87.tar.gz freebsd-ports-graphics-9f4f6567c88e7ee43c6d5841f4dbb425c8d38b87.tar.zst freebsd-ports-graphics-9f4f6567c88e7ee43c6d5841f4dbb425c8d38b87.zip |
Make xtem reinstall-friendly.
Diffstat (limited to 'print')
-rw-r--r-- | print/xtem/Makefile | 4 | ||||
-rw-r--r-- | print/xtem/files/Makefile | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/print/xtem/Makefile b/print/xtem/Makefile index 5be0d663ea8..fdb36bfab10 100644 --- a/print/xtem/Makefile +++ b/print/xtem/Makefile @@ -3,7 +3,7 @@ # Date created: 01 June 1997 # Whom: Peter Cornelius <pc@inr.fzk.de> # -# $Id: Makefile,v 1.1.1.1 1998/02/04 12:15:34 tg Exp $ +# $Id: Makefile,v 1.2 1998/02/08 21:54:09 asami Exp $ DISTNAME= xtem_texmenu.6.18 PKGNAME= xtem-6.18 @@ -38,6 +38,6 @@ post-install: @${CP} ${FILESDIR}/xtem_locals_german/[a-z]* \ ${PREFIX}/share/xtem_locals_german # clean up left-overs... - @${RM} ${PREFIX}/share/xtem_locals_*/.nfs* + @${RM} -f ${PREFIX}/share/xtem_locals_*/.nfs* .include <bsd.port.mk> diff --git a/print/xtem/files/Makefile b/print/xtem/files/Makefile index 2b90741abe2..2e66904f642 100644 --- a/print/xtem/files/Makefile +++ b/print/xtem/files/Makefile @@ -9,8 +9,10 @@ install: all @tar -cf - . | (cd ${PREFIX}/share/xtem; \ tar -x --exclude *.orig --exclude *.bak --exclude changecode -f -) @echo "Installing local files..." - @mv ${PREFIX}/share/xtem/locals_english.LRW ${PREFIX}/share/xtem_locals_english - @mv ${PREFIX}/share/xtem/locals_german.LRW ${PREFIX}/share/xtem_locals_german + @[ -d ${PREFIX}/share/xtem_locals_english ] && rm -rf ${PREFIX}/share/xtem_locals_english + @mv -f ${PREFIX}/share/xtem/locals_english.LRW ${PREFIX}/share/xtem_locals_english + @[ -d ${PREFIX}/share/xtem_locals_german ] && rm -rf ${PREFIX}/share/xtem_locals_german + @mv -f ${PREFIX}/share/xtem/locals_german.LRW ${PREFIX}/share/xtem_locals_german @rm -f ${PREFIX}/share/xtem/locals_english @ln -sf ../xtem_locals_english ${PREFIX}/share/xtem/locals_english @rm -f ${PREFIX}/share/xtem/locals_german |