From: Gary V. Vaughan Date: Sun, 7 Oct 2012 10:51:17 +0000 (+0700) Subject: maint: simplify "Local variables:" footer with time-stamp-pattern. X-Git-Tag: v2.4.2.418~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=941797e2730b14f5db7dcbfbe6d4e09bc29a0fa8;p=thirdparty%2Flibtool.git maint: simplify "Local variables:" footer with time-stamp-pattern. * bootstrap, build-aux/extract-trace, build-aux/options-parser (Local variables): Use time-stamp-pattern to set number of searched lines to 10, and to replace time-stamp-start, time-stamp-end and time-stamp-format. Signed-off-by: Gary V. Vaughan --- diff --git a/bootstrap b/bootstrap index f02a5cfb5..2beabbc11 100755 --- a/bootstrap +++ b/bootstrap @@ -1,11 +1,11 @@ #! /bin/sh -# Source required external libraries. +# Source required external libraries: . `echo "$0" |${SED-sed} 's|[^/]*$||'`"build-aux/options-parser" . `echo "$0" |${SED-sed} 's|[^/]*$||'`"build-aux/extract-trace" # Set a version string for *this* script. -scriptversion=2011-11-21.09; # UTC +scriptversion=2012-10-07.10; # UTC # Bootstrap this package from checked-out sources. # Written by Gary V. Vaughan, 2010 @@ -2529,8 +2529,6 @@ exit ${exit_status-$EXIT_SUCCESS} # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" # End: diff --git a/build-aux/extract-trace b/build-aux/extract-trace index 6ca0edcf4..5a00ea076 100755 --- a/build-aux/extract-trace +++ b/build-aux/extract-trace @@ -4,7 +4,7 @@ test -n "$progpath" || . `echo "$0" |${SED-sed} 's|[^/]*$||'`/options-parser # Set a version string. -scriptversion=2011-11-21.10; # UTC +scriptversion=2012-10-07.10; # UTC # Extract macro arguments from autotools input with GNU M4. # Written by Gary V. Vaughan, 2010 @@ -400,8 +400,6 @@ test extract-trace = "$progname" && func_main "$@" # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" # End: diff --git a/build-aux/options-parser b/build-aux/options-parser index 14e67417a..cb3f137d5 100644 --- a/build-aux/options-parser +++ b/build-aux/options-parser @@ -1,7 +1,7 @@ #! /bin/sh # Set a version string for this script. -scriptversion=2011-11-20.12; # UTC +scriptversion=2012-10-07.10; # UTC # A pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 @@ -852,8 +852,6 @@ func_version () # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" # End: