summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-07-20 19:36:02 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:12 -0600
commitd198ab0c08ca44c72664eb83b844255d922cbcdb (patch)
tree09d74f95d94c35a89ecbe981d029adb1d5992eed /src
parentaeaae2a4bf7eefeb23b49649b25161a170749dc6 (diff)
run all source files through sed to update all changes in design.
fix the few things the sed script didn't count on (init.sh mostly) remove code for back-compat with unupdated parts update HACKING file with some (but not all design changes)
Diffstat (limited to 'src')
-rw-r--r--src/rvs-core/commit.d.sh6
-rw-r--r--src/rvs-core/commit.f.sh12
-rw-r--r--src/rvs-core/commit.sh6
-rw-r--r--src/rvs-core/get.d.sh6
-rw-r--r--src/rvs-core/get.f.sh8
-rw-r--r--src/rvs-core/get.sh6
-rw-r--r--src/rvs-core/init.sh8
-rw-r--r--src/rvs-core/lib/rvsdb.sh4
-rw-r--r--src/rvs.sh2
9 files changed, 27 insertions, 31 deletions
diff --git a/src/rvs-core/commit.d.sh b/src/rvs-core/commit.d.sh
index dcad82f..d8d366c 100644
--- a/src/rvs-core/commit.d.sh
+++ b/src/rvs-core/commit.d.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs:commit:d
name='rvs commit.d'
-ver='0.6.0'
+ver='0.6.3'
usage='[OPTIONS] DIRECTORY'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,8 @@ usage='[OPTIONS] DIRECTORY'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "`rvs -d`/lib/stdio"
-source "`rvs -d`/lib/rvsdb"
+source "$RVSDIR/lib/stdio"
+source "$RVSDIR/lib/rvsdb"
# commit.d DIRNAME
dir="$1"
diff --git a/src/rvs-core/commit.f.sh b/src/rvs-core/commit.f.sh
index ac645cd..a9be426 100644
--- a/src/rvs-core/commit.f.sh
+++ b/src/rvs-core/commit.f.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs:commit:f
name='rvs commit.f'
-ver='0.6.0'
+ver='0.6.3'
usage='[OPTIONS] FILE'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,16 +11,16 @@ usage='[OPTIONS] FILE'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "`rvs -d`/lib/stdio"
-source "`rvs -d`/lib/rvsdb"
+source "$RVSDIR/lib/stdio"
+source "$RVSDIR/lib/rvsdb"
# commit.f FILENAME
file="$1"
hash=`getid $file`
-if [ ! -f "$repo/files/$hash" ]; then
- #cp "$file" "$repo/files/$hash"
- install -m 644 -o $USER -g $USER -T "$file" "$repo/files/$hash"
+if [ ! -f "`rvs repo`/files/$hash" ]; then
+ #cp "$file" "`rvs repo`/files/$hash"
+ install -m 644 -o $USER -g $USER -T "$file" "`rvs repo`/files/$hash"
fi
echo "$hash"
diff --git a/src/rvs-core/commit.sh b/src/rvs-core/commit.sh
index 7fe1221..e54c9f4 100644
--- a/src/rvs-core/commit.sh
+++ b/src/rvs-core/commit.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs:commit
name='rvs commit'
-ver='0.6.0'
+ver='0.6.3'
usage='[OPTIONS] [FILE]'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,8 @@ usage='[OPTIONS] [FILE]'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "`rvs -d`/lib/stdio"
-source "`rvs -d`/lib/rvsdb"
+source "$RVSDIR/lib/stdio"
+source "$RVSDIR/lib/rvsdb"
# commit FILE
if [ $# -gt 0 ]; then
diff --git a/src/rvs-core/get.d.sh b/src/rvs-core/get.d.sh
index dcd78e8..a58a7c0 100644
--- a/src/rvs-core/get.d.sh
+++ b/src/rvs-core/get.d.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs:get:d
name='rvs get.d'
-ver='0.6.0'
+ver='0.6.3'
usage='[OPTIONS] ID FILENAME'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,8 @@ usage='[OPTIONS] ID FILENAME'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "`rvs -d`/lib/stdio"
-source "`rvs -d`/lib/rvsdb"
+source "$RVSDIR/lib/stdio"
+source "$RVSDIR/lib/rvsdb"
# get.d ID DIRNAME
id="$1"
diff --git a/src/rvs-core/get.f.sh b/src/rvs-core/get.f.sh
index 9e4cec7..3c17df5 100644
--- a/src/rvs-core/get.f.sh
+++ b/src/rvs-core/get.f.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs:get:f
name='rvs get.f'
-ver='0.6.0'
+ver='0.6.3'
usage='[OPTIONS] ID FILENAME'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,12 +11,12 @@ usage='[OPTIONS] ID FILENAME'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "`rvs -d`/lib/stdio"
-source "`rvs -d`/lib/rvsdb"
+source "$RVSDIR/lib/stdio"
+source "$RVSDIR/lib/rvsdb"
# get.f ID FILENAME
id="$1"
file="$2"
-cp "$repo/files/$id" "$file"
+cp "`rvs repo`/files/$id" "$file"
diff --git a/src/rvs-core/get.sh b/src/rvs-core/get.sh
index c1a2469..1d3eb76 100644
--- a/src/rvs-core/get.sh
+++ b/src/rvs-core/get.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs:get
name='rvs commit'
-ver='0.6.0'
+ver='0.6.3'
usage='[OPTIONS] ID [FILENAME]'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,8 @@ usage='[OPTIONS] ID [FILENAME]'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "`rvs -d`/lib/stdio"
-source "`rvs -d`/lib/rvsdb"
+source "$RVSDIR/lib/stdio"
+source "$RVSDIR/lib/rvsdb"
# get ID [FILE]
id="$1"
diff --git a/src/rvs-core/init.sh b/src/rvs-core/init.sh
index cb5866c..ff650a5 100644
--- a/src/rvs-core/init.sh
+++ b/src/rvs-core/init.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination rvs init
name='rvs init'
-ver='0.6.0'
+ver='0.6.3'
usage='[OPTIONS]'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,8 +11,8 @@ usage='[OPTIONS]'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-source "`rvs -d`/lib/stdio"
-source "`rvs -d`/lib/rvsdb"
+source "$RVSDIR/lib/stdio"
+source "$RVSDIR/lib/rvsdb"
-mkdir -p $repo/{,files}
+mkdir -p .rvs/{,files}
diff --git a/src/rvs-core/lib/rvsdb.sh b/src/rvs-core/lib/rvsdb.sh
index dcef0d6..41f0e03 100644
--- a/src/rvs-core/lib/rvsdb.sh
+++ b/src/rvs-core/lib/rvsdb.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs:lib:rvsdb
#name='rvs db'
-#ver='0.6.2'
+#ver='0.6.3'
logver='0.6.0'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -13,8 +13,6 @@ logver='0.6.0'
source "$RVSDIR/lib/stdio"
-repo=`rvs repo` # this is left for back-compat, and should be gone by 0.6.3
-
# getid file
getid() {
#md5sum $file | sed "s/ .*$//"
diff --git a/src/rvs.sh b/src/rvs.sh
index 4cd8eb5..580ce50 100644
--- a/src/rvs.sh
+++ b/src/rvs.sh
@@ -19,8 +19,6 @@ source "$RVSDIR/lib/stdio"
com=$1;
# END OPTION HANDLING #
case "$com" in
- # -d is left for back-compat, should be removed by the end of 0.6.3
- -d) echo "$RVSDIR";;
'') error 'no command specified';;
*)
if [ -f "$RVSDIR/$com" ]; then