[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patch for config/mkstamp under Windows
From: |
Bob Friesenhahn |
Subject: |
Patch for config/mkstamp under Windows |
Date: |
Tue, 14 Sep 2004 21:42:30 -0500 (CDT) |
This is a second try at creating a more appealing solution for the
problem that sed operates more like cat under MinGW if ChangeLog uses
CR/NL terminations. Notice that the behavior of mkstamp is somewhat
altered from the previous version.
Ok to commit?
Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.1619
diff -u -r1.1619 ChangeLog
--- ChangeLog 15 Sep 2004 01:39:18 -0000 1.1619
+++ ChangeLog 15 Sep 2004 02:39:20 -0000
@@ -1,3 +1,11 @@
+2004-09-14 Bob Friesenhahn <address@hidden>
+
+ * config/mkstamp: Translate input data so that it is assured to
+ use the Unix line terminations. This is necessary under Windows if
+ the files are checked out with CR/NL line terminations. A
+ side-effect of this change is that input must always be from
+ stdin. Previously a filename argument was accepted as well.
+
2004-09-15 Ralf Wildenhues <address@hidden>
* m4/libtool.m4 (_LT_ENABLE_LOCK):Replace AC_TRY_LINK with
Index: config/mkstamp
===================================================================
RCS file: /cvsroot/libtool/libtool/config/mkstamp,v
retrieving revision 1.2
diff -u -r1.2 mkstamp
--- config/mkstamp 26 Nov 2003 12:34:23 -0000 1.2
+++ config/mkstamp 15 Sep 2004 02:39:20 -0000
@@ -27,10 +27,10 @@
# tags, and it edits this line so that it looks like ` $rev $date'
# Command-line arguments are passed down to sed; additional -e cmd
-# arguments are acceptable. If no input filename is specified in the
-# command line, sed will read from stdin.
+# arguments are acceptable. Input is from from stdin. The original
+# version of this script accepted input from a named file or stdin.
-exec sed -e '
+tr -d "\015" | sed -e '
s%.*\$''Revision: \([^$]*\) \$.*\$''Date: \([^$]*\) \$.*% \1 \2%
t end
d
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen
- Patch for config/mkstamp under Windows,
Bob Friesenhahn <=