summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/init.sh29
-rw-r--r--src/core/plugins2
-rw-r--r--src/core/plugins.d/repo/commit.d.sh23
-rw-r--r--src/core/plugins.d/repo/commit.f.sh24
-rw-r--r--src/core/plugins.d/repo/commit.sh51
-rw-r--r--src/core/plugins.d/repo/get.d.sh30
-rw-r--r--src/core/plugins.d/repo/get.f.sh20
-rw-r--r--src/core/plugins.d/repo/get.sh32
-rw-r--r--src/core/plugins.d/repo/lib/stdio.sh58
-rw-r--r--src/core/plugins.d/users/mkuser.sh24
-rw-r--r--src/core/plugins.d/users/rmuser.sh14
-rw-r--r--src/core/repo.sh26
-rw-r--r--src/rvs.sh64
13 files changed, 0 insertions, 397 deletions
diff --git a/src/core/init.sh b/src/core/init.sh
deleted file mode 100644
index dc8a750..0000000
--- a/src/core/init.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!$$SHELL$$
-name='rvs init'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-repo=`rvs repo`
-if [ "$old" = '' ]; then
- repo='.rvs'
- install -d "$repo"
-fi
-
-if diff -q $RVSDIR/plugins $repo/plugins; then
- install -T $RVSDIR/plugins $repo/plugins
- while read plugin; do
- if [ ! -e "$repo/$plugin" ]; then
- install -d "$repo/$plugin"
- if [ -e "$RVSDIR/$plugin/init" ]; then
- $RVSDIR/$plugin/init
- fi
- fi
- done < $repo/plugins
-fi
-
diff --git a/src/core/plugins b/src/core/plugins
deleted file mode 100644
index 18b388a..0000000
--- a/src/core/plugins
+++ /dev/null
@@ -1,2 +0,0 @@
-repo
-users
diff --git a/src/core/plugins.d/repo/commit.d.sh b/src/core/plugins.d/repo/commit.d.sh
deleted file mode 100644
index 5b2d3fd..0000000
--- a/src/core/plugins.d/repo/commit.d.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!$$SHELL$$
-name='rvs commit.d'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-# commit.d DIRNAME
-dir="$1"
-
-tmp=`tempfile`
-for file in $dir/*; do
- hash=`rvs commit "$file"`
- echo "$file:$hash" >> "$tmp"
-done
-
-rvs commit.f "$tmp"
-rm "$tmp"
-
diff --git a/src/core/plugins.d/repo/commit.f.sh b/src/core/plugins.d/repo/commit.f.sh
deleted file mode 100644
index 915ba3c..0000000
--- a/src/core/plugins.d/repo/commit.f.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!$$SHELL$$
-name='rvs commit.f'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-source "$RVSDIR/lib/stdio"
-source "$RVSDIR/lib/rvsdb"
-
-# commit.f FILENAME
-file="$1"
-
-#hash=`md5sum $file | sed "s/ .*$//"`
-hash=`sha1sum $file | sed "s/ .*$//"`
-if [ ! -f "`rvs repo`/files/$hash" ]; then
- install -m 644 -o $USER -g $USER -T "$file" "`rvs repo`/files/$hash"
-fi
-echo "$hash"
-
diff --git a/src/core/plugins.d/repo/commit.sh b/src/core/plugins.d/repo/commit.sh
deleted file mode 100644
index 0c8cfc5..0000000
--- a/src/core/plugins.d/repo/commit.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!$$SHELL$$
-name='rvs commit'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-source "$RVSDIR/lib/stdio"
-
-# commit FILE
-if [ $# -gt 0 ]; then
- file="$1"
-else
- file='.'
-fi
-
-warn "$file"
-
-if [ ! -e $file ]; then error "file \`$file' does not exist";
-# START file type list
-elif [ -L $file ]; then type='l'; # symbolic link
-elif [ -b $file ]; then type='b'; # block (buffered) special
-elif [ -c $file ]; then type='c'; # character (unbuffered) special
-elif [ -d $file ]; then type='d'; # directory
-elif [ -p $file ]; then type='p'; # named pipe (FIFO)
-elif [ -f $file ]; then type='f'; # regular file
-elif [ -s $file ]; then type='s'; # socket
-#elif [ -D $file ]; type='D'; # door (Solaris only)
-# END file type list
-else error "could not identify file type of \`$file'"
-fi
-
-ret=`rvs "commit.$type" "$file"`
-
-tmp=`tempfile`
-cat << __EOF__ > "$tmp"
-name:$file
-hash:$ret
-type:$type
-author:$user
-owner:$owner
-license:$license
-__EOF__
-
-rvs commit.f "$tmp"
-rm "$tmp"
-
diff --git a/src/core/plugins.d/repo/get.d.sh b/src/core/plugins.d/repo/get.d.sh
deleted file mode 100644
index 2443850..0000000
--- a/src/core/plugins.d/repo/get.d.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!$$SHELL$$
-name='rvs get.d'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-#source "$RVSDIR/lib/stdio"
-source "$RVSDIR/lib/rvsdb"
-
-# get.d ID DIRNAME
-id="$1"
-dir="$2"
-
-tmp=`tempfile`
-rvs get.f `logread "$db" 'hash'` "$tmp"
-
-mkdir "$dir"
-while read line; do
- hash=`echo "$line" | sed 's/^.*://'`
- name=`echo "$line" | sed "s/:$hash$//"`
- rvs get "$dir/$file"
-done < "$tmp"
-
-rm "$tmp"
-
diff --git a/src/core/plugins.d/repo/get.f.sh b/src/core/plugins.d/repo/get.f.sh
deleted file mode 100644
index e631a1f..0000000
--- a/src/core/plugins.d/repo/get.f.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!$$SHELL$$
-name='rvs get.f'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-source "$RVSDIR/lib/stdio"
-source "$RVSDIR/lib/rvsdb"
-
-# get.f ID FILENAME
-id="$1"
-file="$2"
-
-cp "`rvs repo`/files/$id" "$file"
-
diff --git a/src/core/plugins.d/repo/get.sh b/src/core/plugins.d/repo/get.sh
deleted file mode 100644
index 4317c40..0000000
--- a/src/core/plugins.d/repo/get.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!$$SHELL$$
-name='rvs get'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-source "$RVSDIR/lib/stdio"
-source "$RVSDIR/lib/rvsdb"
-
-# get ID [FILE]
-id="$1"
-
-if [ $# -gt 1 ]; then
- file="$2"
-fi
-
-tmp=`tempfile`
-rvs get.f "$id" "$tmp"
-type=`logread "$tmp" 'type'`
-if [ $# -gt 1 ]; then
- file="$2"
-else
- file=`logread "$tmp" 'name'`
-fi
-
-rvs "get.$type" "$id" "$file"
-
diff --git a/src/core/plugins.d/repo/lib/stdio.sh b/src/core/plugins.d/repo/lib/stdio.sh
deleted file mode 100644
index e6ef31a..0000000
--- a/src/core/plugins.d/repo/lib/stdio.sh
+++ /dev/null
@@ -1,58 +0,0 @@
-#!$$SHELL$$
-#name='rvs stdio'
-#ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-verbose() {
- if [ "$volume" == '-v' ]; then
- echo $@
- fi
-}
-
-out() {
- if [ "$volume" != '-q' ]; then
- echo $@
- fi
-}
-
-warn () {
- echo "$name: $1" >> /dev/stderr
-}
-
-error() {
- warn "$1"
- cat << __error__ >> /dev/stderr
-Usage: $name $usage
-
-Try \`$name --help\' for more options.
-__error__
- exit 1
-}
-
-fatal () {
- warn "$1"
- exit 1
-}
-
-version() {
- echo "$name $ver"
- if [ "$volume" != '-q' ]; then
- cat << __disclaimer__
-$name is 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
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-__disclaimer__
- fi
- exit 0
-}
-
diff --git a/src/core/plugins.d/users/mkuser.sh b/src/core/plugins.d/users/mkuser.sh
deleted file mode 100644
index 74c8a77..0000000
--- a/src/core/plugins.d/users/mkuser.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!$$SHELL$$
-name='rvs mkuser'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-read -p 'username: ' author
-read -p 'give copyright to: ' owner
-if [ "$owner" != 'Public Domain' ]; then
- read -p 'use the license: ' license
-else
- license=''
-fi
-cat << __EOF__ > "`rvs repo`/users/$author"
-author:$author
-owner:$owner
-license:$license
-__EOF__
-
diff --git a/src/core/plugins.d/users/rmuser.sh b/src/core/plugins.d/users/rmuser.sh
deleted file mode 100644
index 82a71c5..0000000
--- a/src/core/plugins.d/users/rmuser.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!$$SHELL$$
-name='rvs rmuser'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-uname=$1
-rm "`rvs repo`/users/$uname"
-
diff --git a/src/core/repo.sh b/src/core/repo.sh
deleted file mode 100644
index a94ccb8..0000000
--- a/src/core/repo.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!$$SHELL$$
-name='rvs repo'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-repo='.rvs'
-pwd=`pwd`
-
-while [ "$pwd" != "`pwd`" ] && [ ! -e "`pwd`/$repo" ]; do
- pwd=`pwd`
- cd ..
-done
-
-if [ -e "`pwd`/$repo" ]; then
- echo "`pwd`/$repo"
-else
- echo "$name: no rvs repository found" >> /dev/stderr
- exit 1
-fi
-
diff --git a/src/rvs.sh b/src/rvs.sh
deleted file mode 100644
index f47659f..0000000
--- a/src/rvs.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!$$SHELL$$
-name='rvs'
-ver='0.7.0'
-# 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
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# Originally written by Luke Shumaker <lukeshu@sbcglobal.net>.
-
-RVSDIR='$$libdir$$'
-REPO=`$RVSDIR/repo`
-
-error() {
- echo "$name: $1" >> /dev/stderr
- exit 1
-}
-
-# START OPTION HANDLING #
-com=$1;
-# END OPTION HANDLING #
-case "$com" in
- '') error 'no command specified';;
- *)
- if [ -f "$RVSDIR/$com" ]; then
- export RVSDIR
- $RVSDIR/$@
- done='yes'
- else
- while read plugin; do
- if [ -f "$RVSDIR/$plugin/$com" ]; then
- export RVSDIR=$RVSDIR/$plugin
- $RVSDIR/$@
- done='yes'
- break
- fi
- done < $REPO/plugins
- fi
- if [ "$done" != 'yes' ]; then
- error "unrecognized command \`$com'"
- fi
- :;;
-esac
-
-#args=`getopt -n "$name" -o "${sopt}" -l "${lopt}" -- "$@"`
-#if [ $? == 0 ]; then
-# set -- $args
-# while [ $# -gt 0 ]; do
-# case "$1" in
-# -V | --version) mode='version';;
-# -h | -H | -\? | --help) mode='help';;
-#
-# -v | --verbose) volume='-v';;
-# -q | --quiet) volume='-q';;
-#
-# --) shift; break;;
-# esac
-# shift;
-# done
-#else
-# error
-#fi
-