summaryrefslogtreecommitdiff
path: root/print/xtem/files
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>1998-02-09 12:42:59 +0000
committerThomas Gellekum <tg@FreeBSD.org>1998-02-09 12:42:59 +0000
commitae10124d1691d028338b661b8ec513485a23be54 (patch)
tree9ae8110122146d89991ad2286cf0a5470c97ee0f /print/xtem/files
parent3a73808d88e6d5f75238d8c20e0c825c41cf1bb8 (diff)
downloadfreebsd-ports-ae10124d1691d028338b661b8ec513485a23be54.zip
Make xtem reinstall-friendly.
Diffstat (limited to 'print/xtem/files')
-rw-r--r--print/xtem/files/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/print/xtem/files/Makefile b/print/xtem/files/Makefile
index 2b90741abe2e..2e66904f642e 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