comparison move-if-change @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents f6334be47118
children
comparison
equal deleted inserted replaced
68:561a7518be6b 111:04ced10e8804
1 #!/bin/sh 1 #!/bin/sh
2 # Like mv $1 $2, but if the files are the same, just delete $1. 2 # Like mv $1 $2, but if the files are the same, just delete $1.
3 # Status is zero if successful, nonzero otherwise. 3 # Status is zero if successful, nonzero otherwise.
4 4
5 VERSION='2011-01-28 20:09'; # UTC 5 VERSION='2012-01-06 07:23'; # UTC
6 # The definition above must lie within the first 8 lines in order 6 # The definition above must lie within the first 8 lines in order
7 # for the Emacs time-stamp write hook (at end) to update it. 7 # for the Emacs time-stamp write hook (at end) to update it.
8 # If you change this file with Emacs, please let the write hook 8 # If you change this file with Emacs, please let the write hook
9 # do its job. Otherwise, update this string manually. 9 # do its job. Otherwise, update this string manually.
10 10
11 # Copyright (C) 2002-2007, 2009-2011 Free Software Foundation, Inc. 11 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
12 12
13 # This program is free software: you can redistribute it and/or modify 13 # This program is free software: you can redistribute it and/or modify
14 # it under the terms of the GNU General Public License as published by 14 # it under the terms of the GNU General Public License as published by
15 # the Free Software Foundation, either version 3 of the License, or 15 # the Free Software Foundation, either version 3 of the License, or
16 # (at your option) any later version. 16 # (at your option) any later version.
30 If SOURCE is different than DEST, then move it to DEST; else remove SOURCE. 30 If SOURCE is different than DEST, then move it to DEST; else remove SOURCE.
31 31
32 --help display this help and exit 32 --help display this help and exit
33 --version output version information and exit 33 --version output version information and exit
34 34
35 The variable CMPPROG can be used to specify an alternative to \`cmp'. 35 The variable CMPPROG can be used to specify an alternative to 'cmp'.
36 36
37 Report bugs to <bug-gnulib@gnu.org>." 37 Report bugs to <bug-gnulib@gnu.org>."
38 38
39 version=`expr "$VERSION" : '\([^ ]*\)'` 39 version=`expr "$VERSION" : '\([^ ]*\)'`
40 version="move-if-change (gnulib) $version 40 version="move-if-change (gnulib) $version