]> git.lyx.org Git - features.git/commitdiff
On cygwin, install by default lyxprofile and lyxrc.dist, otherwise
authorEnrico Forestieri <forenr@lyx.org>
Thu, 17 Jun 2010 10:32:11 +0000 (10:32 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 17 Jun 2010 10:32:11 +0000 (10:32 +0000)
packagers may forget to do it in post-install scripts.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34682 a592a061-630c-0410-9148-cb99ea01b6c8

development/cygwin/Makefile.am
development/cygwin/lyxwin.c

index 16c093579b1501f31557d9d5ed4c4095b26066ca..6e5684f9444e45e32fb704d4b97bf0709070f3a2 100644 (file)
@@ -9,7 +9,9 @@ include $(top_srcdir)/config/common.am
 
 bin_PROGRAMS = lyxeditor lyxwin
 bin_SCRIPTS = lyxeditor.sh
-dist_noinst_DATA = lyxprofile
+
+lyxdistdir = $(pkgdatadir)
+dist_lyxdist_DATA = lyxprofile lyxrc.dist
 
 lyxeditor_SOURCES = lyxeditor.c
 lyxwin_SOURCES = lyxwin.c lyxwinres.rc
index bae25279ab5d8401ac00e89a4a4a98f83f18916b..d1ac5bf0fe627473ee37e6b21b70e53c8600659f 100644 (file)
@@ -74,7 +74,7 @@ int main (int argc, char **argv, char **environ)
 
        /* fprintf(stderr , "Command is: |%s|\n", cmd); */
        /* ensure bash reads our global env changes */
-       putenv("BASH_ENV=/etc/lyxprofile") ;
+       putenv("BASH_ENV=" LYX_ABS_INSTALLED_DATADIR "/lyxprofile") ;
        /* exec sub command */
        spawnv(_P_NOWAIT, "/bin/bash", nargs);
        /* exit with no error */