summaryrefslogtreecommitdiff
path: root/rvs/plugins/files
diff options
context:
space:
mode:
authorLuke Shumaker <luke@HP-dv6246us-u910.(none)>2010-03-28 12:25:08 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-06-26 00:30:19 -0600
commit98f2efbe20e2d9d03e5296293cc8f52c95af72f5 (patch)
treedf5ab79539c7a4b5bc5a056dc14a4f7a4c5be665 /rvs/plugins/files
parentd4a42ee34928970141b8299c104d47c0f3faecd0 (diff)
Rework rvs a lot (no longer needs complex C dependency tracker!)
Rework ./configure, and how it uses `srcdir'. Probably broke all the other packages. Oh well, everything only half-works right now.
Diffstat (limited to 'rvs/plugins/files')
-rw-r--r--rvs/plugins/files/bin/commit36
-rw-r--r--rvs/plugins/files/bin/commit.d.sh (renamed from rvs/plugins/files/commit.d.sh)0
-rw-r--r--rvs/plugins/files/bin/commit.f.sh (renamed from rvs/plugins/files/commit.f.sh)0
-rw-r--r--rvs/plugins/files/bin/commit.sh36
-rw-r--r--rvs/plugins/files/bin/get.d.sh (renamed from rvs/plugins/files/get.d.sh)0
-rw-r--r--rvs/plugins/files/bin/get.f.sh (renamed from rvs/plugins/files/get.f.sh)0
-rw-r--r--rvs/plugins/files/bin/get.sh (renamed from rvs/plugins/files/get.sh)0
-rw-r--r--rvs/plugins/files/commit.sh41
-rw-r--r--rvs/plugins/files/etc/3-d.sh20
-rw-r--r--rvs/plugins/files/etc/5-f.sh20
-rw-r--r--rvs/plugins/files/info.mk.in1
-rw-r--r--rvs/plugins/files/lib/stdio.sh (renamed from rvs/plugins/files/stdio.sh)0
-rw-r--r--rvs/plugins/files/plugin.conf.in8
13 files changed, 113 insertions, 49 deletions
diff --git a/rvs/plugins/files/bin/commit b/rvs/plugins/files/bin/commit
new file mode 100644
index 0000000..63eaac1
--- /dev/null
+++ b/rvs/plugins/files/bin/commit
@@ -0,0 +1,36 @@
+#!/bin/sh
+name='rvs files commit'
+ver=0.9
+# Copyright (C) 2009-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>.
+
+source "$libexecdir/@ID@/stdio"
+
+# commit FILE
+file=${1-.} # take arg1 as the file, default to the current directory
+
+if [ ! -e "$file" ]; then
+ error "file \`$file' does not exist";
+else
+ foundMod='false';
+ for type in select/*; do
+ if "$type" "$file"; then foundMod='true'; break; fi
+ done
+ if [ "$foundMod" == 'false' ]; then
+ error "cannot handle file type of \`$file'"
+ fi
+fi
+
diff --git a/rvs/plugins/files/commit.d.sh b/rvs/plugins/files/bin/commit.d.sh
index f5b432b..f5b432b 100644
--- a/rvs/plugins/files/commit.d.sh
+++ b/rvs/plugins/files/bin/commit.d.sh
diff --git a/rvs/plugins/files/commit.f.sh b/rvs/plugins/files/bin/commit.f.sh
index a86e5b5..a86e5b5 100644
--- a/rvs/plugins/files/commit.f.sh
+++ b/rvs/plugins/files/bin/commit.f.sh
diff --git a/rvs/plugins/files/bin/commit.sh b/rvs/plugins/files/bin/commit.sh
new file mode 100644
index 0000000..63eaac1
--- /dev/null
+++ b/rvs/plugins/files/bin/commit.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+name='rvs files commit'
+ver=0.9
+# Copyright (C) 2009-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>.
+
+source "$libexecdir/@ID@/stdio"
+
+# commit FILE
+file=${1-.} # take arg1 as the file, default to the current directory
+
+if [ ! -e "$file" ]; then
+ error "file \`$file' does not exist";
+else
+ foundMod='false';
+ for type in select/*; do
+ if "$type" "$file"; then foundMod='true'; break; fi
+ done
+ if [ "$foundMod" == 'false' ]; then
+ error "cannot handle file type of \`$file'"
+ fi
+fi
+
diff --git a/rvs/plugins/files/get.d.sh b/rvs/plugins/files/bin/get.d.sh
index 46e1eeb..46e1eeb 100644
--- a/rvs/plugins/files/get.d.sh
+++ b/rvs/plugins/files/bin/get.d.sh
diff --git a/rvs/plugins/files/get.f.sh b/rvs/plugins/files/bin/get.f.sh
index e6b79d5..e6b79d5 100644
--- a/rvs/plugins/files/get.f.sh
+++ b/rvs/plugins/files/bin/get.f.sh
diff --git a/rvs/plugins/files/get.sh b/rvs/plugins/files/bin/get.sh
index 4d0d48f..4d0d48f 100644
--- a/rvs/plugins/files/get.sh
+++ b/rvs/plugins/files/bin/get.sh
diff --git a/rvs/plugins/files/commit.sh b/rvs/plugins/files/commit.sh
deleted file mode 100644
index 32d3042..0000000
--- a/rvs/plugins/files/commit.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-name='rvs files commit'
-ver=0.9
-# Copyright (C) 2009 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>.
-
-source "$libexecdir/@ID@/stdio"
-
-# commit FILE
-file=${1-.}
-
-if [ ! -e $file ]; then error "file \`$file' does not exist";
-# START file type list
-elif [ -L $file ]; then type='l'; # symbolic link
-elif [ -b $file ]; then type='b'; # block (buffered) special
-elif [ -c $file ]; then type='c'; # character (unbuffered) special
-elif [ -d $file ]; then type='d'; # directory
-elif [ -p $file ]; then type='p'; # named pipe (FIFO)
-elif [ -f $file ]; then type='f'; # regular file
-elif [ -s $file ]; then type='s'; # socket
-#elif [ -D $file ]; then type='D'; # door (Solaris only)
-# END file type list
-else error "could not identify file type of \`$file'"
-fi
-
-out "+$type `pwd`/$file"
-"$RVS" commit.$type "$file"
-
diff --git a/rvs/plugins/files/etc/3-d.sh b/rvs/plugins/files/etc/3-d.sh
new file mode 100644
index 0000000..91163dc
--- /dev/null
+++ b/rvs/plugins/files/etc/3-d.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+#name=''
+#ver=0.9
+# Copyright (C) 2009-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>.
+
+if [ -f $file ]; then echo 'd'; fi
diff --git a/rvs/plugins/files/etc/5-f.sh b/rvs/plugins/files/etc/5-f.sh
new file mode 100644
index 0000000..975992a
--- /dev/null
+++ b/rvs/plugins/files/etc/5-f.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+#name=''
+#ver=0.9
+# Copyright (C) 2009-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>.
+
+if [ -f $file ]; then echo 'f'; fi
diff --git a/rvs/plugins/files/info.mk.in b/rvs/plugins/files/info.mk.in
index d7ccb97..7552306 100644
--- a/rvs/plugins/files/info.mk.in
+++ b/rvs/plugins/files/info.mk.in
@@ -1,2 +1,3 @@
name = files
ver = 0.9
+priority = 0
diff --git a/rvs/plugins/files/stdio.sh b/rvs/plugins/files/lib/stdio.sh
index 9062683..9062683 100644
--- a/rvs/plugins/files/stdio.sh
+++ b/rvs/plugins/files/lib/stdio.sh
diff --git a/rvs/plugins/files/plugin.conf.in b/rvs/plugins/files/plugin.conf.in
deleted file mode 100644
index 2359dd5..0000000
--- a/rvs/plugins/files/plugin.conf.in
+++ /dev/null
@@ -1,8 +0,0 @@
-# rvs @name@ plugins.conf
-# ver=@ver@
-commit
-commit.d
-commit.f
-get
-get.d
-get.f