* Makefile.am: Pass srcdir as an argument to mkstamp and expect only 2 fields in mkstamps output.
* clcommit.m4sh: Ditto.
* configure.ac: Ditto.
* libltdl/config/mkstamp: return a revision and date based on the number of lines which look like dates in all the ChangeLog* files in the directory we got as arg 1.
+2008-04-15 Peter O'Gorman <peter@pogma.com>
+
+ Allow bootstrap from git repository.
+ * Makefile.am: Pass srcdir as an argument to mkstamp and expect
+ only 2 fields in mkstamps output.
+ * clcommit.m4sh: Ditto.
+ * configure.ac: Ditto.
+ * libltdl/config/mkstamp: return a revision and date based on
+ the number of lines which look like dates in all the ChangeLog*
+ files in the directory we got as arg 1.
+
2008-04-11 Eric Blake <ebb9@byu.net>
Fix usage of setmode without declaration on cygwin.
MKSTAMP = $(SHELL) $(srcdir)/$(auxdir)/mkstamp
-timestamp = set dummy `$(MKSTAMP) < $(srcdir)/ChangeLog`; shift; \
+timestamp = set dummy `$(MKSTAMP) $(srcdir)`; shift; \
case $(VERSION) in \
- *[acegikmoqsuwy]) TIMESTAMP=" $$1 $$2 $$3" ;; \
+ *[acegikmoqsuwy]) TIMESTAMP=" $$1 $$2" ;; \
*) TIMESTAMP="" ;; \
esac
test -f CVS/Root &&
echo "CVSROOT: `$SED -e 's,.*:,,g' CVS/Root`"
test -f $MKSTAMP &&
- echo "TIMESTAMP: `$SHELL $MKSTAMP < ./ChangeLog`"
+ echo "TIMESTAMP: `$SHELL $MKSTAMP .`"
test -f CVS/Repository &&
echo "Module name: `cat CVS/Repository`"
test -f CVS/Tag &&
# This is a sanity check so we can see which version is used in bug reports.
# It is assumed that we only want to see the date extension for cvs libtool
# versions (i.e. "odd" letters) and not actual alpha releases.
-TIMESTAMP=`${CONFIG_SHELL} ${ac_aux_dir}/mkstamp < ${srcdir}/ChangeLog`
+TIMESTAMP=`${CONFIG_SHELL} ${ac_aux_dir}/mkstamp ${srcdir}`
package_revision=`( set $TIMESTAMP; echo $1; )`
case $lt_alpha in
[[bdfhjlnprtvxz]])
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
####
-# This script expects to find a line containing both Revision and Date
-# tags, and it edits this line so that it looks like ` $rev $date'
+# This script takes a directory as an argument and generates a
+# revision and date based upon the ChangeLog files in that directory.
-# Command-line arguments are passed down to sed; additional -e cmd
-# arguments are acceptable. Input is from from stdin. The original
-# version of this script accepted input from a named file or stdin.
+# Generate a revision that looks similar to CVS revision by using 1.
+# then the number of lines in the ChangeLogs starting with dates (an
+# approximation of the number of commits) + 1000.
+# For those pulling from the savannah git repository it should be
+# possible to go from this revision number to the git revision fairly
+# easily. The number will also always increase.
-tr -d "\015" | sed -e '
- s%.*\$''Revision: \([^$]*\) \$.*\$''Date: \([^$]*\) \$.*% \1 \2%
- t end
- d
- : end' ${1+"$@"}
+awk 'BEGIN {
+ cocount=0;
+}
+/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] / {
+ if (cocount== 0) {
+ datestr=$1
+ }
+ cocount++;
+}
+END {
+ cocount = cocount + 1000;
+ print "1." cocount " " datestr;
+}' $1/ChangeLog $1/ChangeLog.[12][0-9][0-9][0-9]