aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZane van Iperen <zane@zanevaniperen.com>2021-04-19 00:11:48 +1000
committerZane van Iperen <zane@zanevaniperen.com>2021-04-19 00:11:48 +1000
commit2526fd573ace94a85cb67f810dd27f34049c9424 (patch)
treed51323d1a587b90631febc3c305d08a493a52ef3
parent7cade98cf386d1909b3b1568c30bbe60765ac452 (diff)
downloadopenrussian-cli-2526fd573ace94a85cb67f810dd27f34049c9424.tar.gz
Makefile: don't rely on the shebang of mysql2sqlite
On NixOS, /usr/bin/awk doesn't exist.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 36c75d7..0d67b39 100644
--- a/Makefile
+++ b/Makefile
@@ -25,7 +25,7 @@ openrussian-sql.zip:
openrussian-sqlite3.db : openrussian-sql.zip mysql2sqlite postprocess.sql
$(RM) $@
- unzip -p $< openrussian.sql | ./mysql2sqlite - | sqlite3 $@
+ unzip -p $< openrussian.sql | awk -f ./mysql2sqlite - | sqlite3 $@
sqlite3 $@ -batch <postprocess.sql
# Try to generate all possible pages