summaryrefslogtreecommitdiff
path: root/homebrew/gwt/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/gwt/.make.sh-auto')
-rw-r--r--homebrew/gwt/.make.sh-auto18
1 files changed, 18 insertions, 0 deletions
diff --git a/homebrew/gwt/.make.sh-auto b/homebrew/gwt/.make.sh-auto
new file mode 100644
index 000000000..41ac6a4cb
--- /dev/null
+++ b/homebrew/gwt/.make.sh-auto
@@ -0,0 +1,18 @@
+pkg:setup
+rm Dir["*.cmd"]
+libexec.install Dir["*"]
+(bin/"webAppCreator").write <<~EOS
+#!/bin/sh
+HOMEDIR=#{libexec}
+java -cp "$HOMEDIR/gwt-user.jar:$HOMEDIR/gwt-dev.jar" com.google.gwt.user.tools.WebAppCreator "$@";
+EOS
+(bin/"benchmarkViewer").write <<~EOS
+#!/bin/sh
+APPDIR=#{libexec}
+java -Dcom.google.gwt.junit.reportPath="$1" -cp "$APPDIR/gwt-dev.jar" com.google.gwt.dev.RunWebApp -port auto $APPDIR/gwt-benchmark-viewer.war;
+EOS
+(bin/"i18nCreator").write <<~EOS
+#!/bin/sh
+HOMEDIR=#{libexec}
+java -cp "$HOMEDIR/gwt-user.jar:$HOMEDIR/gwt-dev.jar" com.google.gwt.i18n.tools.I18NCreator "$@";
+EOS