summaryrefslogtreecommitdiff
path: root/development/vic
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-11 14:05:53 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 14:05:53 +0200
commit1e71a72fbfc631a6eb5bcb987e6ed58aefece4ba (patch)
treea91c768a05dcd33d510eb9744d45e142da48d517 /development/vic
parent7fb9994f11f9b577484c5e159ea6274421d75219 (diff)
downloadslackbuilds-1e71a72fbfc631a6eb5bcb987e6ed58aefece4ba.tar.gz
development/vic: Initial import
Diffstat (limited to 'development/vic')
-rw-r--r--development/vic/README21
-rw-r--r--development/vic/slack-desc11
-rw-r--r--development/vic/vic-0.08.patch8
-rw-r--r--development/vic/vic.SlackBuild50
-rw-r--r--development/vic/vic.info8
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: '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: vic was written by Dave Regan based on ideas from a program
+vic: (of the same name) by Stephen W. Fulling
+vic:
+vic:
+vic:
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 @@
+#!/bin/sh
+
+# Slackware build script for vic
+# Written by Menno E. Duursma <druiloor@zonnet.nl>
+
+# Exit on most errors
+set -e
+
+PRGNAM=vic
+VERSION=0.08
+ARCH=${ARCH:-noarch}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+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 $TMP/$PRGNAM-$VERSION
+ rm -rf $PKG
+fi
+
diff --git a/development/vic/vic.info b/development/vic/vic.info
new file mode 100644
index 0000000000..47d0a8239b
--- /dev/null
+++ b/development/vic/vic.info
@@ -0,0 +1,8 @@
+PRGNAM="vic"
+VERSION="0.08"
+HOMEPAGE="http://mordred.ao.com/vic/"
+DOWNLOAD="http://mordred.ao.com/vic/vic-0.08.tar.gz"
+MD5SUM="b219e45ca5340e21438215735389d8f5"
+MAINTAINER="Menno E. Duursma"
+EMAIL="druiloor@zonnet.nl"
+APPROVED="rworkman"