Mercurial > hg > octave-kai > gnulib-hg
comparison config/srclist-update @ 9653:c6363be84da4
try to preserve x bits
author | Karl Berry <karl@freefriends.org> |
---|---|
date | Wed, 30 Jan 2008 11:57:21 -0800 |
parents | bbbbbf4cd1c5 |
children | 60ed1a52905e |
comparison
equal
deleted
inserted
replaced
9652:1cde04015fdf | 9653:c6363be84da4 |
---|---|
2 # $Id: srclist-update,v 1.19 2007-03-30 23:44:27 karl Exp $ | 2 # $Id: srclist-update,v 1.19 2007-03-30 23:44:27 karl Exp $ |
3 # | 3 # |
4 # Check for files in directory $1 being up to date, according to the | 4 # Check for files in directory $1 being up to date, according to the |
5 # list on stdin. Don't actually make any changes, just show the diffs. | 5 # list on stdin. Don't actually make any changes, just show the diffs. |
6 # | 6 # |
7 # Copyright (C) 2002, 2003, 2005, 2007 Free Software Foundation, Inc. | 7 # Copyright (C) 2002, 2003, 2005, 2007, 2008 Free Software Foundation, Inc. |
8 # | 8 # |
9 # This program is free software: you can redistribute it and/or modify | 9 # This program is free software: you can redistribute it and/or modify |
10 # it under the terms of the GNU General Public License as published by | 10 # it under the terms of the GNU General Public License as published by |
11 # the Free Software Foundation; either version 3 of the License, or | 11 # the Free Software Foundation; either version 3 of the License, or |
12 # (at your option) any later version. | 12 # (at your option) any later version. |
116 # of a clean comparison. | 116 # of a clean comparison. |
117 srctmp=$TMPDIR/`basename $src` | 117 srctmp=$TMPDIR/`basename $src` |
118 fixfile $src $srctmp | 118 fixfile $src $srctmp |
119 test -r $dst && fixfile $dst $dsttmp | 119 test -r $dst && fixfile $dst $dsttmp |
120 | 120 |
121 # if src was executable, make dst executable, to placate git. | |
122 test -x $src && chmod a+x $dst | |
123 | |
121 if test ! -e $dst; then | 124 if test ! -e $dst; then |
122 echo "## $srctmp $dst # new" | 125 echo "## $srctmp $dst # new" |
123 $chicken cp -p $srctmp $dst | 126 $chicken cp -p $srctmp $dst |
124 elif cmp -s $srctmp $dsttmp; then | 127 elif cmp -s $srctmp $dsttmp; then |
125 $verbose && echo "## $srctmp $dst # unchanged" | 128 $verbose && echo "## $srctmp $dst # unchanged" |