This is the mail archive of the cygwin@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] |
Hi, > > 1) the '-l' option of cygpath works in the cvs HEAD, and > > 2) it does exactly what we need (thanks, Corinna). Cool... I've just modified your code to correct case on $WINETC before we do the directory check. This has the side-effect of catching the cygpath bug without creating any links. As for the script name, given the scope of /etc/postinstall I think it should contain the package name. Someone suggested mketc.sh and that's fairly consistent with the old-skool MKDEV script. So I think it should be called cygwin-mketc.sh. How come your script works when cygpath is called inside $(...) but not backticks? Paul
Attachment:
cygwin-mketc.sh
Description: Bourne shell script
19a20 > WINETC="$(/bin/cygpath -u "$(/bin/cygpath -w -l "$WINETC")")" 22a24 > echo "If directory name is garbage, update cygpath to 1.22 or later" >&2 32c34 < WFILE="$(cygpath -u "$(cygpath -w -l "$WFILE")")" --- > WFILE="$(/bin/cygpath -u "$(/bin/cygpath -w -l "$WFILE")")"
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |