summaryrefslogtreecommitdiff
path: root/plugins/repo
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6426us-u904>2009-10-24 02:23:22 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:16 -0600
commitbddd6fb07906e660260ef0fced05440ecac8d9e9 (patch)
tree882c913e0cb2e89537747b90f8c47a65d5cd15d0 /plugins/repo
parent1eddff249b2c7ce54544b840562e782501d47924 (diff)
switching to git
Diffstat (limited to 'plugins/repo')
-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
9 files changed, 47 insertions, 33 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