diff options
author | Luke Shumaker <luke@HP-dv6426us-u904> | 2009-10-24 02:23:22 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:16 -0600 |
commit | bddd6fb07906e660260ef0fced05440ecac8d9e9 (patch) | |
tree | 882c913e0cb2e89537747b90f8c47a65d5cd15d0 /plugins/users | |
parent | 1eddff249b2c7ce54544b840562e782501d47924 (diff) |
switching to git
Diffstat (limited to 'plugins/users')
-rw-r--r-- | plugins/users/Makefile.in | 18 | ||||
-rw-r--r-- | plugins/users/commit.sh | 8 | ||||
-rw-r--r-- | plugins/users/init.sh | 8 | ||||
-rw-r--r-- | plugins/users/login.sh | 8 | ||||
-rw-r--r-- | plugins/users/logout.sh | 8 | ||||
-rw-r--r-- | plugins/users/mkuser.sh | 19 | ||||
-rw-r--r-- | plugins/users/plugin.conf | 5 | ||||
-rw-r--r-- | plugins/users/rmuser.sh | 8 | ||||
-rw-r--r-- | plugins/users/stdio.sh | 2 |
9 files changed, 40 insertions, 44 deletions
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. |