diff options
author | B. Watson <yalhcru@gmail.com> | 2017-12-19 19:24:31 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-12-21 08:19:34 +0700 |
commit | c672db15b7b1dd8d70997324e681a57c48d8bf5b (patch) | |
tree | 62103a1e39d07c11b89c455b3e8d72ae5fb04eeb /misc | |
parent | c1c486d79b3e5144f0a0bde4aa5ca29e2e721ba2 (diff) |
misc/wcd: Updated for version 6.0.1.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/wcd/README | 17 | ||||
-rw-r--r-- | misc/wcd/wcd.SlackBuild | 16 | ||||
-rw-r--r-- | misc/wcd/wcd.csh | 6 | ||||
-rw-r--r-- | misc/wcd/wcd.info | 6 | ||||
-rw-r--r-- | misc/wcd/wcd.sh | 4 |
5 files changed, 37 insertions, 12 deletions
diff --git a/misc/wcd/README b/misc/wcd/README index 4d75d35953350..773da2fcbb8ee 100644 --- a/misc/wcd/README +++ b/misc/wcd/README @@ -1,9 +1,12 @@ -Wcd is a command-line program to change directory fast. -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 (Wherever Change Directory) -Wcd has a fast selection method in case -of multiple matches and allows aliasing and banning -of directories. Wcd also includes a full screen +Wcd is a command-line program to change directory fast. 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 of multiple matches and allows +aliasing and banning of directories. Wcd also includes a full screen 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. diff --git a/misc/wcd/wcd.SlackBuild b/misc/wcd/wcd.SlackBuild index 1221ebf9f660f..c586e075192ce 100644 --- a/misc/wcd/wcd.SlackBuild +++ b/misc/wcd/wcd.SlackBuild @@ -1,7 +1,11 @@ #!/bin/sh + # 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 # 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 # <https://www.gnu.org/licenses/>. +# 20171219 bkw: updated for v6.0.1. also, add /etc/profile.d scripts +# so wcd actually *works*. + PRGNAM=wcd -VERSION=${VERSION:-6.0.0} +VERSION=${VERSION:-6.0.1} BUILD=${BUILD:-1} 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 {} \; 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 cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/misc/wcd/wcd.csh b/misc/wcd/wcd.csh new file mode 100644 index 0000000000000..52ff3bfdf73cb --- /dev/null +++ b/misc/wcd/wcd.csh @@ -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 + diff --git a/misc/wcd/wcd.info b/misc/wcd/wcd.info index 46d9c14f0eeb4..8bc2171acb366 100644 --- a/misc/wcd/wcd.info +++ b/misc/wcd/wcd.info @@ -1,8 +1,8 @@ PRGNAM="wcd" -VERSION="6.0.0" +VERSION="6.0.1" HOMEPAGE="http://waterlan.home.xs4all.nl/" -DOWNLOAD="http://waterlan.home.xs4all.nl/wcd/wcd-6.0.0.tar.gz" -MD5SUM="335510f6fad5ea20dde769ccee16f160" +DOWNLOAD="http://waterlan.home.xs4all.nl/wcd/wcd-6.0.1.tar.gz" +MD5SUM="a3944190ac73da6f53585aa50eb264d6" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/misc/wcd/wcd.sh b/misc/wcd/wcd.sh new file mode 100644 index 0000000000000..ac91a9c49a5aa --- /dev/null +++ b/misc/wcd/wcd.sh @@ -0,0 +1,4 @@ +wcd() { + /usr/bin/wcd "$@" + . ${WCDHOME:-${HOME}}/bin/wcd.go +} |