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:
21
Makefile.in
21
Makefile.in
@@ -259,18 +259,8 @@ installscr-bx: installdirs scr-bx
|
||||
installscript: installdirs
|
||||
-@( \
|
||||
if test -d $(top_srcdir)/script; then \
|
||||
cd $(top_srcdir)/script; \
|
||||
for i in *; do \
|
||||
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; \
|
||||
for i in $(top_srcdir)/script/*; do \
|
||||
$(INSTALL_DATA) "$$i" $(DESTDIR)$(INSTALL_SCRIPT); \
|
||||
done; \
|
||||
chmod -x $(DESTDIR)$(INSTALL_SCRIPT)/*; \
|
||||
fi; \
|
||||
@@ -279,11 +269,8 @@ installscript: installdirs
|
||||
installtranslation: installdirs
|
||||
-@( \
|
||||
if test -d $(top_srcdir)/translation; then \
|
||||
cd $(top_srcdir)/translation; \
|
||||
for i in *; do \
|
||||
if test "$$i" != "CVS"; then \
|
||||
$(INSTALL_DATA) $$i $(DESTDIR)$(TRANSLATION_PATH); \
|
||||
fi; \
|
||||
for i in $(top_srcdir)/translation/*; do \
|
||||
$(INSTALL_DATA) "$$i" $(DESTDIR)$(TRANSLATION_PATH); \
|
||||
done; \
|
||||
chmod -x $(DESTDIR)$(TRANSLATION_PATH)/*; \
|
||||
fi; \
|
||||
|
||||
Reference in New Issue
Block a user