diff options
Diffstat (limited to 'winsup/cygwin/mkvers.sh')
-rwxr-xr-x | winsup/cygwin/mkvers.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/winsup/cygwin/mkvers.sh b/winsup/cygwin/mkvers.sh index 421ca5bf2..5a859f4f0 100755 --- a/winsup/cygwin/mkvers.sh +++ b/winsup/cygwin/mkvers.sh @@ -92,10 +92,12 @@ wv_cvs_tag="$cvs_tag" # # Look in the source directory containing the include/cygwin/version.h -# file for a ".snapshot-date" file. If one is found then this information -# will be saved for output to the DLL. -# +# and set dir accordingly. dir=`echo $dir | sed -e 's%/include/cygwin.*$%%' -e 's%include/cygwin.*$%.%'` + +# Look in $dir for a a ".snapshot-date" file. If one is found then this +# information will be saved for output to the DLL. +# if [ -r "$dir/.snapshot-date" ]; then read snapshotdate < "$dir/.snapshot-date" snapshot="snapshot date |