summaryrefslogtreecommitdiff
path: root/plugins/repo
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-08-03 19:03:08 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:13 -0600
commitfc8d2f56a8104e755766fbbca4729906000cf78d (patch)
treeb902e17f5e59e960772d215ee613a73c8a87226b /plugins/repo
parentaa5141e77203fd084d809f27d55192a988723803 (diff)
0.7.2 -- refactor slightly, flesh out plugin: users
Diffstat (limited to 'plugins/repo')
-rw-r--r--plugins/repo/commit.d.sh10
-rw-r--r--plugins/repo/commit.f.sh6
-rw-r--r--plugins/repo/commit.sh10
-rw-r--r--plugins/repo/get.d.sh10
-rw-r--r--plugins/repo/get.f.sh6
-rw-r--r--plugins/repo/get.sh10
-rw-r--r--plugins/repo/lib/stdio.sh4
7 files changed, 28 insertions, 28 deletions
diff --git a/plugins/repo/commit.d.sh b/plugins/repo/commit.d.sh
index 3c6709d..1175a07 100644
--- a/plugins/repo/commit.d.sh
+++ b/plugins/repo/commit.d.sh
@@ -1,6 +1,6 @@
#!@SHELL@
-name='rvs commit.d'
-ver='0.7.0'
+name='rvs repo commit.d'
+ver='0.7.2'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -9,7 +9,7 @@ ver='0.7.0'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-#source "$RVSDIR/lib/stdio"
+#source "$libexecdir/lib/stdio"
# commit.d DIRNAME
dir="$1"
@@ -17,10 +17,10 @@ tmp=`tempfile`
cd "$dir"
for file in *; do
- hash=`"$RVSDIR/commit" "$file"`
+ hash=`"$libexecdir/commit" "$file"`
echo "$file:$hash" >> "$tmp"
done
-"$RVSDIR/commit.f" "$tmp"
+"$libexecdir/commit.f" "$tmp"
rm "$tmp"
diff --git a/plugins/repo/commit.f.sh b/plugins/repo/commit.f.sh
index ebc8214..15ba700 100644
--- a/plugins/repo/commit.f.sh
+++ b/plugins/repo/commit.f.sh
@@ -1,6 +1,6 @@
#!@SHELL@
-name='rvs commit.f'
-ver='0.7.0'
+name='rvs repo commit.f'
+ver='0.7.2'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -9,7 +9,7 @@ ver='0.7.0'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-#source "$RVSDIR/lib/stdio"
+#source "$libexecdir/lib/stdio"
# commit.f FILENAME
file="$1"
diff --git a/plugins/repo/commit.sh b/plugins/repo/commit.sh
index fbfd7ca..d85dd01 100644
--- a/plugins/repo/commit.sh
+++ b/plugins/repo/commit.sh
@@ -1,6 +1,6 @@
#!@SHELL@
-name='rvs commit'
-ver='0.7.0'
+name='rvs repo commit'
+ver='0.7.2'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -9,7 +9,7 @@ ver='0.7.0'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "$RVSDIR/lib/stdio"
+source "$libexecdir/lib/stdio"
# commit FILE
file=${1-.}
@@ -30,7 +30,7 @@ elif [ -s $file ]; then type='s'; # socket
else error "could not identify file type of \`$file'"
fi
-ret=`"$RVSDIR/commit.$type" "$file"`
+ret=`"$libexecdir/commit.$type" "$file"`
tmp=`tempfile`
cat << __EOF__ > "$tmp"
@@ -42,6 +42,6 @@ owner:$owner
license:$license
__EOF__
-"$RVSDIR/commit.f" "$tmp"
+"$libexecdir/commit.f" "$tmp"
rm "$tmp"
diff --git a/plugins/repo/get.d.sh b/plugins/repo/get.d.sh
index 9b1b5bc..834d8f5 100644
--- a/plugins/repo/get.d.sh
+++ b/plugins/repo/get.d.sh
@@ -1,6 +1,6 @@
#!@SHELL@
-name='rvs get.d'
-ver='0.7.0'
+name='rvs repo get.d'
+ver='0.7.2'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -9,14 +9,14 @@ ver='0.7.0'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-#source "$RVSDIR/lib/stdio"
+#source "$libexecdir/lib/stdio"
# get.d ID DIRNAME
id="$1"
dir="$2"
tmp=`tempfile`
-"$RVSDIR/get.f" "$id" "$tmp"
+"$libexecdir/get.f" "$id" "$tmp"
#install -d "$dir"
mkdir -p "$dir"
@@ -30,7 +30,7 @@ while read line; do
# POSIX version
hash=`echo "$line" | sed 's/^.*://'`
name=`echo "$line" | sed "s/:$hash$//"`
- "$RVSDIR/get" "$hash" "$name"
+ "$libexecdir/get" "$hash" "$name"
done < "$tmp"
rm "$tmp"
diff --git a/plugins/repo/get.f.sh b/plugins/repo/get.f.sh
index 37d7b26..c37d77f 100644
--- a/plugins/repo/get.f.sh
+++ b/plugins/repo/get.f.sh
@@ -1,6 +1,6 @@
#!@SHELL@
-name='rvs get.f'
-ver='0.7.0'
+name='rvs repo get.f'
+ver='0.7.2'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -9,7 +9,7 @@ ver='0.7.0'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-#source "$RVSDIR/lib/stdio"
+#source "$libexecdir/lib/stdio"
# get.f ID FILENAME
id="$1"
diff --git a/plugins/repo/get.sh b/plugins/repo/get.sh
index fcb602a..52edc27 100644
--- a/plugins/repo/get.sh
+++ b/plugins/repo/get.sh
@@ -1,6 +1,6 @@
#!@SHELL@
-name='rvs get'
-ver='0.7.0'
+name='rvs repo get'
+ver='0.7.2'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -9,18 +9,18 @@ ver='0.7.0'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "$RVSDIR/lib/stdio"
+source "$libexecdir/lib/stdio"
# get ID [FILE]
id="$1"
tmp=`tempfile`
-"$RVSDIR/get.f" "$id" "$tmp"
+"$libexecdir/get.f" "$id" "$tmp"
type="`sed -n 's/^type://p' "$tmp"`"
file="${2-`sed -n 's/^name://p' "$tmp"`}"
hash="`sed -n 's/^hash://p' "$tmp"`"
out "-$type `pwd`/$file:$hash"
-"$RVSDIR/get.$type" "$hash" "$file"
+"$libexecdir/get.$type" "$hash" "$file"
rm "$tmp"
diff --git a/plugins/repo/lib/stdio.sh b/plugins/repo/lib/stdio.sh
index 3207db8..2975440 100644
--- a/plugins/repo/lib/stdio.sh
+++ b/plugins/repo/lib/stdio.sh
@@ -1,6 +1,6 @@
#!@SHELL@
-#name='rvs stdio'
-#ver='0.7.0'
+#name='rvs repo stdio'
+#ver='0.7.2'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of