[PATCH] setup: capitalize names of files in /

Igor Peshansky pechtcha@cs.nyu.edu
Thu Oct 12 13:53:00 GMT 2006


As mentioned in <http://cygwin.com/ml/cygwin/2006-10/msg00466.html>,
here's a patch to capitalize the names of /Cygwin.bat and /Cygwin.ico, to
allow better tab completion for /cygdrive on new installs.

I've been doing this rename manually for ages, and it hasn't adversely
affected the operation of Cygwin.

ChangeLog below.
	Igor
==============================================================================
2006-10-12  Igor Peshansky  <pechtcha@cs.nyu.edu>

	* desktop.cc (make_cygwin_bat,save_icon): Capitalize filename.

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"
-------------- next part --------------
Index: desktop.cc
===================================================================
RCS file: /cvs/cygwin-apps/setup/desktop.cc,v
retrieving revision 2.44
diff -u -p -r2.44 desktop.cc
--- desktop.cc	6 Aug 2006 21:39:28 -0000	2.44
+++ desktop.cc	12 Oct 2006 13:47:30 -0000
@@ -155,7 +155,7 @@ desktop_icon (const std::string& title, 
 static void
 make_cygwin_bat ()
 {
-  batname = backslash (cygpath ("/cygwin.bat"));
+  batname = backslash (cygpath ("/Cygwin.bat"));
 
   /* if the batch file exists, don't overwrite it */
   if (_access (batname.c_str(), 0) == 0)
@@ -179,7 +179,7 @@ make_cygwin_bat ()
 static void
 save_icon ()
 {
-  iconname = backslash (cygpath ("/cygwin.ico"));
+  iconname = backslash (cygpath ("/Cygwin.ico"));
 
   HRSRC rsrc = FindResource (NULL, "CYGWIN.ICON", "FILE");
   if (rsrc == NULL)


More information about the Cygwin-apps mailing list