summaryrefslogtreecommitdiff
path: root/homebrew/nethacked/.make.sh-auto
blob: eaea83d5916b68ea90d5ea33e0f336c05c727c41 (plain)
1
2
3
4
5
6
7
8
9
10
11
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