summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2010-03-31 08:42:46 -0600
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:19 -0600
commit0fdb6b8448e0e909289b9aa8308ec7434b5cda99 (patch)
tree21c6f82f72fd3daa56167a09e2a9a52cabab51ca
parent1206949c173977283d45bafc9e951a749317b1da (diff)
add comments and tag plugins to rvs
-rw-r--r--rvs/plugins/comments/bin/comment.sh27
-rw-r--r--rvs/plugins/comments/info.mk.in3
-rw-r--r--rvs/plugins/files/bin/commit.d.sh (renamed from rvs/plugins/filecontent/bin/commit.d.sh)0
-rw-r--r--rvs/plugins/files/bin/commit.f.sh (renamed from rvs/plugins/filecontent/bin/commit.f.sh)0
-rw-r--r--rvs/plugins/files/bin/commit.sh (renamed from rvs/plugins/filecontent/bin/commit.sh)0
-rw-r--r--rvs/plugins/files/bin/get.d.sh (renamed from rvs/plugins/filecontent/bin/get.d.sh)0
-rw-r--r--rvs/plugins/files/bin/get.f.sh (renamed from rvs/plugins/filecontent/bin/get.f.sh)0
-rw-r--r--rvs/plugins/files/bin/get.sh (renamed from rvs/plugins/filecontent/bin/get.sh)0
-rw-r--r--rvs/plugins/files/bin/gettype.sh (renamed from rvs/plugins/filecontent/bin/gettype.sh)0
-rw-r--r--rvs/plugins/files/etc/3-d.sh (renamed from rvs/plugins/filecontent/etc/3-d.sh)0
-rw-r--r--rvs/plugins/files/etc/5-f.sh (renamed from rvs/plugins/filecontent/etc/5-f.sh)0
-rw-r--r--rvs/plugins/files/info.mk.in (renamed from rvs/plugins/filecontent/info.mk.in)2
-rw-r--r--rvs/plugins/files/lib/stdio.sh (renamed from rvs/plugins/filecontent/lib/stdio.sh)0
-rw-r--r--rvs/plugins/tags/bin/get-tag.sh (renamed from rvs/plugins/filecontent/bin/init.sh)13
-rw-r--r--rvs/plugins/tags/bin/tag.sh28
-rw-r--r--rvs/plugins/tags/info.mk.in3
16 files changed, 71 insertions, 5 deletions
diff --git a/rvs/plugins/comments/bin/comment.sh b/rvs/plugins/comments/bin/comment.sh
new file mode 100644
index 0000000..c3724db
--- /dev/null
+++ b/rvs/plugins/comments/bin/comment.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+name='rvs @ID@ comment'
+ver=0.1
+# Copyright (C) 2010 Luke Shumaker
+#
+# This program 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 of the
+# License, or (at your option) any later version.
+#
+# 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING.
+# If not, see <http://www.gnu.org/licenses>.
+
+# comment ID
+usage="usage: $RVS comment ID"
+ID="${1?"$usage"}"
+
+file="$REPO/@ID@/$ID"
+mkdir -p "`dirname "$file"`"
+editor "$file" >> /dev/stderr
+
diff --git a/rvs/plugins/comments/info.mk.in b/rvs/plugins/comments/info.mk.in
new file mode 100644
index 0000000..7aa15d1
--- /dev/null
+++ b/rvs/plugins/comments/info.mk.in
@@ -0,0 +1,3 @@
+name = comments
+ver = 0.1
+priority = 1
diff --git a/rvs/plugins/filecontent/bin/commit.d.sh b/rvs/plugins/files/bin/commit.d.sh
index 0da1efb..0da1efb 100644
--- a/rvs/plugins/filecontent/bin/commit.d.sh
+++ b/rvs/plugins/files/bin/commit.d.sh
diff --git a/rvs/plugins/filecontent/bin/commit.f.sh b/rvs/plugins/files/bin/commit.f.sh
index 17de155..17de155 100644
--- a/rvs/plugins/filecontent/bin/commit.f.sh
+++ b/rvs/plugins/files/bin/commit.f.sh
diff --git a/rvs/plugins/filecontent/bin/commit.sh b/rvs/plugins/files/bin/commit.sh
index e8db1eb..e8db1eb 100644
--- a/rvs/plugins/filecontent/bin/commit.sh
+++ b/rvs/plugins/files/bin/commit.sh
diff --git a/rvs/plugins/filecontent/bin/get.d.sh b/rvs/plugins/files/bin/get.d.sh
index 1a001d3..1a001d3 100644
--- a/rvs/plugins/filecontent/bin/get.d.sh
+++ b/rvs/plugins/files/bin/get.d.sh
diff --git a/rvs/plugins/filecontent/bin/get.f.sh b/rvs/plugins/files/bin/get.f.sh
index b137911..b137911 100644
--- a/rvs/plugins/filecontent/bin/get.f.sh
+++ b/rvs/plugins/files/bin/get.f.sh
diff --git a/rvs/plugins/filecontent/bin/get.sh b/rvs/plugins/files/bin/get.sh
index d3f046c..d3f046c 100644
--- a/rvs/plugins/filecontent/bin/get.sh
+++ b/rvs/plugins/files/bin/get.sh
diff --git a/rvs/plugins/filecontent/bin/gettype.sh b/rvs/plugins/files/bin/gettype.sh
index 84eb9da..84eb9da 100644
--- a/rvs/plugins/filecontent/bin/gettype.sh
+++ b/rvs/plugins/files/bin/gettype.sh
diff --git a/rvs/plugins/filecontent/etc/3-d.sh b/rvs/plugins/files/etc/3-d.sh
index f169cae..f169cae 100644
--- a/rvs/plugins/filecontent/etc/3-d.sh
+++ b/rvs/plugins/files/etc/3-d.sh
diff --git a/rvs/plugins/filecontent/etc/5-f.sh b/rvs/plugins/files/etc/5-f.sh
index 0506894..0506894 100644
--- a/rvs/plugins/filecontent/etc/5-f.sh
+++ b/rvs/plugins/files/etc/5-f.sh
diff --git a/rvs/plugins/filecontent/info.mk.in b/rvs/plugins/files/info.mk.in
index eb388c7..7552306 100644
--- a/rvs/plugins/filecontent/info.mk.in
+++ b/rvs/plugins/files/info.mk.in
@@ -1,3 +1,3 @@
-name = filecontent
+name = files
ver = 0.9
priority = 0
diff --git a/rvs/plugins/filecontent/lib/stdio.sh b/rvs/plugins/files/lib/stdio.sh
index 09d2ec7..09d2ec7 100644
--- a/rvs/plugins/filecontent/lib/stdio.sh
+++ b/rvs/plugins/files/lib/stdio.sh
diff --git a/rvs/plugins/filecontent/bin/init.sh b/rvs/plugins/tags/bin/get-tag.sh
index 71a2aa8..d1df852 100644
--- a/rvs/plugins/filecontent/bin/init.sh
+++ b/rvs/plugins/tags/bin/get-tag.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-name='rvs generic init'
-ver=0.9
-# Copyright (C) 2009 Luke Shumaker
+name='rvs @ID@ get-tag'
+ver=0.1
+# Copyright (C) 2010 Luke Shumaker
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@ -17,5 +17,10 @@ ver=0.9
# along with this program; see the file COPYING.
# If not, see <http://www.gnu.org/licenses>.
-mkdir -p "$REPO/@ID@"
+usage="usage: $RVS get-tag FILENAME TAG"
+name="${1?"$usage"}"
+ tag="${2?"$usage"}"
+
+file="$REPO/@ID@/$tag"
+"$RVS" get "$name" "`cat "$file"`"
diff --git a/rvs/plugins/tags/bin/tag.sh b/rvs/plugins/tags/bin/tag.sh
new file mode 100644
index 0000000..bc3f546
--- /dev/null
+++ b/rvs/plugins/tags/bin/tag.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+name='rvs @ID@ tag'
+ver=0.1
+# Copyright (C) 2010 Luke Shumaker
+#
+# This program 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 of the
+# License, or (at your option) any later version.
+#
+# 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.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; see the file COPYING.
+# If not, see <http://www.gnu.org/licenses>.
+
+# tag ID TAG
+usage="usage: $RVS tag ID TAG"
+ ID="${1?"$usage"}"
+tag="${2?"$usage"}"
+
+file="$REPO/@ID@/$tag"
+mkdir -p "`dirname "$file"`"
+echo "$ID" > "$file"
+
diff --git a/rvs/plugins/tags/info.mk.in b/rvs/plugins/tags/info.mk.in
new file mode 100644
index 0000000..1828b51
--- /dev/null
+++ b/rvs/plugins/tags/info.mk.in
@@ -0,0 +1,3 @@
+name = tags
+ver = 0.1
+priority = 2