development/vic: Initial import
This commit is contained in:
parent
7fb9994f11
commit
1e71a72fbf
|
@ -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
|
|
@ -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:
|
|
@ -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
|
||||||
|
#
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue