mirror of
https://github.com/dvorka/hstr.git
synced 2025-09-08 13:34:19 +08:00
Adding snap to documentation and improving build scripts.
This commit is contained in:
parent
575fe6e9d5
commit
de2c612bb8
4 changed files with 27 additions and 2 deletions
|
@ -16,6 +16,7 @@ Install:
|
||||||
Build:
|
Build:
|
||||||
|
|
||||||
* [build on any Linux distro](#build-on-any-linux-distro)
|
* [build on any Linux distro](#build-on-any-linux-distro)
|
||||||
|
* [build snap](#snap)
|
||||||
* [build on Ubuntu](#build-on-ubuntu)
|
* [build on Ubuntu](#build-on-ubuntu)
|
||||||
* [build on Debian](#build-on-debian)
|
* [build on Debian](#build-on-debian)
|
||||||
* [build on Fedora](#build-on-fedora)
|
* [build on Fedora](#build-on-fedora)
|
||||||
|
@ -196,6 +197,29 @@ hh
|
||||||
|
|
||||||
Optionally [configure](CONFIGURATION.md) `hh` and check its [man page](README.md#documentation).
|
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
|
## Build on Ubuntu
|
||||||
To build `hh` on Ubuntu clone Git repository:
|
To build `hh` on Ubuntu clone Git repository:
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ Install:
|
||||||
Build:
|
Build:
|
||||||
|
|
||||||
* [build on any Linux distro](INSTALLATION.md#build-on-any-linux-distro)
|
* [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 Ubuntu](INSTALLATION.md#build-on-ubuntu)
|
||||||
* [build on Debian](INSTALLATION.md#build-on-debian)
|
* [build on Debian](INSTALLATION.md#build-on-debian)
|
||||||
* [build on Fedora](INSTALLATION.md#build-on-fedora)
|
* [build on Fedora](INSTALLATION.md#build-on-fedora)
|
||||||
|
|
|
@ -94,7 +94,7 @@ function buildDebPackage() {
|
||||||
|
|
||||||
# 1.2) prune HSTR project source: tests, *.o/... build files, ...
|
# 1.2) prune HSTR project source: tests, *.o/... build files, ...
|
||||||
echo -e "\n# HSTR project cleanup ########################################"
|
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
|
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
|
# 1.4) create tar archive
|
||||||
|
|
|
@ -24,7 +24,7 @@ function tarballClean() {
|
||||||
if [ "${1}" = "--purge" ]
|
if [ "${1}" = "--purge" ]
|
||||||
then
|
then
|
||||||
# development files
|
# 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
|
rm -vf .travis.yml pad.xml _config.yml
|
||||||
fi
|
fi
|
||||||
# garbage
|
# garbage
|
||||||
|
|
Loading…
Add table
Reference in a new issue