Launchpad release automation.

This commit is contained in:
Martin Dvorak 2014-01-04 23:08:23 +01:00
parent d18e37ee6a
commit 05fea46ba9
10 changed files with 83 additions and 38 deletions

4
debian/changelog vendored
View file

@ -1,5 +1,5 @@
hh (0.7-2ubuntu3) raring; urgency=low
hh (0.71-0ubuntu1) raring; urgency=low
* Making source C99 compliant.
* Case insensitive search with ctrl-i toggle.
-- Martin Dvorak (Dvorka) <martin.dvorak@mindforger.com> Wed, 25 Dec 2013 17:21:31 +0100

View file

@ -7,7 +7,7 @@ aclocal
automake --force-missing --add-missing
autoconf
rm -vf depcomp install-sh missing
rm -rvf depcomp install-sh missing autom*te.cache
cp -vf /usr/share/automake-1.11/depcomp .
cp -vf /usr/share/automake-1.11/install-sh .
cp -vf /usr/share/automake-1.11/missing .

24
dist/2-deb.sh vendored Executable file
View file

@ -0,0 +1,24 @@
#!/bin/bash
export SCRIPTHOME=`pwd`
. ./env.sh
rm -rvf ../debian
cp -rvf ${HHSRC}/debian ..
cp changelog-${UBUNTUVERSION} ../debian/changelog
cd ..
dch -i
cd dist
cd ../..
mv hh ${HH}
cd ${HH}
bzr commit -m "Update for ${HH} at ${NOW}."
bzr builddeb -- -us -uc
bzr builddeb -S
cd ../build-area
pbuilder-dist ${UBUNTUVERSION} build ${HHRELEASE}.dsc
# eof

View file

@ -2,8 +2,10 @@
. ./env.sh
cd ../..
cd ..
bzr commit -m "Sync."
bzr push lp:~ultradvorka/+junk/hh-package
cd ..
dput ppa:ultradvorka ${HHRELEASE}_source.changes
# eof
# eof

5
dist/changelog-raring vendored Normal file
View file

@ -0,0 +1,5 @@
hh (0.71-0ubuntu1) raring; urgency=low
* Case insensitive search with ctrl-i toggle.
-- Martin Dvorak (Dvorka) <martin.dvorak@mindforger.com> Wed, 25 Dec 2013 17:21:31 +0100

5
dist/changelog-saucy vendored Normal file
View file

@ -0,0 +1,5 @@
hh (0.71-0ubuntu1) saucy; urgency=low
* Case insensitive search with ctrl-i toggle.
-- Martin Dvorak (Dvorka) <martin.dvorak@mindforger.com> Wed, 25 Dec 2013 17:21:31 +0100

12
dist/deb-build.sh vendored
View file

@ -1,12 +0,0 @@
#!/bin/bash
. ./env.sh
rm -vf *.*~
cd ..
bzr commit -m "Sync."
bzr builddeb -- -us -uc
bzr builddeb -S && cd ../build-area && pbuilder-dist raring build ${HHRELEASE}.dsc
# eof

18
dist/deb.sh vendored
View file

@ -1,18 +0,0 @@
#!/bin/bash
mv -vf ../debian ../..
./dist.sh
cd ../..
mv hstr ${HH}
tar zcf ${HH}.tgz ${HH}
bzr dh-make hh 0.7 ${HH}.tgz
cd hh
rm -rvf debian
cp -vrf ../debian .
bzr commit -m "Initial commit of Debian packaging."
bzr builddeb -- -us -uc
bzr builddeb -S
cd ../build-area
pbuilder-dist raring build ${HHRELEASE}.dsc
# eof

14
dist/env.sh vendored
View file

@ -1,7 +1,15 @@
#!/bin/bash
export HH=hh_0.7
export HHRELEASE=${HH}-1ubuntu2
export HHHOME=/home/dvorka/hstr/github/hstr
export HHVERSION="0.71"
export HH=hh_${HHVERSION}
export HHRELEASE=${HH}-0ubuntu1
export HHSRC=/home/dvorka/p/hstr/github/hstr
export NOW=`date +%Y-%m-%d--%H-%M-%S`
export HHBUILD=hstr-${NOW}
export UBUNTUVERSION=raring
# - when asked to change debian/changes, just copy the date and keep 0ubuntu1
# - user email must be as in gpg i.e. (Dvorka) must present
# - hh_ must be with underscore
# eof

31
dist/make-ubuntu-distro.sh vendored Executable file
View file

@ -0,0 +1,31 @@
#!/bin/bash
. /home/dvorka/p/hstr/github/hstr/dist/env.sh
function branch_hh() {
bzr branch lp:hstr
#cd hstr
#mv .bzr ..
#rm -rvf debian dist man src LICENSE *.am *.md *.ac
#mv ../.bzr .
#cp -rvf ${HHSRC}/* ${HHSRC}/*.* .
}
function init_hh() {
cp -rvf ${HHSRC} .
mv hstr ${HH}
tar zcf ${HH}.tgz ${HH}
rm -rvf ${HH}
bzr dh-make hh ${HHVERSION} ${HH}.tgz
}
rm -rvf *.*~
mkdir ${HHBUILD}
cd ${HHBUILD}
init_hh
cd dist
#echo "Continue by editing debian/changes and dist/ directory: 1-dist.sh"
# eof