summaryrefslogtreecommitdiff
path: root/homebrew/nethacked/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/nethacked/.make.sh-auto')
-rw-r--r--homebrew/nethacked/.make.sh-auto12
1 files changed, 12 insertions, 0 deletions
diff --git a/homebrew/nethacked/.make.sh-auto b/homebrew/nethacked/.make.sh-auto
new file mode 100644
index 000000000..eaea83d59
--- /dev/null
+++ b/homebrew/nethacked/.make.sh-auto
@@ -0,0 +1,12 @@
+pkg:setup
+ENV.deparallelize
+sh sys/unix/setup.sh
+inreplace "include/config.h", /^#\s*define HACKDIR.*$/, "#define HACKDIR \"#{libexec}\""
+wizard = Etc.getpwuid.name
+inreplace "include/config.h", /^#\s*define\s+WIZARD\s+"wizard"/, "#define WIZARD \"#{wizard}\""
+inreplace "include/config.h", /^#\s*define\s+WIZARD_NAME\s+"wizard"/, "#define WIZARD_NAME \"#{wizard}\""
+cd "dat"
+make
+%w[perm logfile].each do |f|
+touch f
+libexec.install f