summaryrefslogtreecommitdiff
path: root/rvs/plugins/files/commit.f.sh
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6426us-u904.(none)>2009-11-02 20:33:40 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:18 -0600
commit419801528066ea61546cde30c9f9f7f953e823b5 (patch)
tree55f9196d32710272fb07080ecf0863ce9e63ba76 /rvs/plugins/files/commit.f.sh
parent2db6b833176b0a0a55de21a38a83bd97df537191 (diff)
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.
Diffstat (limited to 'rvs/plugins/files/commit.f.sh')
-rw-r--r--rvs/plugins/files/commit.f.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/rvs/plugins/files/commit.f.sh b/rvs/plugins/files/commit.f.sh
index bbcbbe4..a86e5b5 100644
--- a/rvs/plugins/files/commit.f.sh
+++ b/rvs/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"