]> git.draconx.ca Git - zshconf.git/commitdiff
Add a Makefile to precompile startup scripts.
authorNick Bowler <nbowler@elliptictech.com>
Thu, 8 Sep 2011 20:57:47 +0000 (16:57 -0400)
committerNick Bowler <nbowler@elliptictech.com>
Thu, 8 Sep 2011 20:57:47 +0000 (16:57 -0400)
This doesn't seem to reduce shell startup time by any significant
amount, but may as well have support for it.

.gitignore [new file with mode: 0644]
Makefile [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..416cfaa
--- /dev/null
@@ -0,0 +1 @@
+*.zwc
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..4767041
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+ZCOMPILE = zsh -c 'zcompile $$@' zsh
+
+SCRIPTS = $(wildcard zshenv zprofile zshrc zlogin zlogout)
+TARGETS = $(SCRIPTS:%=%.zwc)
+
+all: $(TARGETS)
+
+clean:
+       rm -f $(TARGETS)
+
+%.zwc: %
+       $(ZCOMPILE) $*