misc/wcd: Updated for version 6.0.1.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2017-12-19 19:24:31 -05:00 committed by Willy Sudiarto Raharjo
parent c1c486d79b
commit c672db15b7
5 changed files with 37 additions and 12 deletions

View file

@ -1,9 +1,12 @@
Wcd is a command-line program to change directory fast. wcd (Wherever Change Directory)
It saves time typing at the keyboard. One needs to
type only a part of a directory name and wcd will
jump to it.
Wcd has a fast selection method in case Wcd is a command-line program to change directory fast. It saves time
of multiple matches and allows aliasing and banning typing at the keyboard. One needs to type only a part of a directory
of directories. Wcd also includes a full screen name and wcd will jump to it.
Wcd has a fast selection method in case of multiple matches and allows
aliasing and banning of directories. Wcd also includes a full screen
interactive directory tree browser with speed search. interactive directory tree browser with speed search.
After installing, either log out & back in, or run "source
/etc/profile.d/wcd.sh" to use wcd.

View file

@ -1,7 +1,11 @@
#!/bin/sh #!/bin/sh
# Slackware build script for wcd # Slackware build script for wcd
# Ryan P.C. McQuen | Everett, WA | ryanpcmcquen@member.fsf.org # Originally written by:
# Ryan P.C. McQuen <email removed>
# Now maintained by B. Watson <yalhcru@gmail.com>
# This program is free software: you can redistribute it and/or modify # 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 # it under the terms of the GNU General Public License as published by
@ -21,8 +25,11 @@
# with this program (most likely, a file named COPYING). If not, see # with this program (most likely, a file named COPYING). If not, see
# <https://www.gnu.org/licenses/>. # <https://www.gnu.org/licenses/>.
# 20171219 bkw: updated for v6.0.1. also, add /etc/profile.d scripts
# so wcd actually *works*.
PRGNAM=wcd PRGNAM=wcd
VERSION=${VERSION:-6.0.0} VERSION=${VERSION:-6.0.1}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -91,6 +98,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
find $PKG/usr/man -type f -exec gzip -9 {} \; find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
# profile.d scripts, installed executable (like mc does).
mkdir -p $PKG/etc/profile.d/
install -m0755 -oroot -groot \
$CWD/$PRGNAM.sh $CWD/$PRGNAM.csh $PKG/etc/profile.d/
cp -a ../doc/INSTALL.txt $PKG/usr/doc/$PRGNAM-$VERSION cp -a ../doc/INSTALL.txt $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

6
misc/wcd/wcd.csh Normal file
View file

@ -0,0 +1,6 @@
if ( ${?WCDHOME} ) then
alias wcd "/usr/bin/wcd \!* ; source $WCDHOME/bin/wcd.go"
else
alias wcd "/usr/bin/wcd \!* ; source $HOME/bin/wcd.go"
endif

View file

@ -1,8 +1,8 @@
PRGNAM="wcd" PRGNAM="wcd"
VERSION="6.0.0" VERSION="6.0.1"
HOMEPAGE="http://waterlan.home.xs4all.nl/" HOMEPAGE="http://waterlan.home.xs4all.nl/"
DOWNLOAD="http://waterlan.home.xs4all.nl/wcd/wcd-6.0.0.tar.gz" DOWNLOAD="http://waterlan.home.xs4all.nl/wcd/wcd-6.0.1.tar.gz"
MD5SUM="335510f6fad5ea20dde769ccee16f160" MD5SUM="a3944190ac73da6f53585aa50eb264d6"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM_x86_64="" MD5SUM_x86_64=""
REQUIRES="" REQUIRES=""

4
misc/wcd/wcd.sh Normal file
View file

@ -0,0 +1,4 @@
wcd() {
/usr/bin/wcd "$@"
. ${WCDHOME:-${HOME}}/bin/wcd.go
}