mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/vic: Updated for version 0.08
This commit is contained in:
parent
077bc53447
commit
0188448efa
4 changed files with 30 additions and 46 deletions
|
@ -1,21 +1,13 @@
|
|||
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.
|
||||
vic is a simple wrapper around the editor of your choice to first check a
|
||||
file out of RCS, edit the file, and then check 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.
|
||||
and it 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
|
||||
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
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
--- 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
|
||||
#
|
|
@ -1,50 +1,48 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for vic
|
||||
# Written by Menno E. Duursma <druiloor@zonnet.nl>
|
||||
# Slackware build script for Vic
|
||||
|
||||
# Exit on most errors
|
||||
set -e
|
||||
# Written by Menno Duursma <druiloor@zonnet.nl>
|
||||
|
||||
# This program is free software. It comes without any warranty.
|
||||
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
|
||||
# http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
|
||||
PRGNAM=vic
|
||||
VERSION=0.08
|
||||
ARCH=${ARCH:-noarch}
|
||||
VERSION=${VERSION:-0.08}
|
||||
ARCH=noarch
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
tar xvf $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
|
||||
# Fix the shebang lines
|
||||
sed -i 's|#!/usr/local/bin/perl|#!/usr/bin/perl|' vic
|
||||
sed -i 's|#!/usr/local/bin/perl|#!/usr/bin/perl|' show.locks
|
||||
|
||||
# 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
|
||||
install -D -m 0755 vic $PKG/usr/bin/vic
|
||||
install -D -m 0755 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
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a index.html $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
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
|
||||
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
PRGNAM="vic"
|
||||
VERSION="0.08"
|
||||
HOMEPAGE="http://mordred.ao.com/vic/"
|
||||
DOWNLOAD="http://mordred.ao.com/vic/vic-0.08.tar.gz"
|
||||
MD5SUM="b6e2a4ccfa20bbaee2f716672b6dc248"
|
||||
MAINTAINER="Menno E. Duursma"
|
||||
HOMEPAGE="http://cornvalley.peak.org/vic/"
|
||||
DOWNLOAD="http://cornvalley.peak.org/vic/vic-0.08.tar.gz"
|
||||
MD5SUM="b219e45ca5340e21438215735389d8f5"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Menno Duursma"
|
||||
EMAIL="druiloor@zonnet.nl"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in a new issue