From 07dd960ad08c52a923a1e6d8485d0cd5c9040733 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 2 Nov 2009 20:33:40 -0500 Subject: It appears I'd previously edited other files, but as far as I knew a moment ago: The Makefiles have had support for DESTDIR for some time. I just realised configure didn't Which lead me to find some bugs in configure's option handling. --- plugins/files/commit.d.sh | 5 +++-- plugins/files/commit.f.sh | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'plugins/files') diff --git a/plugins/files/commit.d.sh b/plugins/files/commit.d.sh index 2b3f022..f5b432b 100644 --- a/plugins/files/commit.d.sh +++ b/plugins/files/commit.d.sh @@ -20,7 +20,8 @@ ver=0.9 source "$libexecdir/@ID@/stdio" # commit.d DIRNAME -dir="$1" +out="$1" +dir="$2" tmp=`mktemp` cd "$dir" @@ -29,6 +30,6 @@ for file in *; do echo "$file:$hash" >> "$tmp" done -"$RVS" commit.f "$tmp" +"$RVS" commit.f "$out" "$tmp" rm "$tmp" diff --git a/plugins/files/commit.f.sh b/plugins/files/commit.f.sh index bbcbbe4..a86e5b5 100644 --- a/plugins/files/commit.f.sh +++ b/plugins/files/commit.f.sh @@ -20,12 +20,13 @@ ver=0.9 #source "$libexecdir/@ID@/stdio" # commit.f FILENAME -file="$1" +out="$1" +file="$2" #hash=`md5sum $file | sed "s/ .*$//"` hash=`sha1sum $file | sed "s/ .*$//"` if [ ! -f "$REPO/@ID@/$hash" ]; then install -m 644 -o $USER -g $USER -T "$file" "$REPO/@ID@/$hash" fi -echo "$hash" +echo "$hash" >> "$out" -- cgit v1.2.3-54-g00ecf