summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/repo/Makefile.in18
-rw-r--r--plugins/repo/commit.d.sh4
-rw-r--r--plugins/repo/commit.f.sh8
-rw-r--r--plugins/repo/commit.sh29
-rw-r--r--plugins/repo/get.d.sh4
-rw-r--r--plugins/repo/get.f.sh6
-rw-r--r--plugins/repo/get.sh4
-rw-r--r--plugins/repo/plugin.conf3
-rw-r--r--plugins/repo/stdio.sh4
-rw-r--r--plugins/users/Makefile.in18
-rw-r--r--plugins/users/commit.sh8
-rw-r--r--plugins/users/init.sh8
-rw-r--r--plugins/users/login.sh8
-rw-r--r--plugins/users/logout.sh8
-rw-r--r--plugins/users/mkuser.sh19
-rw-r--r--plugins/users/plugin.conf5
-rw-r--r--plugins/users/rmuser.sh8
-rw-r--r--plugins/users/stdio.sh2
18 files changed, 87 insertions, 77 deletions
diff --git a/plugins/repo/Makefile.in b/plugins/repo/Makefile.in
index 412fb8e..7078bb6 100644
--- a/plugins/repo/Makefile.in
+++ b/plugins/repo/Makefile.in
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-name = repo
-ver = 0.7beta
+name=repo
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -81,13 +81,13 @@ distclean : clean
# dist #############################################################
-d = $(name)-$(ver)
-dist : $(d).tar.gz
+id = $(name)-$(ver)
+dist : $(id).tar.gz
-$(d).tar.gz : $(d)
+$(id).tar.gz : $(id)
tar -czf $@ $<
-$(d) : distclean
+$(id) : distclean
$(INSTALL) -m 777 -d $@
$(CP) -r $(mysrcdir)/* $@
@@ -97,7 +97,11 @@ b := @
# build shell scripts
$(myoutdir)/% : $(mysrcdir)/%.sh $(myoutdir)
$(INSTALL_PROGRAM) $< $@
- $(SED) -i 's/$bSHELL@/$(subst /,\/,$(SHELL))/g' $@
+ $(SED) -i \
+ -e 's/$bSHELL@/$(subst /,\/,$(SHELL))/g' \
+ -e 's/$blibexecdir@/$(subst /,\/,$(libexecdir))/g' \
+ -e 's/$bID@/$(subst /,\/,$(id))/g' \
+ $@
$(dirs) $(libexecdir)/$(rvs) $(myoutdir) :
$(MKDIR) $@
diff --git a/plugins/repo/commit.d.sh b/plugins/repo/commit.d.sh
index e5d2456..9545b08 100644
--- a/plugins/repo/commit.d.sh
+++ b/plugins/repo/commit.d.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs repo commit.d'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,7 +19,7 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#source "$libexecdir/lib/stdio"
+source "$libexecdir/@ID@/stdio"
# commit.d DIRNAME
dir="$1"
diff --git a/plugins/repo/commit.f.sh b/plugins/repo/commit.f.sh
index 8a27e95..851c023 100644
--- a/plugins/repo/commit.f.sh
+++ b/plugins/repo/commit.f.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs repo commit.f'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,15 +19,15 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#source "$libexecdir/lib/stdio"
+#source "$libexecdir/@ID@/stdio"
# commit.f FILENAME
file="$1"
#hash=`md5sum $file | sed "s/ .*$//"`
hash=`sha1sum $file | sed "s/ .*$//"`
-if [ ! -f "$REPO/$hash" ]; then
- install -m 644 -o $USER -g $USER -T "$file" "$REPO/$hash"
+if [ ! -f "$REPO/@ID@/$hash" ]; then
+ install -m 644 -o $USER -g $USER -T "$file" "$REPO/@ID@/$hash"
fi
echo "$hash"
diff --git a/plugins/repo/commit.sh b/plugins/repo/commit.sh
index 7ee5934..0baa931 100644
--- a/plugins/repo/commit.sh
+++ b/plugins/repo/commit.sh
@@ -1,15 +1,24 @@
#!@SHELL@
name='rvs repo commit'
-ver='0.7.3'
-# 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 "$libexecdir/lib/stdio"
+ver=0.8r61
+# Copyright (C) 2009 Luke Shumaker
+#
+# This file is part of rvs.
+#
+# rvs is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2, or (at your option) any later version.
+#
+# rvs 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with rvs; see the file COPYING.
+# If not, write to the Free Software Foundation,
+# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+source "$libexecdir/@ID@/stdio"
# commit FILE
file=${1-.}
diff --git a/plugins/repo/get.d.sh b/plugins/repo/get.d.sh
index 816cd31..4f95a57 100644
--- a/plugins/repo/get.d.sh
+++ b/plugins/repo/get.d.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs repo get.d'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,7 +19,7 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#source "$libexecdir/lib/stdio"
+#source "$libexecdir/@ID@/stdio"
# get.d ID DIRNAME
id="$1"
diff --git a/plugins/repo/get.f.sh b/plugins/repo/get.f.sh
index 4862ccc..bb43099 100644
--- a/plugins/repo/get.f.sh
+++ b/plugins/repo/get.f.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs repo get.f'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,11 +19,11 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#source "$libexecdir/lib/stdio"
+#source "$libexecdir/@ID@/stdio"
# get.f ID FILENAME
id="$1"
file="$2"
-install -T "$REPO/$id" "$file"
+install -T "$REPO/@ID@/$id" "$file"
diff --git a/plugins/repo/get.sh b/plugins/repo/get.sh
index 583428a..a047e87 100644
--- a/plugins/repo/get.sh
+++ b/plugins/repo/get.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs repo get'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,7 +19,7 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-source "$libexecdir/lib/stdio"
+source "$libexecdir/@ID@/stdio"
# get ID [FILE]
id="$1"
diff --git a/plugins/repo/plugin.conf b/plugins/repo/plugin.conf
index 648b50e..6028a0f 100644
--- a/plugins/repo/plugin.conf
+++ b/plugins/repo/plugin.conf
@@ -1,4 +1,5 @@
-# repo-0.7beta plugins.conf
+# rvs repo plugins.conf
+# ver=0.8r61
commit
commit.d
commit.f
diff --git a/plugins/repo/stdio.sh b/plugins/repo/stdio.sh
index c1a1b6b..d4fed0e 100644
--- a/plugins/repo/stdio.sh
+++ b/plugins/repo/stdio.sh
@@ -1,6 +1,6 @@
#!@SHELL@
#name='rvs repo stdio'
-#ver='0.7.3'
+#ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -60,7 +60,7 @@ 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>.
+Originally written by Luke Shumaker <LukeShu@sbcglobal.net>.
__disclaimer__
fi
exit 0
diff --git a/plugins/users/Makefile.in b/plugins/users/Makefile.in
index 4d9df82..0ac9cf5 100644
--- a/plugins/users/Makefile.in
+++ b/plugins/users/Makefile.in
@@ -1,6 +1,6 @@
#!/usr/bin/make -f
-name = users
-ver = 0.7beta
+name=users
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -81,13 +81,13 @@ distclean : clean
# dist #############################################################
-d = $(name)-$(ver)
-dist : $(d).tar.gz
+id = $(name)-$(ver)
+dist : $(id).tar.gz
-$(d).tar.gz : $(d)
+$(id).tar.gz : $(id)
tar -czf $@ $<
-$(d) : distclean
+$(id) : distclean
$(INSTALL) -m 777 -d $@
$(CP) -r $(mysrcdir)/* $@
@@ -97,7 +97,11 @@ b := @
# build shell scripts
$(myoutdir)/% : $(mysrcdir)/%.sh $(myoutdir)
$(INSTALL_PROGRAM) $< $@
- $(SED) -i 's/$bSHELL@/$(subst /,\/,$(SHELL))/g' $@
+ $(SED) -i \
+ -e 's/$bSHELL@/$(subst /,\/,$(SHELL))/g' \
+ -e 's/$blibexecdir@/$(subst /,\/,$(libexecdir))/g' \
+ -e 's/$bID@/$(subst /,\/,$(id))/g' \
+ $@
$(dirs) $(libexecdir)/$(rvs) $(myoutdir) :
$(MKDIR) $@
diff --git a/plugins/users/commit.sh b/plugins/users/commit.sh
index ab30ea0..cb2488d 100644
--- a/plugins/users/commit.sh
+++ b/plugins/users/commit.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs users commit'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,11 +19,11 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-source "$libexecdir/lib/stdio"
+source "$libexecdir/@ID@/stdio"
ret=`$RVS repo-0.7beta/commit $@`
-if [ -f "$REPO/../user" ]; then
- cp "$REPO/../user" "$REPO/repo/$ret"
+if [ -f "$REPO/@ID@/user" ]; then
+ cp "$REPO/@ID@/user" "$REPO/@ID@/repo/$ret"
echo "$ret"
else
error 'you must be logged in to commit files'
diff --git a/plugins/users/init.sh b/plugins/users/init.sh
index b3347b9..41f7d77 100644
--- a/plugins/users/init.sh
+++ b/plugins/users/init.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs users init'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,10 +19,10 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-#source "$libexecdir/lib/stdio"
+#source "$libexecdir/@ID@/stdio"
-mkdir -p "$REPO"/{users,repo}
-cat << __EOF__ > "$REPO/users/Public Domain"
+mkdir -p "$REPO/@ID@"/{users,repo}
+cat << __EOF__ > "$REPO/@ID@/users/Public Domain"
author:anonymous
owner:Public Domain
license:
diff --git a/plugins/users/login.sh b/plugins/users/login.sh
index eee422a..340c7db 100644
--- a/plugins/users/login.sh
+++ b/plugins/users/login.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs users login'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,11 +19,11 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-source "$libexecdir/lib/stdio"
+source "$libexecdir/@ID@/stdio"
user="$1"
-if [ -f "$REPO/users/$user" ]; then
- install -m 644 -T "$REPO/users/$user" "$REPO/../user"
+if [ -f "$REPO/@ID@/users/$user" ]; then
+ install -m 644 -T "$REPO/@ID@/users/$user" "$REPO/@ID@/../user"
else
error "User \`$user' does not exist"
fi
diff --git a/plugins/users/logout.sh b/plugins/users/logout.sh
index 41d24a0..43011a1 100644
--- a/plugins/users/logout.sh
+++ b/plugins/users/logout.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs users logout'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,10 +19,10 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-source "$libexecdir/lib/stdio"
+source "$libexecdir/@ID@/stdio"
-if [ -f "$REPO/../user" ]; then
- rm "$REPO/../user"
+if [ -f "$REPO/@ID@/../user" ]; then
+ rm "$REPO/@ID@/../user"
else
error 'you must be logged in to logout'
fi
diff --git a/plugins/users/mkuser.sh b/plugins/users/mkuser.sh
index 9296fef..68c16b2 100644
--- a/plugins/users/mkuser.sh
+++ b/plugins/users/mkuser.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs users mkuser'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,20 +19,11 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-source "$libexecdir/lib/stdio"
+source "$libexecdir/@ID@/stdio"
-read -p 'username: ' author
-echo "$author"
-read -p 'give copyright to: ' owner
-echo "$owner"
-if [ "$owner" != 'Public Domain' ]; then
- read -p 'use the license: ' license
-else
- license=''
-fi
-cat << __EOF__ > "$REPO/users/$author"
+author="$1"
+touch "$REPO/@ID@/users/$author"
+cat << __EOF__ > "$REPO/@ID@/users/$author"
author:$author
-owner:$owner
-license:$license
__EOF__
diff --git a/plugins/users/plugin.conf b/plugins/users/plugin.conf
index b0e70b2..1224b23 100644
--- a/plugins/users/plugin.conf
+++ b/plugins/users/plugin.conf
@@ -1,5 +1,6 @@
-# users-0.7beta plugins.conf
-commit:repo-0.7beta/commit
+# rvs users plugins.conf
+# ver=0.8r61
+commit:repo-0.8r61/commit
login
logout
mkuser
diff --git a/plugins/users/rmuser.sh b/plugins/users/rmuser.sh
index 7a33de8..a9f566f 100644
--- a/plugins/users/rmuser.sh
+++ b/plugins/users/rmuser.sh
@@ -1,6 +1,6 @@
#!@SHELL@
name='rvs users rmuser'
-ver='0.7.3'
+ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.
@@ -19,11 +19,11 @@ ver='0.7.3'
# If not, write to the Free Software Foundation,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-source "$libexecdir/lib/stdio"
+source "$libexecdir/@ID@/stdio"
user="$1"
-if [ -f "$REPO/users/$user" ]; then
- rm "$REPO/users/$user"
+if [ -f "$REPO/@ID@/users/$user" ]; then
+ rm "$REPO/@ID@/users/$user"
else
error "User \`$user' does not exist"
fi
diff --git a/plugins/users/stdio.sh b/plugins/users/stdio.sh
index 1149284..a8bd155 100644
--- a/plugins/users/stdio.sh
+++ b/plugins/users/stdio.sh
@@ -1,6 +1,6 @@
#!@SHELL@
#name='rvs users stdio'
-#ver='0.7.3'
+#ver=0.8r61
# Copyright (C) 2009 Luke Shumaker
#
# This file is part of rvs.