Commit 2b3f5bc8 authored by Paul Eggert's avatar Paul Eggert

* install-sh, mkinstalldirs, move-if-change: Update from master

parent f56e0e7a
2011-01-07 Paul Eggert <eggert@cs.ucla.edu>
* install-sh, mkinstalldirs, move-if-change: Update from master
source in gnulib.
* config.guess, config.sub: Updated from master source.
2011-01-05 Andreas Schwab <schwab@linux-m68k.org>
......
2011-01-02 Paul Eggert <eggert@cs.ucla.edu>
2011-01-07 Paul Eggert <eggert@cs.ucla.edu>
* notes/copyright: There's only one install-sh, not two, so fix a
typo claiming that there's two. Add move-if-change to the list of
GPL files imported from gnulib.
2011-01-07 Paul Eggert <eggert@cs.ucla.edu>
* notes/copyright: Report status more accurately for non-GPL files.
Report copyright status more accurately for mkinstalldirs,
......
......@@ -138,8 +138,7 @@ configure
m4/getopt.m4
- copyright FSF, with MIT-like license
<top-level>/install-sh
lispintro/install-sh
install-sh
- this file is copyright MIT, which is OK. Leave the copyright alone.
mkinstalldirs
......@@ -621,6 +620,7 @@ of writing) GPL >= 2. rms says may as well leave the licenses of these
alone (may import them from Gnulib again). These are:
Gnulib:
move-if-change
src/getloadavg.c
src/gmalloc.c
src/md5.c
......
This diff is collapsed.
#! /bin/sh
# mkinstalldirs --- make directory hierarchy
scriptversion=2006-05-11.19
scriptversion=2009-04-28.21; # UTC
# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
# Created: 1993-05-16
......@@ -150,3 +150,13 @@ do
done
exit $errstatus
# Local Variables:
# 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-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:
#!/bin/sh
if
test -r $2
then
if
cmp $1 $2 > /dev/null
then
echo $2 is unchanged
rm -f $1
# Like mv $1 $2, but if the files are the same, just delete $1.
# Status is zero if successful, nonzero otherwise.
VERSION='2007-09-28 23:10'; # UTC
# The definition above must lie within the first 8 lines in order
# for the Emacs time-stamp write hook (at end) to update it.
# If you change this file with Emacs, please let the write hook
# do its job. Otherwise, update this string manually.
# Copyright (C) 2002-2007, 2009-2011 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
usage="usage: $0 SOURCE DEST"
help="$usage
or: $0 OPTION
If SOURCE is different than DEST, then move it to DEST; else remove SOURCE.
--help display this help and exit
--version output version information and exit
Report bugs to <bug-gnulib@gnu.org>."
version=`expr "$VERSION" : '\([^ ]*\)'`
version="move-if-change (gnulib) $version
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law."
for arg
do
case $arg in
--help | --hel | --he | --h)
exec echo "$help" ;;
--version | --versio | --versi | --vers | --ver | --ve | --v)
exec echo "$version" ;;
--)
shift
break ;;
-*)
echo "$0: invalid option: $arg" >&2
exit 1 ;;
*)
break ;;
esac
done
test $# = 2 || { echo "$0: $usage" >&2; exit 1; }
if test -r "$2" && cmp -s -- "$1" "$2"; then
rm -f -- "$1"
else
mv -f $1 $2
fi
else
mv -f $1 $2
mv -f -- "$1" "$2"
fi
## Local Variables:
## eval: (add-hook 'write-file-hooks 'time-stamp)
## time-stamp-start: "VERSION='"
## time-stamp-format: "%:y-%02m-%02d %02H:%02M"
## time-stamp-time-zone: "UTC"
## time-stamp-end: "'; # UTC"
## End:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment