On cygwin, install by default lyxprofile and lyxrc.dist, otherwise

packagers may forget to do it in post-install scripts.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@34683 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-06-17 10:42:32 +00:00
parent 365c512485
commit 25dc517532
3 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,9 @@ include $(top_srcdir)/config/common.am
bin_PROGRAMS = lyxeditor lyxwin bin_PROGRAMS = lyxeditor lyxwin
bin_SCRIPTS = lyxeditor.sh bin_SCRIPTS = lyxeditor.sh
dist_noinst_DATA = lyxprofile
lyxdistdir = $(pkgdatadir)
dist_lyxdist_DATA = lyxprofile lyxrc.dist
lyxeditor_SOURCES = lyxeditor.c lyxeditor_SOURCES = lyxeditor.c
lyxwin_SOURCES = lyxwin.c lyxwinres.rc lyxwin_SOURCES = lyxwin.c lyxwinres.rc

View File

@ -74,7 +74,7 @@ int main (int argc, char **argv, char **environ)
/* fprintf(stderr , "Command is: |%s|\n", cmd); */ /* fprintf(stderr , "Command is: |%s|\n", cmd); */
/* ensure bash reads our global env changes */ /* ensure bash reads our global env changes */
putenv("BASH_ENV=/etc/lyxprofile") ; putenv("BASH_ENV=" LYX_ABS_INSTALLED_DATADIR "/lyxprofile") ;
/* exec sub command */ /* exec sub command */
spawnv(_P_NOWAIT, "/bin/bash", nargs); spawnv(_P_NOWAIT, "/bin/bash", nargs);
/* exit with no error */ /* exit with no error */

View File

@ -63,6 +63,8 @@ What's new
* BUILD/INSTALLATION * BUILD/INSTALLATION
- On cygwin, install by default lyxprofile and lyxrc.dist in order to
avoid to do it in post-install scripts.
** Bug fixes: ** Bug fixes: