This is the mail archive of the cygwin-apps@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

mknetrel: symlink fix for absent usr/bin


I've posted a simple fix for symlinks quite a while ago, but I found a
more fragile variant in CVS today.  I'd like to suggest something like
I have been using, below.

Greetings,
Jan.


2003-03-16  Jan Nieuwenhuizen  <janneke at gnu dot org>

	* bin/mknetrel.pats2 (dousrstuff): Don't fail if usr/bin is absent.


--- mknetrel	8 Jan 2003 01:35:03 -0000	1.43
+++ mknetrel	16 Mar 2003 12:44:02 -0000
@@ -322,8 +322,7 @@
 
     rm -rf i686-pc-cygwin
 
-    cd bin
-    for f in *; do
+    (cd bin && for f in *; do
 	case "$f" in
 	    *.exe|*\*) continue ;;
 	esac
@@ -337,9 +336,8 @@
 		ln -s $ln.exe $f.exe
 		;;
 	esac
-    done
+    done)
 
-    cd ..
     for f in bin/* sbin/*; do
 	case "$f" in
 	    *.exe) ;;
        


-- 
Jan Nieuwenhuizen <janneke at gnu dot org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]