This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
mknetrel: symlink fix for absent usr/bin
- From: Jan Nieuwenhuizen <janneke at gnu dot org>
- To: cygwin-apps at cygwin dot com
- Date: Sun, 16 Mar 2003 13:53:03 +0100
- Subject: mknetrel: symlink fix for absent usr/bin
- Organization: Jan at Appel
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