summaryrefslogtreecommitdiff
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
commit07dd960ad08c52a923a1e6d8485d0cd5c9040733 (patch)
tree965aa4db62c5363c94c9fd5b1618735a84656f47
parent677ddc8a26bd3f61e1f1b2952e7f29fa7bf986ee (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.
-rw-r--r--plugins/filedata/commit.sh3
-rw-r--r--plugins/filedata/get.sh2
-rw-r--r--plugins/files/commit.d.sh5
-rw-r--r--plugins/files/commit.f.sh5
4 files changed, 10 insertions, 5 deletions
diff --git a/plugins/filedata/commit.sh b/plugins/filedata/commit.sh
index 0f3b8d1..f046db4 100644
--- a/plugins/filedata/commit.sh
+++ b/plugins/filedata/commit.sh
@@ -17,8 +17,9 @@ ver=0.9
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
+out="$1"
+file="$2"
hash="`cat /dev/stdin`"
-file="$1"
temp=`mktemp`
echo "Hash: $hash" > "$temp"
diff --git a/plugins/filedata/get.sh b/plugins/filedata/get.sh
index 52dbe26..321d5f8 100644
--- a/plugins/filedata/get.sh
+++ b/plugins/filedata/get.sh
@@ -17,5 +17,7 @@ ver=0.9
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
+out="$1"
+
echo "yeah, this hasn't been coded yet, sorry!"
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"