diff options
author | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-20 20:49:46 -0500 |
---|---|---|
committer | MCApollo <34170230+MCApollo@users.noreply.github.com> | 2019-04-23 20:18:47 -0500 |
commit | 12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch) | |
tree | 352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/nailgun/.make.sh-auto | |
parent | a2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff) |
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/nailgun/.make.sh-auto')
-rw-r--r-- | homebrew/nailgun/.make.sh-auto | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/homebrew/nailgun/.make.sh-auto b/homebrew/nailgun/.make.sh-auto new file mode 100644 index 000000000..f65481588 --- /dev/null +++ b/homebrew/nailgun/.make.sh-auto @@ -0,0 +1,8 @@ +pkg:setup +make DESTDIR=${PKG_DEST} install CC=${PKG_TARG}-clang PREFIX=${PKG_TAPF} CFLAGS=${CFLAGS} +require "rexml/document" +pom_xml = REXML::Document.new(File.new("pom.xml")) +jar_version = REXML::XPath.first(pom_xml, "string(/pom:project/pom:version)", "pom" => "http://maven.apache.org/POM/4.0.0") +mvn clean install +libexec.install Dir["nailgun-server/target/*.jar"] +bin.write_jar_script libexec/"nailgun-server-#{jar_version}.jar", "ng-server", "-server" |