path: root/development/vic
diff options
author Menno E. Duursma <>2010-05-11 14:05:53 +0200
committer Robby Workman <>2010-05-11 14:05:53 +0200
commit1e71a72fbfc631a6eb5bcb987e6ed58aefece4ba (patch)
treea91c768a05dcd33d510eb9744d45e142da48d517 /development/vic
parent7fb9994f11f9b577484c5e159ea6274421d75219 (diff)
development/vic: Initial import
Diffstat (limited to 'development/vic')
5 files changed, 98 insertions, 0 deletions
diff --git a/development/vic/README b/development/vic/README
new file mode 100644
index 0000000000..5b55516a21
--- /dev/null
+++ b/development/vic/README
@@ -0,0 +1,21 @@
+Edit a file with RCS
+This archive contains vic which is a simple wrapper around the editor of your
+choice to first check the file out of RCS, edit the file, and then checks the
+file back into RCS.
+There are safeguards to protect the user if the file is edited outside of RCS,
+and allows the user to get the RCS archive back up to date.
+You can edit multiple programs at a time with something like:
+ vic *.wc
+The editor name is drawn from the environment variables $VISUAL, $EDITOR, or
+(if all else fails) "vi".
+Also included is a simple program, show.locks, which shows all of the files
+from the current directory which are currently locked.
+If you have files locked, but not currently being edited, you may want to do:
+ ci -u FILE
+ chmod a-w FILE
diff --git a/development/vic/slack-desc b/development/vic/slack-desc
new file mode 100644
index 0000000000..92a28174d2
--- /dev/null
+++ b/development/vic/slack-desc
@@ -0,0 +1,11 @@
+vic: The VIC wrapper to easily edit RCS maintained files
+vic: 'vic' first checks the file out of RCS, presents the editor,
+vic: then checks the file back into RCS. Also included is a simple
+vic: program named 'show.locks' which shows currently locked files.
+vic: vic was written by Dave Regan based on ideas from a program
+vic: (of the same name) by Stephen W. Fulling
diff --git a/development/vic/vic-0.08.patch b/development/vic/vic-0.08.patch
new file mode 100644
index 0000000000..893eca92c0
--- /dev/null
+++ b/development/vic/vic-0.08.patch
@@ -0,0 +1,8 @@
+--- show.locks.std 2001-04-16 19:25:03.000000000 +0200
++++ show.locks 2007-05-11 21:23:20.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/usr/local/bin/perl -w
++#!/usr/bin/perl -w
+ #
+ # show.locks
+ #
diff --git a/development/vic/vic.SlackBuild b/development/vic/vic.SlackBuild
new file mode 100644
index 0000000000..661eacb71c
--- /dev/null
+++ b/development/vic/vic.SlackBuild
@@ -0,0 +1,50 @@
+# Slackware build script for vic
+# Written by Menno E. Duursma <>
+# Exit on most errors
+set -e
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+# Patch the shebang lines
+cat $CWD/vic-0.08.patch | patch -p0
+# Install the binaries
+install -m a=rx -D vic $PKG/usr/bin/vic
+install -m a=rx -D show.locks $PKG/usr/bin/show.locks
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/html
+cp -a index.html $PKG/usr/doc/$PRGNAM-$VERSION/html
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
+# Clean up the extra stuff
+if [ "$1" = "--cleanup" ]; then
+ rm -rf $PKG
diff --git a/development/vic/ b/development/vic/
new file mode 100644
index 0000000000..47d0a8239b
--- /dev/null
+++ b/development/vic/
@@ -0,0 +1,8 @@
+MAINTAINER="Menno E. Duursma"