aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-12 11:44:09 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-12 11:44:09 +0000
commit6d1d80e1a9e4854c66dc72eb568eabb05c5c8a5f (patch)
tree87630b51c9d80335ef9f7d41cecc514ef21259ed /scripts
parent[w3m-dev 02823] (diff)
downloadw3m-6d1d80e1a9e4854c66dc72eb568eabb05c5c8a5f.tar.gz
w3m-6d1d80e1a9e4854c66dc72eb568eabb05c5c8a5f.zip
[w3m-dev 02827]
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to '')
-rw-r--r--scripts/Makefile15
1 files changed, 3 insertions, 12 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
index e1efdc9..c7057b5 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -33,18 +33,11 @@ all: $(LIB_TARGETS) $(HELP_LIBS)
w3mhelp-funcname.pl: w3mhelp-funcname.pl.in ../funcname.tab ../doc/keymap.default ../doc/keymap.lynx
@echo "generating w3mhelp-funcname.pl..."
@echo '%funcname = (' > w3mhelp-funcname.pl
- @while read fname fid; do \
- case "$$fname" in [a-zA-Z@]*) echo "'$$fname', '$$fid',";; esac; \
- done < ../funcname.tab >> w3mhelp-funcname.pl
+ @sed -ne "/^[a-zA-Z@]/s/\([a-zA-Z@][a-zA-Z0-9@_]*\)[ ][ ]*\([^ ]*\)/'\1', '\2',/p" < ../funcname.tab >> w3mhelp-funcname.pl
@echo ');' >> w3mhelp-funcname.pl
@echo '%keyfunc = (' >> w3mhelp-funcname.pl
@case "$(KEYBIND_SRC)" in *lynx*) keymap=keymap.lynx;; *) keymap=keymap.default;; esac; \
- while read keyword keys func rest; do \
- if [ "X$$keyword" = Xkeymap ]; then \
- keys=`echo "$$keys" | sed -e 's/[\\"\\\\^]/\\\\&/g'`; \
- echo "'$$keys', '$$func',"; \
- fi; \
- done < ../doc/$$keymap >> w3mhelp-funcname.pl
+ sed -ne "/^keymap/s/^keymap[ ][ ]*\([^ ]*\)[ ][ ]*\([a-zA-Z@][a-zA-Z0-9@_]*\)/'\1', '\2', /p" < ../doc/$$keymap >> w3mhelp-funcname.pl
@echo ');' >> w3mhelp-funcname.pl
@cat w3mhelp-funcname.pl.in >> w3mhelp-funcname.pl
@echo "done"
@@ -56,9 +49,7 @@ w3mhelp-funcdesc-stamp:
dir=`expr "$$dirlang" : "\(.*\):.*"`; \
lang=`expr "$$dirlang" : ".*:\(.*\)_.*"`; \
echo '%funcdesc = (' > w3mhelp-funcdesc.$$lang.pl; \
- while read func desc; do \
- case "$$func" in [a-zA-Z@]*) echo "'$$func', '$$desc', ";; esac; \
- done < ../$$dir/README.func >> w3mhelp-funcdesc.$$lang.pl; \
+ sed -ne "/^[a-zA-Z@]/s/\([a-zA-Z@][a-zA-Z0-9@_]*\)[ ][ ]*\(.*\)/'\1', '\2',/p" < ../$$dir/README.func >> w3mhelp-funcdesc.$$lang.pl; \
echo ');' >> w3mhelp-funcdesc.$$lang.pl; \
cat w3mhelp-funcdesc.$$lang.pl.in >> w3mhelp-funcdesc.$$lang.pl; \
done