diff options
| author | ruki <[email protected]> | 2017-04-07 22:51:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-04-07 22:51:01 +0800 |
| commit | b4cc6dc09427ae185f18d70d2f0597c768045638 (patch) | |
| tree | b58d5f87213cf4f82860dbaed1e685899fc765fd /scripts/debian | |
| parent | 4550a78f09c041fbe8945980ce981b63e2a8b26a (diff) | |
fix debian rules
Diffstat (limited to 'scripts/debian')
| -rw-r--r-- | scripts/debian/changelog | 66 | ||||
| -rwxr-xr-x | scripts/debian/rules | 25 |
2 files changed, 86 insertions, 5 deletions
diff --git a/scripts/debian/changelog b/scripts/debian/changelog index 4b6f314e0..37c0f4978 100644 --- a/scripts/debian/changelog +++ b/scripts/debian/changelog @@ -1,3 +1,69 @@ +xmake (2.1.3-13) yakkety; urgency=medium + + * add uninstall + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-12) yakkety; urgency=medium + + * fix bin dir + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-11) yakkety; urgency=medium + + * modify install path + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-10) yakkety; urgency=medium + + * modify install script + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-9) yakkety; urgency=medium + + * remove test xmake + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-8) yakkety; urgency=medium + + * fix binary dir for install debian + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-7) yakkety; urgency=medium + + * modify install dir + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-6) yakkety; urgency=medium + + * remove sudo for install + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-5) yakkety; urgency=medium + + * modify permission problem + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-4) yakkety; urgency=medium + + * modify package ppa script + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + +xmake (2.1.3-3) yakkety; urgency=medium + + * modify ppa install path + + -- ruki <[email protected]> Thu, 06 Apr 2017 21:22:12 +0800 + xmake (2.1.3-2) yakkety; urgency=medium * modify debian script diff --git a/scripts/debian/rules b/scripts/debian/rules index b5ded3369..bbf394eb6 100755 --- a/scripts/debian/rules +++ b/scripts/debian/rules @@ -2,11 +2,15 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 + +# prefix +prefix=$(CURDIR)/debian/xmake/usr + configure: configure-stamp configure-stamp: dh_testdir - # Add here commands to configure the package. touch configure-stamp + build: build-stamp build-stamp: configure-stamp dh_testdir @@ -16,7 +20,6 @@ clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp - rm -rf ./debian/xmake dh_clean install: build @@ -24,8 +27,20 @@ install: build dh_testroot dh_clean -k dh_installdirs - #install here - make install prefix=$(CURDIR)/debian/xmake + mkdir -p $(prefix)/bin + mkdir -p $(prefix)/share + cp -r $(CURDIR)/xmake $(prefix)/share + cp $(CURDIR)/core/src/demo/demo.b $(prefix)/share/xmake/xmake + echo '#!/bin/bash' > $(prefix)/bin/xmake + echo 'export XMAKE_PROGRAM_DIR=/usr/share/xmake' >> $(prefix)/bin/xmake + echo '/usr/share/xmake/xmake "$$@"' >> $(prefix)/bin/xmake + chmod 755 $(prefix)/bin/xmake + +distclean: clean + +uninstall: + if [ -f /usr/bin/xmake ]; then rm /usr/bin/xmake; fi + if [ -d /usr/share/xmake ]; then rm -rf /usr/share/xmake; fi binary-indep: build install # We have nothing to do by default. @@ -47,4 +62,4 @@ binary-arch: build install dh_md5sums dh_builddeb binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure +.PHONY: build clean binary-indep binary-arch binary install uninstall configure |
