Adding snap to documentation and improving build scripts.

This commit is contained in:
Martin Dvorak 2018-08-13 00:09:10 +02:00
parent 575fe6e9d5
commit de2c612bb8
4 changed files with 27 additions and 2 deletions

View file

@ -16,6 +16,7 @@ Install:
Build:
* [build on any Linux distro](#build-on-any-linux-distro)
* [build snap](#snap)
* [build on Ubuntu](#build-on-ubuntu)
* [build on Debian](#build-on-debian)
* [build on Fedora](#build-on-fedora)
@ -196,6 +197,29 @@ hh
Optionally [configure](CONFIGURATION.md) `hh` and check its [man page](README.md#documentation).
## Build snap
To build [snap](https://snapcraft.io/) for 'hh' first clone Git repository:
```bash
git clone https://github.com/dvorka/hstr.git
```
Make sure that you can build HSTR from source code
as described in a "Build on ..." section for your
distribution.
Install [snapcraft](https://snapcraft.io/) and build
snap by running snapcraft in the root of Git repository:
```
$ ls ./snap
snapcraft.yaml
$ snapcraft
...
```
Find `hh_0+git..._amd64.snap` in the current directory.
## Build on Ubuntu
To build `hh` on Ubuntu clone Git repository:

View file

@ -47,6 +47,7 @@ Install:
Build:
* [build on any Linux distro](INSTALLATION.md#build-on-any-linux-distro)
* [build snap](INSTALLATION.md#snap)
* [build on Ubuntu](INSTALLATION.md#build-on-ubuntu)
* [build on Debian](INSTALLATION.md#build-on-debian)
* [build on Fedora](INSTALLATION.md#build-on-fedora)

View file

@ -94,7 +94,7 @@ function buildDebPackage() {
# 1.2) prune HSTR project source: tests, *.o/... build files, ...
echo -e "\n# HSTR project cleanup ########################################"
rm -vrf ./.git ./hstr ./build ./test ./hstr.pro ./doc ./pad.xml
rm -vrf ./.git ./hstr ./build ./test ./hstr.pro ./doc ./pad.xml ./snap
find . -type f \( -name "*.a" -or -name "*.o" -or -name "*.*~" -or -name ".gitignore" -or -name ".git" \) | while read F; do rm -vf $F; done
# 1.4) create tar archive

View file

@ -24,7 +24,7 @@ function tarballClean() {
if [ "${1}" = "--purge" ]
then
# development files
rm -vrf build .git .gitignore .settings Debug Release .cproject .project hstr.pro hstr.pro.user
rm -vrf build .git .gitignore .settings Debug Release .cproject .project hstr.pro hstr.pro.user snap
rm -vf .travis.yml pad.xml _config.yml
fi
# garbage