$ look apple-pie
Signed-off-by: Karel Zak <kzak@redhat.com>
ts-mkswap-doit \
ts-mount-paths \
ts-namei-logic \
- ts-cramfs-mkfs
+ ts-cramfs-mkfs \
+ ts-look-separator
distclean-local:
rm -rf output diff
TS_CMD_COL=${TS_CMD_COL:-"$TOPDIR/text-utils/col"}
TS_CMD_NAMEI=${TS_CMD_NAMEI-"$TOPDIR/misc-utils/namei"}
-
+TS_CMD_LOOK=${TS_CMD_LOOK-"$TOPDIR/misc-utils/look"}
--- /dev/null
+#!/bin/bash
+
+#
+# WARNING: the look command expects that the /usr/share/dict/words uses
+# directory order!
+#
+# for example:
+#
+# cat words.raw | egrep --invert-match "'s$" | \
+# egrep "^[[:alnum:]'&!,./-]+$" | \
+# sort --ignore-case --dictionary-order | \
+# uniq > words
+#
+
+. commands.sh
+. functions.sh
+
+TS_COMPONENT="look"
+TS_DESC="separator"
+
+ts_init
+
+if [ ! -f "/usr/share/dict/words" ]; then
+ ts_ignore "/usr/share/dict/words not such file"
+fi
+
+touch $TS_OUTPUT
+
+$TS_CMD_LOOK apple-pie >> $TS_OUTPUT
+
+ts_finalize
+