vp

git clone git://oldgit.suckless.org/vp/
Log | Files | Refs | README

commit 2a4b7dd5a4c682e1fed8f54032d12c1e2e0cbbef
parent 0c4966f33b034504ec2e72f4b33cb3ba7ab9b749
Author: Kris Maglione <kris@suckless.org>
Date:   Sun, 15 Aug 2010 06:57:26 -0400

Pick up subscripts automatically in mkfile. Remove auto-generated vp-patterns.

Diffstat:
mkfile | 13+++++++------
vp-patterns | 6------
2 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/mkfile b/mkfile @@ -1,14 +1,15 @@ MKSHELL=rc -SUBSCRIPTS = \ - vp-revision3\ - vp-youtube\ - -SCRIPTS = \ +MAINSCRIPTS = \ vp\ vp-base\ vp-patterns\ - $SUBSCRIPTS\ + vp-ytlogin\ + +script = <{ls vp-*} <{ls $MAINSCRIPTS} +SUBSCRIPTS = `{eval comm -23 $script} + +SCRIPTS = $MAINSCRIPTS $SUBSCRIPTS <config.mk <`{test -f config.local.mk && echo config.local.mk || echo /dev/null} diff --git a/vp-patterns b/vp-patterns @@ -1,6 +0,0 @@ -fn vp_findscript { - echo $* | awk -v 'exits=1' ' - END { exit exits } - /^http:\/\/revision3.com\// { print "vp-revision3"; exits=0; exit } - /^http:\/\/(www\d*\.)?youtube\.com\/(v\/|(watch(\.php|_videos)?))(\?|#!|#%21)/ { print "vp-youtube"; exits=0; exit } -'}