File tree Expand file tree Collapse file tree 3 files changed +254
-28
lines changed Expand file tree Collapse file tree 3 files changed +254
-28
lines changed Original file line number Diff line number Diff line change 1
- # !/usr/bin/perl -w
1
+ # !/usr/bin/perl
2
2
use strict;
3
+ use warnings;
3
4
4
5
# Sets mtime and atime of files to the latest commit time in git.
5
6
#
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
# Print a version string.
3
- scriptversion=2012 -12-31.23 ; # UTC
3
+ scriptversion=2014 -12-02.19 ; # UTC
4
4
5
- # Copyright (C) 2007-2013 Free Software Foundation, Inc.
5
+ # Copyright (C) 2007-2014 Free Software Foundation, Inc.
6
6
#
7
7
# This program is free software: you can redistribute it and/or modify
8
8
# it under the terms of the GNU General Public License as published by
@@ -85,8 +85,9 @@ Print a version string.
85
85
86
86
Options:
87
87
88
- --prefix prefix of git tags (default 'v')
89
- --fallback fallback version to use if \" git --version\" fails
88
+ --prefix PREFIX prefix of git tags (default 'v')
89
+ --fallback VERSION
90
+ fallback version to use if \" git --version\" fails
90
91
91
92
--help display this help and exit
92
93
--version output version information and exit
@@ -214,7 +215,7 @@ if test "x$v_from_git" != x; then
214
215
fi
215
216
216
217
# Omit the trailing newline, so that m4_esyscmd can use the result directly.
217
- echo " $v " | tr -d " $nl "
218
+ printf %s " $v "
218
219
219
220
# Local variables:
220
221
# eval: (add-hook 'write-file-hooks 'time-stamp)
You can’t perform that action at this time.
0 commit comments