summaryrefslogtreecommitdiff
path: root/tools/pre-commit
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-21 16:27:32 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-21 16:27:32 -0400
commit3d326956ef79cd1b623afa65b994a26b17dc6f24 (patch)
tree19e57a5e8f704e26a83464dd4019185620c000cd /tools/pre-commit
parent067f512e9469614d0536d2ac964365bd19c6fa4b (diff)
downloadfork-ledger-3d326956ef79cd1b623afa65b994a26b17dc6f24.tar.gz
fork-ledger-3d326956ef79cd1b623afa65b994a26b17dc6f24.tar.bz2
fork-ledger-3d326956ef79cd1b623afa65b994a26b17dc6f24.zip
Improved the pre-commit hook
Diffstat (limited to 'tools/pre-commit')
-rwxr-xr-xtools/pre-commit12
1 files changed, 5 insertions, 7 deletions
diff --git a/tools/pre-commit b/tools/pre-commit
index b1a3a187..25fe8a8b 100755
--- a/tools/pre-commit
+++ b/tools/pre-commit
@@ -21,8 +21,7 @@ git diff-index --cached --name-only --diff-filter=D -z HEAD | \
# Copy only _changed files_ from MIRROR to TMPDIR, without copying timestamps.
# This includes copying over new files, and deleting removed ones. This way,
# "make check" will only rebuild what is necessary to validate the commit.
-rsync -rlpgoDO --size-only --delete \
- --exclude-from=tools/excludes $MIRROR/ $TMPDIR/
+rsync -rlpgoDOc --delete --exclude-from=tools/excludes $MIRROR/ $TMPDIR/
# Everything else happens in the temporary build tree
if [ ! -f $TMPDIR/lib/utfcpp/source/utf8.h ]; then
@@ -35,11 +34,10 @@ cd $TMPDIR
# everything manually. If the user doesn't have acprep or myacprep, look for
# other common autoconf-related script files.
if [ ! -f Makefile -o \
- \( Makefile.am -nt Makefile -o \
- configure.ac -nt Makefile \) -o \
- \( -f tools/myacprep -a -f acprep -a \
- \( tools/myacprep -nt Makefile -o \
- acprep -nt Makefile \) \) ]
+ Makefile.am -nt Makefile -o \
+ configure.ac -nt Makefile -o \
+ \( -f acprep -a acprep -nt Makefile \) -o \
+ \( -f tools/myacprep -a tools/myacprep -nt Makefile \) ]
then
if [ -f tools/myacprep ]; then
tools/myacprep --local