wmii

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

commit 1c4a68d08c498555ce35e5ad40c642ecb9fd28b0
parent 19611a808740e42e0051547d05669ffffe69dab8
Author: Denis Grelich <denisg@suckless.org>
Date:   Wed,  3 Jan 2007 21:58:22 +0100

using | instead of , as delimiter in sed expressions because of problems with Sun's sed

Diffstat:
Makefile | 2+-
rc/wmiirc | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -57,7 +57,7 @@ install: all done @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1 @mkdir -p ${DESTDIR}${MANPREFIX}/man1 - @sed 's/VERSION/${VERSION}/g ; s,CONFPREFIX,${CONFPREFIX},g' < wmii.1 > ${DESTDIR}${MANPREFIX}/man1/wmii.1 + @sed 's/VERSION/${VERSION}/g ; s|CONFPREFIX|${CONFPREFIX}|g' < wmii.1 > ${DESTDIR}${MANPREFIX}/man1/wmii.1 @sed 's/VERSION/${VERSION}/g' < wmiir.1 > ${DESTDIR}${MANPREFIX}/man1/wmiir.1 @sed 's/VERSION/${VERSION}/g' < wmiiwm.1 > ${DESTDIR}${MANPREFIX}/man1/wmiiwm.1 @chmod 644 ${DESTDIR}${MANPREFIX}/man1/wmii.1 diff --git a/rc/wmiirc b/rc/wmiirc @@ -20,7 +20,7 @@ conf_which () { tagsmenu() { tag=`wmiir read /tag/sel/ctl` - tags=`wmiir ls /tag | sed 's,/,,; /^sel$/d' | awk "BEGIN{print \"$tag\"} !/^$tag\$/" | $DMENU \ + tags=`wmiir ls /tag | sed 's|/||; /^sel$/d' | awk "BEGIN{print \"$tag\"} !/^$tag\$/" | $DMENU \ | sed 's/^\.\.\?$//; s/^\.\.\?+//g; s/+\.\.\?$//g; s/+\.\.\?+/+/g; s/\W//'` test -n "$tags" && xwrite $@ "$tags" } @@ -129,7 +129,7 @@ do done seltag="`wmiir read /tag/sel/ctl 2>/dev/null`" -wmiir ls /tag | sed -e 's,/$,,; /^sel$/d' | +wmiir ls /tag | sed -e 's|/$||; /^sel$/d' | while read tag do if [ "X$tag" = "X$seltag" ]; then