Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/mkvers.sh')
-rwxr-xr-xwinsup/cygwin/mkvers.sh8
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