From f6779d13690680bef9511ebfc160a8b85f8c9e32 Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Sat, 21 Oct 2023 12:29:43 -0400 Subject: Makefile: Create example english word file --- .gitignore | 1 + Makefile | 17 ++++++++++++----- map.qwerty.noapos.tsv | 4 ++++ map.qwerty.simplegrid.tsv | 4 ---- 4 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 map.qwerty.noapos.tsv delete mode 100644 map.qwerty.simplegrid.tsv diff --git a/.gitignore b/.gitignore index 2a9e7a7..1d9369d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ mapScore swipeGuess swipeGuess.1 mapScore.1 +words-qwerty-en diff --git a/Makefile b/Makefile index f9ed3b6..8dc42f0 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PREFIX?=/usr/local -all: swipeGuess mapScore docs +all: swipeGuess mapScore docs words-qwerty-en swipeGuess: swipeGuess.c $(CC) swipeGuess.c -o swipeGuess mapScore: mapScore.c @@ -11,13 +11,20 @@ swipeGuess.1: swipeGuess.1.scd mapScore.1: mapScore.1.scd scdoc < mapScore.1.scd > mapScore.1 +words-qwerty-en: /usr/share/dict/american-english mapScore + grep .. /usr/share/dict/american-english | ./mapScore map.qwerty.noapos.tsv bee | sort -nr | cut -f2 > words-qwerty-en +/usr/share/dict/american-english: + apk add words-en + install: all - install -m755 swipeGuess -t "$(DESTDIR)/$(PREFIX)/bin/" - install -m755 mapScore -t "$(DESTDIR)/$(PREFIX)/bin/" - install -m644 swipeGuess.1 -t "$(DESTDIR)/$(PREFIX)/share/man/man1/" - install -m644 mapScore.1 -t "$(DESTDIR)/$(PREFIX)/share/man/man1/" + install -m755 swipeGuess -D -t "$(DESTDIR)/$(PREFIX)/bin/" + install -m755 mapScore -D -t "$(DESTDIR)/$(PREFIX)/bin/" + install -m644 swipeGuess.1 -D -t "$(DESTDIR)/$(PREFIX)/share/man/man1/" + install -m644 mapScore.1 -D -t "$(DESTDIR)/$(PREFIX)/share/man/man1/" + install -m644 words-qwerty-en -D -t "$(DESTDIR)/$(PREFIX)/share/swipeGuess/words/" uninstall: rm -f "$(DESTDIR)/$(PREFIX)/bin/swipeGuess" rm -f "$(DESTDIR)/$(PREFIX)/bin/mapScore" rm -f "$(DESTDIR)/$(PREFIX)/share/man/man1/swipeGuess.1" rm -f "$(DESTDIR)/$(PREFIX)/share/man/man1/mapScore.1" + rm -f "$(DESTDIR)/$(PREFIX)/share/swipeGuess/words/words-qwerty-en" diff --git a/map.qwerty.noapos.tsv b/map.qwerty.noapos.tsv new file mode 100644 index 0000000..905bb74 --- /dev/null +++ b/map.qwerty.noapos.tsv @@ -0,0 +1,4 @@ +q w e r t y u i o p +a s d f g h j k l + z x c v b n m + , . diff --git a/map.qwerty.simplegrid.tsv b/map.qwerty.simplegrid.tsv deleted file mode 100644 index 542ec1b..0000000 --- a/map.qwerty.simplegrid.tsv +++ /dev/null @@ -1,4 +0,0 @@ -q w e r t y u i o p -a s d f g h j k l ' - z x c v b n m - , . -- cgit 1.4.1