mirror of
https://github.com/dvorka/hstr.git
synced 2024-09-20 06:46:13 +08:00
hh2hstr finishing script fixes #309
This commit is contained in:
parent
9d38d5878d
commit
989ea7039f
|
@ -63,7 +63,7 @@ function compose() {
|
|||
######################################################################################
|
||||
|
||||
#decompose
|
||||
# build HSTR locally to get binaries w/ right dependencies > replace hh and hstr in decomposed .rpm
|
||||
# build HSTR locally to get binaries w/ right dependencies > replace hstr and hh binaries in decomposed .rpm
|
||||
compose
|
||||
|
||||
# sudo dnf install hstr.rpm
|
||||
|
|
|
@ -14,6 +14,6 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
cd .. && make clean && qmake CONFIG+=hstrdebug hstr.pro && make && gdb ./hh
|
||||
cd .. && make clean && qmake CONFIG+=hstrdebug hstr.pro && make && gdb ./hstr
|
||||
|
||||
# eof
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
hh (0.80-0ubuntu1) raring; urgency=low
|
||||
hstr (0.80-0ubuntu1) raring; urgency=low
|
||||
|
||||
* Fixed keyboard loop; Ctrl-r consistent shortcuts; propagation of the text from the prompt to HH.
|
||||
* Fixed keyboard loop; Ctrl-r consistent shortcuts; propagation of the text from the prompt to HSTR.
|
||||
|
||||
-- Martin Dvorak <martin.dvorak@mindforger.com> Wed, 25 Dec 2013 17:21:31 +0100
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Source: hh
|
||||
Source: hstr
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Martin Dvorak <martin.dvorak@mindforger.com>
|
||||
|
@ -8,10 +8,10 @@ Homepage: https://github.com/dvorka/hstr
|
|||
Vcs-Git: https://github.com/dvorka/hstr.git
|
||||
Vcs-Browser: https://github.com/dvorka/hstr
|
||||
|
||||
Package: hh
|
||||
Package: hstr
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: Suggest box like shell history completion
|
||||
A command line utility that brings improved shell command completion
|
||||
from the history. It aims to make completion easier and faster than Ctrl-r.
|
||||
Tag: implemented-in::c++, interface::commandline, role::program
|
||||
Tag: implemented-in::c, interface::commandline, role::program
|
|
@ -1,5 +1,5 @@
|
|||
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: hh
|
||||
Upstream-Name: hstr
|
||||
Source: https://github.com/dvorka/hstr
|
||||
|
||||
Files: debian/*
|
||||
|
|
|
@ -29,23 +29,24 @@
|
|||
# This script cannot be run from Git repository. Launchpad release
|
||||
# directory must exist.
|
||||
|
||||
export HHSRC=/home/dvorka/p/hstr/github/hstr
|
||||
export HHRELEASEDIR=/home/dvorka/p/hstr/launchpad
|
||||
export HSTRSRC=/home/dvorka/p/hstr/github/hstr
|
||||
export HSTRRELEASEDIR=/home/dvorka/p/hstr/launchpad
|
||||
export SCRIPTHOME=`pwd`
|
||||
|
||||
# ############################################################################
|
||||
# # Checkout HSTR from bazaar and make it #
|
||||
# ############################################################################
|
||||
|
||||
function checkoutHh() {
|
||||
function checkoutHstr() {
|
||||
echo "Checking out HSTR from Bazaar to `pwd`"
|
||||
bzr checkout lp:~ultradvorka/+junk/hh-package
|
||||
cd hh-package && mv -v .bzr .. && rm -rvf *.* && mv -v ../.bzr .
|
||||
cp -rvf ${HHSRC}/* ${HHSRC}/*.* .
|
||||
# Create new branch hstr-package: bzr init && bzr push lp:~ultradvorka/+junk/hstr-package
|
||||
bzr checkout lp:~ultradvorka/+junk/hstr-package
|
||||
cd hstr-package && mv -v .bzr .. && rm -rvf *.* && mv -v ../.bzr .
|
||||
cp -rvf ${HSTRSRC}/* ${HSTRSRC}/*.* .
|
||||
cd ..
|
||||
|
||||
echo "Preparing *configure using Autotools"
|
||||
mv -v hh-package hstr
|
||||
mv -v hstr-package hstr
|
||||
cd ./hstr/build/tarball && ./tarball-automake.sh --purge && cd ../../..
|
||||
}
|
||||
|
||||
|
@ -56,9 +57,9 @@ function checkoutHh() {
|
|||
function createChangelog() {
|
||||
export MYTS=`date "+%a, %d %b %Y %H:%M:%S"`
|
||||
echo "Changelog timestamp: ${MYTS}"
|
||||
echo -e "hh (${HHFULLVERSION}) ${UBUNTUVERSION}; urgency=low" > $1
|
||||
echo -e "hstr (${HSTRFULLVERSION}) ${UBUNTUVERSION}; urgency=low" > $1
|
||||
echo -e "\n" >> $1
|
||||
echo -e " * ${HHBZRMSG}" >> $1
|
||||
echo -e " * ${HSTRBZRMSG}" >> $1
|
||||
echo -e "\n" >> $1
|
||||
echo -e " -- Martin Dvorak (Dvorka) <martin.dvorak@mindforger.com> ${MYTS} +0100" >> $1
|
||||
echo -e "\n" >> $1
|
||||
|
@ -71,11 +72,11 @@ function createChangelog() {
|
|||
function createTarArchive() {
|
||||
cd ..
|
||||
mkdir work && cd work
|
||||
cp -vrf ../${HH} .
|
||||
rm -rvf ${HH}/.bzr
|
||||
tar zcf ../${HH}.tgz ${HH}
|
||||
cp -vf ../${HH}.tgz ../${HH}.orig.tar.gz
|
||||
cd ../${HH}
|
||||
cp -vrf ../${HSTR} .
|
||||
rm -rvf ${HSTR}/.bzr
|
||||
tar zcf ../${HSTR}.tgz ${HSTR}
|
||||
cp -vf ../${HSTR}.tgz ../${HSTR}.orig.tar.gz
|
||||
cd ../${HSTR}
|
||||
rm -vrf ../work
|
||||
}
|
||||
|
||||
|
@ -85,26 +86,26 @@ function createTarArchive() {
|
|||
|
||||
function releaseForParticularUbuntuVersion() {
|
||||
export UBUNTUVERSION=${1}
|
||||
export HHVERSION=${2}
|
||||
export HHBZRMSG=${3}
|
||||
export HSTRVERSION=${2}
|
||||
export HSTRBZRMSG=${3}
|
||||
|
||||
export HHFULLVERSION=${HHVERSION}-0ubuntu1
|
||||
export HH=hh_${HHVERSION}
|
||||
export HHRELEASE=hh_${HHFULLVERSION}
|
||||
export HSTRFULLVERSION=${HSTRVERSION}-0ubuntu1
|
||||
export HSTR=hstr_${HSTRVERSION}
|
||||
export HSTRRELEASE=hstr_${HSTRFULLVERSION}
|
||||
export NOW=`date +%Y-%m-%d--%H-%M-%S`
|
||||
export HHBUILD=hstr-${NOW}
|
||||
export HSTRBUILD=hstr-${NOW}
|
||||
|
||||
# checkout HSTR from Bazaar and prepare *configure using Autotools
|
||||
mkdir ${HHBUILD} && cd ${HHBUILD}
|
||||
checkoutHh `pwd`
|
||||
mkdir ${HSTRBUILD} && cd ${HSTRBUILD}
|
||||
checkoutHstr `pwd`
|
||||
|
||||
# commit changes to Bazaar
|
||||
cd hstr
|
||||
cp -rvf ${HHSRC}/build/ubuntu/debian .
|
||||
cp -rvf ${HSTRSRC}/build/ubuntu/debian .
|
||||
createChangelog ./debian/changelog
|
||||
cd .. && mv hstr ${HH} && cd ${HH}
|
||||
cd .. && mv hstr ${HSTR} && cd ${HSTR}
|
||||
bzr add .
|
||||
bzr commit -m "Update for ${HH} at ${NOW}."
|
||||
bzr commit -m "Update for ${HSTR} at ${NOW}."
|
||||
|
||||
# create Tar archive
|
||||
createTarArchive
|
||||
|
@ -125,24 +126,24 @@ function releaseForParticularUbuntuVersion() {
|
|||
cd ../build-area
|
||||
|
||||
# build binary from source deb on CLEAN system - no deps installed
|
||||
echo -e "\n_ hh pbuilder-dist build _______________________________________________\n"
|
||||
echo -e "\n_ hstr pbuilder-dist build _______________________________________________\n"
|
||||
# BEGIN: bug workaround - pbuilder's caches in /var and /home must be on same physical drive
|
||||
export PBUILDFOLDER=/tmp/hh-tmp
|
||||
export PBUILDFOLDER=/tmp/hstr-tmp
|
||||
rm -rvf ${PBUILDFOLDER}
|
||||
mkdir -p ${PBUILDFOLDER}
|
||||
cp -rvf ~/pbuilder/*.tgz ${PBUILDFOLDER}
|
||||
# END
|
||||
pbuilder-dist ${UBUNTUVERSION} build ${HHRELEASE}.dsc
|
||||
pbuilder-dist ${UBUNTUVERSION} build ${HSTRRELEASE}.dsc
|
||||
|
||||
# push .deb to Launchpad
|
||||
cd ../${HH}
|
||||
cd ../${HSTR}
|
||||
# push Bazaar changes and upload .deb to Launchpad
|
||||
echo "Before bzr push: " `pwd`
|
||||
bzr push lp:~ultradvorka/+junk/hh-package
|
||||
bzr push lp:~ultradvorka/+junk/hstr-package
|
||||
cd ..
|
||||
echo "Before dput push: " `pwd`
|
||||
# recently added /ppa to fix the path and package rejections
|
||||
dput ppa:ultradvorka/ppa ${HHRELEASE}_source.changes
|
||||
dput ppa:ultradvorka/ppa ${HSTRRELEASE}_source.changes
|
||||
}
|
||||
|
||||
# ############################################################################
|
||||
|
@ -156,9 +157,9 @@ then
|
|||
echo "This script must NOT be run from Git repository - run it e.g. from ~/p/hstr/launchpad instead"
|
||||
exit 1
|
||||
fi
|
||||
if [ ! -e "${HHRELEASEDIR}" ]
|
||||
if [ ! -e "${HSTRRELEASEDIR}" ]
|
||||
then
|
||||
echo "ERROR: release directory must exist: ${HHRELEASEDIR}"
|
||||
echo "ERROR: release directory must exist: ${HSTRRELEASEDIR}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
export HH_CONFIG=hicolor
|
||||
export HSTR_CONFIG=hicolor
|
||||
export HISTFILE=`pwd`/resources/.bash_history_BUG_228
|
||||
|
||||
# Choose regexp search and search for echo.\+
|
||||
|
|
Loading…
Reference in a new issue