2014-01-05 06:08:23 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-01-26 06:05:30 +08:00
|
|
|
. /home/dvorka/p/hstr/github/hstr/dist/ubuntu-env.sh
|
2014-01-05 06:08:23 +08:00
|
|
|
|
2014-01-05 18:04:01 +08:00
|
|
|
function checkout_hh() {
|
|
|
|
bzr checkout lp:~ultradvorka/+junk/hh-package
|
|
|
|
#bzr branch lp:~ultradvorka/+junk/hh-package
|
2014-01-05 17:43:21 +08:00
|
|
|
#bzr clone lp:~ultradvorka/+junk/hh-package
|
|
|
|
#bzr branch lp:hstr
|
|
|
|
mv hh-package ${HH}
|
|
|
|
cd ${HH}
|
|
|
|
mv .bzr ..
|
|
|
|
rm -rvf debian dist man src LICENSE *.am *.md *.ac auto*.*
|
|
|
|
mv ../.bzr .
|
|
|
|
cp -rvf ${HHSRC}/* ${HHSRC}/*.* .
|
|
|
|
cd ..
|
|
|
|
#tar zcf ${HH}.tgz ${HH}
|
|
|
|
#cp -vf ${H}.tgz ${HH}.orig.tar.gz
|
|
|
|
mv -v ${HH} hh
|
|
|
|
cd ./hh/dist && ./1-dist.sh && cd ../..
|
2014-01-05 06:08:23 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
function init_hh() {
|
|
|
|
cp -rvf ${HHSRC} .
|
2014-01-05 17:43:21 +08:00
|
|
|
cd ./hstr/dist && ./1-dist.sh && rm -vrf ../debian && cd ../..
|
|
|
|
cd ${1}
|
2014-01-05 06:08:23 +08:00
|
|
|
mv hstr ${HH}
|
|
|
|
tar zcf ${HH}.tgz ${HH}
|
|
|
|
rm -rvf ${HH}
|
2014-01-05 17:43:21 +08:00
|
|
|
bzr dh-make -v hh ${HHVERSION} ${HH}.tgz
|
2014-01-05 06:08:23 +08:00
|
|
|
}
|
|
|
|
|
2014-01-05 17:43:21 +08:00
|
|
|
rm -rvf *.*~ ./debian
|
2014-01-05 06:08:23 +08:00
|
|
|
|
|
|
|
mkdir ${HHBUILD}
|
|
|
|
cd ${HHBUILD}
|
|
|
|
|
2014-01-05 18:04:01 +08:00
|
|
|
checkout_hh `pwd`
|
2014-01-05 17:43:21 +08:00
|
|
|
|
|
|
|
cd hh/dist
|
2014-01-26 06:05:30 +08:00
|
|
|
./2-ubuntu-build-deb.sh
|
2014-01-05 17:43:21 +08:00
|
|
|
|
2014-01-05 20:38:18 +08:00
|
|
|
pwd
|
2014-01-28 15:47:24 +08:00
|
|
|
#echo -e "\n\nFinish by running 3-ubuntu-push-deb.sh\n"
|
|
|
|
./3-ubuntu-push-deb.sh
|
|
|
|
|
2014-01-05 06:08:23 +08:00
|
|
|
|
|
|
|
# eof
|