Revision c4363b4f9b0b6ba7b4e729abc20370d227bb155c authored by andrewjpage on 01 July 2015, 09:40:28 UTC, committed by andrewjpage on 01 July 2015, 09:40:28 UTC
1 parent f9920eb
Makefile.am
# Aidan Delaney <a.j.delaney@brighton.ac.uk> is responsible for this,
# blame him for any errors.
# Requires the use of Vagrant and reasonable bandwidth/time.
PACKAGE_VERSION=$(VERSION)~trusty1
release-local: ubuntu-release
ubuntu-binary:
vagrant up
vagrant provision
cp ../${PACKAGE}-${VERSION}.tar.gz .
vagrant ssh -c "rm -rf ${PACKAGE}-${PACKAGE_VERSION}"
vagrant ssh -c "tar xzvf /vagrant/${PACKAGE}-${VERSION}.tar.gz"
vagrant ssh -c "mv ${PACKAGE}-${VERSION} ${PACKAGE}-${PACKAGE_VERSION}"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION} && ./configure --prefix /usr"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION} && make"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION} && make DESTDIR=/home/vagrant/${PACKAGE}-${PACKAGE_VERSION}-inst install"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION}-inst && find . -type f -print > ../files.lst"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION}-inst && tar zcvf ${PACKAGE}_${VERSION}_amd64.tar.gz -T ../files.lst"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION}-inst && cp ${PACKAGE}_${VERSION}_amd64.tar.gz /vagrant"
vagrant ssh -c "rm -rf ${PACKAGE}-${PACKAGE_VERSION}-inst"
vagrant halt
# copy gubbins using /vagrant default mount rather than puppet, to avail of automake substitution.
ubuntu-release:
vagrant up
vagrant ssh -c "sudo apt-get update"
vagrant reload
vagrant provision
cp ../${PACKAGE}-${VERSION}.tar.gz .
vagrant ssh -c "rm -rf ${PACKAGE}-${PACKAGE_VERSION}"
vagrant ssh -c "tar xzvf /vagrant/${PACKAGE}-${VERSION}.tar.gz"
vagrant ssh -c "mv ${PACKAGE}-${VERSION} ${PACKAGE}-${PACKAGE_VERSION}"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION} && dpkg-buildpackage -uc -us -rfakeroot"
vagrant ssh -c "cp ${PACKAGE}_${PACKAGE_VERSION}_amd64.deb /vagrant"
vagrant ssh -c "cp ${PACKAGE}_${PACKAGE_VERSION}_amd64.changes /vagrant"
vagrant ssh -c "cp ${PACKAGE}_${PACKAGE_VERSION}.tar.gz /vagrant"
vagrant halt
source:
vagrant up
vagrant provision
cp ../${PACKAGE}-${VERSION}.tar.gz .
vagrant ssh -c "rm -rf ${PACKAGE}-${PACKAGE_VERSION}"
vagrant ssh -c "tar xzvf /vagrant/${PACKAGE}-${VERSION}.tar.gz"
vagrant ssh -c "mv ${PACKAGE}-${VERSION} ${PACKAGE}-${PACKAGE_VERSION}"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION} && dpkg-buildpackage -uc -us -rfakeroot"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION} && make clean"
vagrant ssh -c "dpkg-source -rfakeroot -b ${PACKAGE}-${PACKAGE_VERSION}"
vagrant ssh -c "cd ${PACKAGE}-${PACKAGE_VERSION} && dpkg-genchanges -S > ../${PACKAGE}_${PACKAGE_VERSION}_amd64.changes"
vagrant ssh -c "cp ${PACKAGE}_${PACKAGE_VERSION}.dsc /vagrant"
vagrant ssh -c "cp ${PACKAGE}_${PACKAGE_VERSION}_amd64.changes /vagrant"
vagrant ssh -c "cp ${PACKAGE}_${PACKAGE_VERSION}.tar.gz /vagrant"
vagrant halt
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...