diff --git a/.goxc.json b/.goxc.json new file mode 100644 index 00000000..80a7a409 --- /dev/null +++ b/.goxc.json @@ -0,0 +1,38 @@ +{ + "AppName": "aptly", + "ArtifactsDest": "xc-out/", + "TasksExclude": [ + "rmbin" + ], + "TasksAppend": [ + "bintray" + ], + "TaskSettings": { + "deb": { + "metadata": { + "maintainer": "Andrey Smirnov", + "maintainerEmail": "me@smira.ru", + "description": "Debian repository management tool" + }, + "metadata-deb": { + "License": "MIT", + "Homepage": "https://www.aptly.info/", + "Recommends": "bzip2, graphviz, xz-utils", + "Depends": "" + }, + "other-mapped-files": { + "/": "root/" + } + }, + "bintray": { + "repository": "aptly", + "subject": "smira", + "package": "aptly", + "downloadspage": "bintray.md" + } + }, + "Arch": "386 amd64", + "Os": "linux darwin freebsd", + "MainDirsExclude": "man,_vendor", + "ConfigVersion": "0.9" +} \ No newline at end of file diff --git a/Makefile b/Makefile index 69067384..bf87cdb2 100644 --- a/Makefile +++ b/Makefile @@ -59,18 +59,6 @@ mem.png: mem.dat mem.gp gnuplot mem.gp open mem.png -package: - rm -rf root/ - mkdir -p root/usr/bin/ root/usr/share/man/man1/ root/etc/bash_completion.d - cp $(BINPATH)/aptly root/usr/bin - cp man/aptly.1 root/usr/share/man/man1 - (cd root/etc/bash_completion.d && wget https://raw.github.com/aptly-dev/aptly-bash-completion/master/aptly) - gzip root/usr/share/man/man1/aptly.1 - fpm -s dir -t deb -n aptly -v $(VERSION) --url=http://www.aptly.info/ --license=MIT --vendor="Andrey Smirnov " \ - -f -m "Andrey Smirnov " --description="Debian repository management tool" --deb-recommends bzip2 \ - --deb-recommends graphviz --deb-recommends xz-utils -C root/ . - mv aptly_$(VERSION)_*.deb ~ - src-package: rm -rf aptly-$(VERSION) mkdir -p aptly-$(VERSION)/src/github.com/smira/aptly/ @@ -84,4 +72,12 @@ src-package: rm -rf aptly-$(VERSION) curl -T aptly-$(VERSION)-src.tar.bz2 -usmira:$(BINTRAY_KEY) https://api.bintray.com/content/smira/aptly/aptly/$(VERSION)/$(VERSION)/aptly-$(VERSION)-src.tar.bz2 +goxc: + rm -rf root/ + mkdir -p root/usr/share/man/man1/ root/etc/bash_completion.d + cp man/aptly.1 root/usr/share/man/man1 + (cd root/etc/bash_completion.d && wget https://raw.github.com/aptly-dev/aptly-bash-completion/master/aptly) + gzip root/usr/share/man/man1/aptly.1 + gom exec goxc -pv=$(VERSION) -max-processors=4 + .PHONY: coverage.out