]> git.lyx.org Git - features.git/commitdiff
fix installation of lib/scripts/* and lib/lyx2lyx/lyx2lyx
authorGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 4 Nov 2004 16:40:10 +0000 (16:40 +0000)
committerGeorg Baum <Georg.Baum@post.rwth-aachen.de>
Thu, 4 Nov 2004 16:40:10 +0000 (16:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9168 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/Makefile.am

index 8bd9afe3f20e56d7dfae8b5a3d136e1b482ea30b..1e1d460b77cdd4b256e20eab3b64ff1d4236e62d 100644 (file)
@@ -1,3 +1,8 @@
+2004-11-04  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
+
+       * Makefile.am: fix installation of lyx2lyx and scripts for
+       configure --version-suffix
+
 2004-11-01  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * configure.m4: add copier for pstex_t and pdftex_t files
index c0387616bb73fbc9d242d6e19c475d6e9ff187fa..7257455bd67692559b252ac69801d443dc8d12d1 100644 (file)
@@ -10,12 +10,14 @@ EXTRA_DIST = \
 
 CHMOD = chmod
 
-dist_pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx lyxrc.defaults \
-              textclass.lst packages.lst external_templates \
+# We cannot use dist_pkgdata_SCRIPTS for configure, since a possible
+# version-suffix would get appended to the names. So we use dist_pkgdata_DATA
+# and chmod manually in install-data-hook.
+# configure.cmd (used on OS/2) is not installed because it is outdated.
+dist_pkgdata_DATA = lyxrc.example CREDITS chkconfig.ltx configure \
+              lyxrc.defaults textclass.lst packages.lst external_templates \
               encodings languages symbols
 
-dist_pkgdata_SCRIPTS = configure configure.cmd
-
 binddir = $(pkgdatadir)/bind
 dist_bind_DATA = \
        bind/broadway.bind \
@@ -835,7 +837,9 @@ dist_layouts_DATA =\
        layouts/svglobal.layout
 
 lyx2lyxdir = $(pkgdatadir)/lyx2lyx
-dist_lyx2lyx_SCRIPTS = lyx2lyx/lyx2lyx
+# We cannot use dist_lyx2lyx_SCRIPTS for lyx2lyx, since a possible
+# version-suffix would get appended to the names. So we use dist_scripts_DATA
+# and chmod manually in install-data-hook.
 dist_lyx2lyx_DATA = \
        lyx2lyx/lyx2lyx \
        lyx2lyx/parser_tools.py \
@@ -853,7 +857,10 @@ dist_lyx2lyx_DATA = \
        lyx2lyx/profiling.py
 
 scriptsdir = $(pkgdatadir)/scripts
-dist_scripts_SCRIPTS = \
+# We cannot use dist_scripts_SCRIPTS, since a possible version-suffix would
+# get appended to the names. So we use dist_scripts_DATA and chmod manually
+# in install-data-hook.
+dist_scripts_DATA = \
        scripts/TeXFiles.sh \
        scripts/convertDefault.sh \
        scripts/fen2ascii.py \
@@ -933,3 +940,10 @@ install-data-local: install-xfonts
 
 
 uninstall-local: uninstall-xfonts
+
+install-data-hook:
+       $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/lyx2lyx/lyx2lyx
+       $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/configure
+       for i in $(dist_scripts_DATA); do \
+               $(CHMOD) 755 $(DESTDIR)$(pkgdatadir)/$$i; \
+       done