changeset 440:e3ef75c2486f

Add LANG, INFOPATH and MANPATH env var automatically.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Wed, 02 Nov 2011 00:36:16 +0200
parents f2ca93785a54
children 2d5e4293605c
files admin/win/reg/Makefile admin/win/reg/cygwin.tmpl.reg
diffstat 2 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/admin/win/reg/Makefile	Mon Oct 31 03:09:40 2011 +0200
+++ b/admin/win/reg/Makefile	Wed Nov 02 00:36:16 2011 +0200
@@ -24,6 +24,10 @@
   echo 'cd /d %1'; \
   echo reg import cmd.reg; \
   echo reg import gooddies.reg; \
+  sed -e "s=@@INFOPATH@@=$$(cygpath -m /usr/share/info);$$(cygpath -m $$HOME/usr/share/info):=" \
+    -e "s=@@MANPATH@@=:$$HOME/usr/share/man:/usr/share/man:/usr/local/share/man=" \
+    <cygwin.tmpl.reg >cygwin.reg; \
+  echo reg import cygwin.reg; \
   if EMACSCLIENT_PATH=`command -v emacsclientw`; then \
     EMACSCLIENT_PATH=`cygpath -w $$EMACSCLIENT_PATH | sed 's=\\\\=&&&&=g'`; \
     sed "s=@@path-to-emacsclient@@=$$EMACSCLIENT_PATH=g" <emacs.reg >emacs.tmp.reg; \
@@ -38,7 +42,7 @@
   echo 'objShell.ShellExecute("regimport.bat", curdir, "", "runas", 1);'; \
 } >runas.js; \
 cscript runas.js;
-	rm -f regimport.bat runas.js emacs.tmp.reg;
+	rm -f regimport.bat runas.js emacs.tmp.reg cygwin.reg;
 endif
 
 .PHONY: uninstall
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/admin/win/reg/cygwin.tmpl.reg	Wed Nov 02 00:36:16 2011 +0200
@@ -0,0 +1,8 @@
+Windows Registry Editor Version 5.00
+
+; [HKEY_CURRENT_USER\Environment]
+[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
+"CYGWIN"="nodosfilewarning"
+"LANG"="ru_RU.cp1251"
+"INFOPATH"="@@INFOPATH@@"
+"MANPATH"="@@MANPATH@@"