summaryrefslogtreecommitdiff
path: root/scripts/make_deb
diff options
context:
space:
mode:
authorruki <[email protected]>2017-03-29 22:34:28 +0800
committerruki <[email protected]>2017-03-29 22:34:40 +0800
commit4c9f403330a0aa41bf6f16545e6a17849d3ff6f4 (patch)
treeec40431a99fb4aac8aa89bfff25bb9b5432e0700 /scripts/make_deb
parentaa17c1b4cae53dc686a551326291020ac793c2df (diff)
add make osxpkg script
Diffstat (limited to 'scripts/make_deb')
-rwxr-xr-xscripts/make_deb29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/make_deb b/scripts/make_deb
new file mode 100755
index 000000000..336ff25d1
--- /dev/null
+++ b/scripts/make_deb
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+# install fpm
+# apt-get install ruby ruby-dev rubygems gcc make
+# gem install --no-ri --no-rdoc fpm
+
+# version
+version=2.1.3
+
+# build xmake core
+cd ./core
+make f DEBUG=n
+make r
+cd -
+
+# make xmake wrapper
+echo "#/!bin/bash
+export XMAKE_PROGRAM_DIR=/usr/local/share/xmake
+/usr/local/share/xmake/xmake \"\$@\"
+" > /tmp/xmake.sh
+chmod 755 /tmp/xmake.sh
+
+# make dep package using fpm
+fpm -s dir -t deb -n xmake -v $version -m "<[email protected]>" --description="A make-like build utility based on Lua" --license=LICENSE.md \
+ xmake=/usr/local/share/ \
+ core/bin/demo.pkg/bin/linux/x86_64/demo.b=/usr/local/share/xmake/xmake \
+ /tmp/xmake.sh=/usr/local/bin/xmake
+
+