From a03cb7c692d21b0eda5ddd6c3b8efd1ac254e690 Mon Sep 17 00:00:00 2001 From: Martin Dvorak Date: Thu, 26 Dec 2013 01:05:38 +0100 Subject: [PATCH] release/ > dist/ --- dist/clean.sh | 12 ++++++++++++ dist/deb-build.sh | 10 ++++++++++ dist/deb-push.sh | 7 +++++++ dist/deb.sh | 18 ++++++++++++++++++ dist/dist.sh | 17 +++++++++++++++++ dist/man.sh | 5 +++++ dist/ppa-add.sh | 6 ++++++ 7 files changed, 75 insertions(+) create mode 100755 dist/clean.sh create mode 100755 dist/deb-build.sh create mode 100755 dist/deb-push.sh create mode 100755 dist/deb.sh create mode 100755 dist/dist.sh create mode 100755 dist/man.sh create mode 100755 dist/ppa-add.sh diff --git a/dist/clean.sh b/dist/clean.sh new file mode 100755 index 0000000..3002dfa --- /dev/null +++ b/dist/clean.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +rm -vrf ../.git ../.settings ../Debug ../Release ../.cproject ../.project ../.gitignore + +rm -vf *.*~ ../*.*~ ../src/*.*~ +rm -rvf ../atom5te.cache +rm -vf ../man/Makefile ../man/Makefile.in +rm -vf ../src/Makefile ../src/Makefile.in ../src/hh ../src/*.o +rm -rvf ../src/.deps +rm -vf ../Makefile ../Makefile.in ../aclocal.m4 ../config.log ../config.status ../configure ../depcomp ../install-sh ../missing + +# eof \ No newline at end of file diff --git a/dist/deb-build.sh b/dist/deb-build.sh new file mode 100755 index 0000000..5b3e234 --- /dev/null +++ b/dist/deb-build.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +rm -vf *.*~ + +cd .. +bzr commit -m "Sync." +bzr builddeb -- -us -uc +bzr builddeb -S && cd ../build-area && pbuilder-dist raring build hh_0.7-0ubuntu1.dsc + +# eof diff --git a/dist/deb-push.sh b/dist/deb-push.sh new file mode 100755 index 0000000..b8ee84b --- /dev/null +++ b/dist/deb-push.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +cd ../.. +bzr push lp:~ultradvorka/+junk/hh-package +dput ppa:ultradvorka hh_0.7-1ubuntu2_source.changes + +# eof \ No newline at end of file diff --git a/dist/deb.sh b/dist/deb.sh new file mode 100755 index 0000000..5aa5df0 --- /dev/null +++ b/dist/deb.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# copy hstr/ source code to a work directory and run this script to create DEB package +mv -vf ../debian ../.. +./dist.sh +cd ../.. +mv hstr hh-0.7 +tar zcf hh-0.7.tgz hh-0.7 +bzr dh-make hh 0.7 hh-0.7.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 hh_0.7-0ubuntu1.dsc + +# eof diff --git a/dist/dist.sh b/dist/dist.sh new file mode 100755 index 0000000..101b926 --- /dev/null +++ b/dist/dist.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +./clean.sh + +cd .. +aclocal +automake --force-missing --add-missing +autoconf + +rm -vf depcomp install-sh missing +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 . + +cd bin + +# eof \ No newline at end of file diff --git a/dist/man.sh b/dist/man.sh new file mode 100755 index 0000000..a60dfa5 --- /dev/null +++ b/dist/man.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +cd ../man && groff -man -Tascii hh.1 + +# eof \ No newline at end of file diff --git a/dist/ppa-add.sh b/dist/ppa-add.sh new file mode 100755 index 0000000..2773667 --- /dev/null +++ b/dist/ppa-add.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +sudo add-apt-repository ppa:ultradvorka/ppa +sudo apt-get update + +# eof \ No newline at end of file