Simplify install target for translation files and scripts. No longer creates

bxglobal.old backup of bxglobal file at install time.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@167 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2012-05-08 15:41:09 +00:00
parent 3bbe082f16
commit de771dac56

View File

@@ -259,18 +259,8 @@ installscr-bx: installdirs scr-bx
installscript: installdirs installscript: installdirs
-@( \ -@( \
if test -d $(top_srcdir)/script; then \ if test -d $(top_srcdir)/script; then \
cd $(top_srcdir)/script; \ for i in $(top_srcdir)/script/*; do \
for i in *; do \ $(INSTALL_DATA) "$$i" $(DESTDIR)$(INSTALL_SCRIPT); \
if test "$$i" = "bxglobal" -a -f $(DESTDIR)$(INSTALL_SCRIPT)/bxglobal; then \
if test -f bxglobal; then \
$(INSTALL_DATA) $(DESTDIR)$(INSTALL_SCRIPT)/bxglobal $(DESTDIR)$(INSTALL_SCRIPT)/bxglobal.old; \
$(INSTALL_DATA) bxglobal $(DESTDIR)$(INSTALL_SCRIPT); \
fi; \
else \
if test "$$i" != "CVS"; then \
$(INSTALL_DATA) $$i $(DESTDIR)$(INSTALL_SCRIPT); \
fi; \
fi; \
done; \ done; \
chmod -x $(DESTDIR)$(INSTALL_SCRIPT)/*; \ chmod -x $(DESTDIR)$(INSTALL_SCRIPT)/*; \
fi; \ fi; \
@@ -279,11 +269,8 @@ installscript: installdirs
installtranslation: installdirs installtranslation: installdirs
-@( \ -@( \
if test -d $(top_srcdir)/translation; then \ if test -d $(top_srcdir)/translation; then \
cd $(top_srcdir)/translation; \ for i in $(top_srcdir)/translation/*; do \
for i in *; do \ $(INSTALL_DATA) "$$i" $(DESTDIR)$(TRANSLATION_PATH); \
if test "$$i" != "CVS"; then \
$(INSTALL_DATA) $$i $(DESTDIR)$(TRANSLATION_PATH); \
fi; \
done; \ done; \
chmod -x $(DESTDIR)$(TRANSLATION_PATH)/*; \ chmod -x $(DESTDIR)$(TRANSLATION_PATH)/*; \
fi; \ fi; \