FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 9372481c authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Use standard Makefile from makedeb, and associated refactoring

parent b8898df2
No related branches found
No related tags found
No related merge requests found
debs/*.deb debs/*.deb
*.deb
...@@ -8,9 +8,8 @@ $ git pull ...@@ -8,9 +8,8 @@ $ git pull
# make whatever edits you want to make # make whatever edits you want to make
# assuming you then want to build a deb which incorporates your changes.. # assuming you then want to build a deb which incorporates your changes..
bump the version in ./ROOT/DEBIAN/control $ make build # builds new deb in ./
$ make # builds new deb in ./debs/ $ make upload # scps deb to downloads and updates repo indexes
$ make upload $ scps deb to downloads and updates repo indexes
# commit changes # commit changes
git add . git add .
......
# To build a debian package
PKG:=$(shell grep ^Package: ROOT/DEBIAN/control | awk ' { print $$2 } ')
VER:=$(shell grep ^Version: ROOT/DEBIAN/control | awk ' { print $$2 } ')
ARC:=$(shell grep ^Architecture ROOT/DEBIAN/control | awk ' { print $$2 } ')
deb: debs/${PKG}_${VER}_${ARC}.deb
debs/${PKG}_${VER}_${ARC}.deb:
fakeroot dpkg-deb -b ROOT/ debs/${PKG}_${VER}_${ARC}.deb
upload: debs/${PKG}_${VER}_${ARC}.deb
scp debs/${PKG}_${VER}_${ARC}.deb root@downloads.ch.private.cam.ac.uk:/tmp/
ssh -l root downloads.ch.private.cam.ac.uk "make -C /var/www/local-debs/ debtodist-xenial DEB=/tmp/${PKG}_${VER}_${ARC}.deb"
ssh -l root downloads.ch.private.cam.ac.uk "make -C /var/www/local-debs/ debtodist-jessie DEB=/tmp/${PKG}_${VER}_${ARC}.deb"
ssh -l root downloads.ch.private.cam.ac.uk "make -C /var/www/local-debs/ debtodist-wheezy DEB=/tmp/${PKG}_${VER}_${ARC}.deb"
ssh -l root downloads.ch.private.cam.ac.uk "rm /tmp/${PKG}_${VER}_${ARC}.deb"
.PHONY: deb upload
Makefile 0 → 120000
../makedeb/Makefile
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment