summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2009-07-20 18:17:23 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:12 -0600
commit4315b8593150cbd1f90669ffc4e5a10d77b7abfd (patch)
tree60bdd0d7a3996d16d85252831840d2797f8f7bef
parent363bfb698b6cfe22d34ae4e974760b4066a5deb9 (diff)
0.6.3 -- begin reworking $$libdir$$/lib
-rw-r--r--HACKING14
-rw-r--r--README4
-rw-r--r--Variables2
-rw-r--r--src/rvs-core/init.sh2
-rw-r--r--src/rvs.sh11
5 files changed, 17 insertions, 16 deletions
diff --git a/HACKING b/HACKING
index eb7b34f..6571868 100644
--- a/HACKING
+++ b/HACKING
@@ -1,5 +1,5 @@
//////////////////////////////////////////////////////////////////////
- rvs 0.6.1
+ rvs 0.6.3
retroactive versioning system
a versioning system that allows you to check
in commit 2 before commit 1
@@ -39,7 +39,7 @@
configuration Variables
Again the configuration variables and their default values are:
- VER '0.6.1'
+ VER '0.6.3'
SHELL '/usr/bin/env bash'
prefix "$HOME"
bindir 'bin'
@@ -51,7 +51,7 @@
The source for the core is in `source/rvs-core/'
$$SHELL$$ is the shell all shell scripts that are part of rvs are
- run in. As of rvs 0.6.1 all executables are shell scripts.
+ run in. As of rvs 0.6.3 all executables are shell scripts.
Most of these can easily be changed _after_ compilation also:
VER line 4 of the wrapper
@@ -85,7 +85,7 @@
As you probably noticed (if you've looked at the blueprints or
source files), only directories and regular files have been
- implemented as of rvs 0.6.2.
+ implemented as of rvs 0.6.3.
After `rvs commit' has done this, it creates a meta-file for that
commit. The meta file contains author, copyright owner, licence
@@ -115,6 +115,8 @@
having to worry about bindings
$$libdir$$/lib/
+ THIS WAS WRITTEN FOR rvs 0.6.2
+ THIS PORTION OF THE CODE IS BEING REVISED IN rvs 0.6.3
I have created two 'libraries' for use by rvs components. They
provide several functions that can be accessed by shell script by
@@ -146,7 +148,7 @@
getid FILE
returns what the id of a given file would be if it were in
the database. This is used to know where to put files when
- commiting them. In 0.6.[0-2] this is just the sha1sum of
+ commiting them. In 0.5.8-0.6.3 this is just the sha1sum of
the file
NOTE: the "log*" functions aren't very stable or developed
loginit FILE
@@ -180,7 +182,7 @@
directory, a link, or any other type of file, 2 file are created in
`.rvs/files', the "raw-file" and the "meta-file". When we speek of
file IDs, we mean the filename of the corresponding file in
- `.rvs/files' in rvs 0.5.8-0.6.2 this is just the sha1sum of the
+ `.rvs/files' in rvs 0.5.8-0.6.3 this is just the sha1sum of the
file. The meta-file stores everything not part of the file itself;
the filename, file-type, author, copyright owner, file permissions,
timestamps, etc, and the ID of the corresponding raw-file. In the
diff --git a/README b/README
index cf69e74..d12d484 100644
--- a/README
+++ b/README
@@ -1,5 +1,5 @@
//////////////////////////////////////////////////////////////////////
- rvs 0.6.1
+ rvs 0.6.3
retroactive versioning system
a versioning system that allows you to check
in commit 2 before commit 1
@@ -68,7 +68,7 @@ building
$ ./configure --VAR_NAME=VALUE
The different configuration variables are as follows:
- VER value='0.6.0'
+ VER value='0.6.3'
rvs's internal varsion number
SHELL value='/usr/bin/env bash'
the shell that scripts will be run in.
diff --git a/Variables b/Variables
index 15799d3..a8d127e 100644
--- a/Variables
+++ b/Variables
@@ -1,4 +1,4 @@
-VER '0.6.2'
+VER '0.6.3'
SHELL '/usr/bin/env bash'
prefix "$HOME"
bindir 'bin'
diff --git a/src/rvs-core/init.sh b/src/rvs-core/init.sh
index abc5b08..cb5866c 100644
--- a/src/rvs-core/init.sh
+++ b/src/rvs-core/init.sh
@@ -14,5 +14,5 @@ usage='[OPTIONS]'
source "`rvs -d`/lib/stdio"
source "`rvs -d`/lib/rvsdb"
-mkdir -p $repo/{,files,tmp}
+mkdir -p $repo/{,files}
diff --git a/src/rvs.sh b/src/rvs.sh
index 5059dca..4cd8eb5 100644
--- a/src/rvs.sh
+++ b/src/rvs.sh
@@ -1,7 +1,7 @@
#!$$SHELL$$
# abomination module:rvs
name='rvs'
-ver='0.5.10'
+ver='0.6.3'
usage='COMMAND [OPTIONS]'
# Copyright (C) 2009 Luke Shumaker
# This program is distributed in the hope that it will be useful,
@@ -11,21 +11,20 @@ usage='COMMAND [OPTIONS]'
#
# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-RVSDIR='$$libdir$$'
+export RVSDIR='$$libdir$$'
source "$RVSDIR/lib/stdio"
#source "$RVSDIR/lib/rvsdb"
# START OPTION HANDLING #
com=$1;
-# END OPTION HANDLING #
+# 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
- export TMPDIR="$repo/tmp"
- #echo "$@" >> $repo/log
- $RVSDIR/$@
+ $SHELL $RVSDIR/$@
else
error "unrecognized command \`$com'"
fi