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
commit88cec538b5d576ae1e7de73efac2af5c3c84d17b (patch)
tree18c92ba9255e8698054dac8cbc49dd0df7fc5de6
parenta24ba8ab70f657e66c29dc66478a82a0d1d10eed (diff)
add comments and tag plugins to rvs
-rw-r--r--plugins/comments/bin/comment.sh27
-rw-r--r--plugins/comments/info.mk.in3
-rw-r--r--plugins/files/bin/commit.d.sh (renamed from plugins/filecontent/bin/commit.d.sh)0
-rw-r--r--plugins/files/bin/commit.f.sh (renamed from plugins/filecontent/bin/commit.f.sh)0
-rw-r--r--plugins/files/bin/commit.sh (renamed from plugins/filecontent/bin/commit.sh)0
-rw-r--r--plugins/files/bin/get.d.sh (renamed from plugins/filecontent/bin/get.d.sh)0
-rw-r--r--plugins/files/bin/get.f.sh (renamed from plugins/filecontent/bin/get.f.sh)0
-rw-r--r--plugins/files/bin/get.sh (renamed from plugins/filecontent/bin/get.sh)0
-rw-r--r--plugins/files/bin/gettype.sh (renamed from plugins/filecontent/bin/gettype.sh)0
-rw-r--r--plugins/files/etc/3-d.sh (renamed from plugins/filecontent/etc/3-d.sh)0
-rw-r--r--plugins/files/etc/5-f.sh (renamed from plugins/filecontent/etc/5-f.sh)0
-rw-r--r--plugins/files/info.mk.in (renamed from plugins/filecontent/info.mk.in)2
-rw-r--r--plugins/files/lib/stdio.sh (renamed from plugins/filecontent/lib/stdio.sh)0
-rw-r--r--plugins/tags/bin/get-tag.sh (renamed from plugins/filecontent/bin/init.sh)13
-rw-r--r--plugins/tags/bin/tag.sh28
-rw-r--r--plugins/tags/info.mk.in3
16 files changed, 71 insertions, 5 deletions
diff --git a/plugins/comments/bin/comment.sh b/plugins/comments/bin/comment.sh
new file mode 100644
index 0000000..c3724db
--- /dev/null
+++ b/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/plugins/comments/info.mk.in b/plugins/comments/info.mk.in
new file mode 100644
index 0000000..7aa15d1
--- /dev/null
+++ b/plugins/comments/info.mk.in
@@ -0,0 +1,3 @@
+name = comments
+ver = 0.1
+priority = 1
diff --git a/plugins/filecontent/bin/commit.d.sh b/plugins/files/bin/commit.d.sh
index 0da1efb..0da1efb 100644
--- a/plugins/filecontent/bin/commit.d.sh
+++ b/plugins/files/bin/commit.d.sh
diff --git a/plugins/filecontent/bin/commit.f.sh b/plugins/files/bin/commit.f.sh
index 17de155..17de155 100644
--- a/plugins/filecontent/bin/commit.f.sh
+++ b/plugins/files/bin/commit.f.sh
diff --git a/plugins/filecontent/bin/commit.sh b/plugins/files/bin/commit.sh
index e8db1eb..e8db1eb 100644
--- a/plugins/filecontent/bin/commit.sh
+++ b/plugins/files/bin/commit.sh
diff --git a/plugins/filecontent/bin/get.d.sh b/plugins/files/bin/get.d.sh
index 1a001d3..1a001d3 100644
--- a/plugins/filecontent/bin/get.d.sh
+++ b/plugins/files/bin/get.d.sh
diff --git a/plugins/filecontent/bin/get.f.sh b/plugins/files/bin/get.f.sh
index b137911..b137911 100644
--- a/plugins/filecontent/bin/get.f.sh
+++ b/plugins/files/bin/get.f.sh
diff --git a/plugins/filecontent/bin/get.sh b/plugins/files/bin/get.sh
index d3f046c..d3f046c 100644
--- a/plugins/filecontent/bin/get.sh
+++ b/plugins/files/bin/get.sh
diff --git a/plugins/filecontent/bin/gettype.sh b/plugins/files/bin/gettype.sh
index 84eb9da..84eb9da 100644
--- a/plugins/filecontent/bin/gettype.sh
+++ b/plugins/files/bin/gettype.sh
diff --git a/plugins/filecontent/etc/3-d.sh b/plugins/files/etc/3-d.sh
index f169cae..f169cae 100644
--- a/plugins/filecontent/etc/3-d.sh
+++ b/plugins/files/etc/3-d.sh
diff --git a/plugins/filecontent/etc/5-f.sh b/plugins/files/etc/5-f.sh
index 0506894..0506894 100644
--- a/plugins/filecontent/etc/5-f.sh
+++ b/plugins/files/etc/5-f.sh
diff --git a/plugins/filecontent/info.mk.in b/plugins/files/info.mk.in
index eb388c7..7552306 100644
--- a/plugins/filecontent/info.mk.in
+++ b/plugins/files/info.mk.in
@@ -1,3 +1,3 @@
-name = filecontent
+name = files
ver = 0.9
priority = 0
diff --git a/plugins/filecontent/lib/stdio.sh b/plugins/files/lib/stdio.sh
index 09d2ec7..09d2ec7 100644
--- a/plugins/filecontent/lib/stdio.sh
+++ b/plugins/files/lib/stdio.sh
diff --git a/plugins/filecontent/bin/init.sh b/plugins/tags/bin/get-tag.sh
index 71a2aa8..d1df852 100644
--- a/plugins/filecontent/bin/init.sh
+++ b/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/plugins/tags/bin/tag.sh b/plugins/tags/bin/tag.sh
new file mode 100644
index 0000000..bc3f546
--- /dev/null
+++ b/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/plugins/tags/info.mk.in b/plugins/tags/info.mk.in
new file mode 100644
index 0000000..1828b51
--- /dev/null
+++ b/plugins/tags/info.mk.in
@@ -0,0 +1,3 @@
+name = tags
+ver = 0.1
+priority = 2