Commit e5d40925 authored by anarcat's avatar anarcat

remove phony targets and add jenkins build code

parent dbcbdcc1
......@@ -74,23 +74,18 @@ binary-indep: build install
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
release: git-buildpackage
MAJOR=$(shell sed -ne 's/^[^(]*(\([^)]*\)).*/\1/;1p' debian/changelog)
REV=$(shell env LANG=C git show --pretty=format:%h | head -1)
export VERSION
export MAJOR
DRUPAL_VERSION=$(shell sed -ne 's/^[^(]*(\([^)-]*\).*).*/\1/;s/~/-/;1p' debian/changelog )
@echo "building a package based on the current snapshot (${VERSION})"
svn update || true
svn export . ../alternc-${VERSION}
cd ../alternc-${VERSION} && sed -i -e '1s/)/~svn${REV})/' debian/changelog && debuild
git-buildpackage --git-debian-branch=debian --git-upstream-tag=provision-${DRUPAL_VERSION}
# this builds a debian package based on what the current branches are
# this usually tests the latest release
git-buildpackage --git-upstream-branch=origin/upstream --git-debian-branch=origin/debian --git-ignore-branch
# this builds a debian package but first updates the branches to follow the latest 1.x branch
git checkout -b upstream || git checkout upstream
git merge 6.x-1.x
git checkout -b debian || git checkout debian
git merge upstream
version=`git describe --match 'debian/*' --tags | sed 's#debian/##;s/-\([0-9]*\)-\([0-9]*\)-/-\1+\2/'`
dch -v $version "automatic jenkins build"
git commit -m"dummy commit for $version autobuild" debian/changelog
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment