From 096ff0808e531c8e0f15e8240b73158beca4a89b Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 27 Nov 2020 00:09:42 +0800 Subject: add xrepo to deb package --- scripts/debian/rules | 5 ++++- scripts/makepkg | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/debian/rules b/scripts/debian/rules index b64ef4e04..6dd9e60cd 100755 --- a/scripts/debian/rules +++ b/scripts/debian/rules @@ -30,13 +30,16 @@ install: build mkdir -p $(prefix)/bin mkdir -p $(prefix)/share cp -r $(CURDIR)/xmake $(prefix)/share - cp $(CURDIR)/core/src/demo/demo.b $(prefix)/bin/xmake + cp -p $(CURDIR)/core/src/demo/demo.b $(prefix)/bin/xmake chmod 755 $(prefix)/bin/xmake + cp -p $(CURDIR)/scripts/xrepo.sh $(prefix)/bin/xrepo + chmod 755 $(prefix)/bin/xrepo distclean: clean uninstall: if [ -f /usr/bin/xmake ]; then rm /usr/bin/xmake; fi + if [ -f /usr/bin/xrepo ]; then rm /usr/bin/xrepo; fi if [ -d /usr/share/xmake ]; then rm -rf /usr/share/xmake; fi binary-indep: build install diff --git a/scripts/makepkg b/scripts/makepkg index 30cb91f8d..1967694d8 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -51,9 +51,10 @@ fi make build # make dep package using fpm -fpm -s dir -t $target -n xmake -v $version -m "" --description "A make-like build utility based on Lua" --url "xmake.io" --license Apache \ +fpm -s dir -t $target -n xmake -v $version -m "" --description "A cross-platform build utility based on Lua" --url "xmake.io" --license Apache \ xmake=/usr/local/share/ \ - core/src/demo/demo.b=/usr/local/bin/xmake + core/src/demo/demo.b=/usr/local/bin/xmake \ + scripts/xrepo.sh=/usr/local/bin/xrepo if [ "$target" == "osxpkg" ]; then mv "xmake-$version.pkg" "$artifactsdir/xmake.pkg" elif [ "$target" == "deb" ]; then -- cgit v1.3.1