Update build script
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -1,5 +1,2 @@
|
|||||||
.debhelper
|
.debhelper
|
||||||
|
/asix*
|
||||||
examples
|
|
||||||
lib
|
|
||||||
src
|
|
||||||
|
12
README.md
12
README.md
@@ -1,12 +1,11 @@
|
|||||||
Maintainer
|
Maintainer
|
||||||
----------
|
----------
|
||||||
|
|
||||||
Download asix in the parent directory.
|
To build the package, download the asix sources in the root directory of this repository, and rename the file.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
mv asix.tgz asix-0.1.4.orig.tar.gz
|
mv asix.tgz asix_0.1.4.orig.tar.gz
|
||||||
cd asix-deb
|
./build-package.sh
|
||||||
debuild -us -uc
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Compile against another distribution
|
Compile against another distribution
|
||||||
@@ -14,6 +13,7 @@ Compile against another distribution
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
mk-sbuild --arch=amd64 --name=bionic bionic
|
mk-sbuild --arch=amd64 --name=bionic bionic
|
||||||
debuild -S
|
./build-package.sh setup
|
||||||
sbuild -A -d bionic-amd64 ../asix_0.1.4-1.dsc
|
cd asix
|
||||||
|
sbuild -d bionic-amd64
|
||||||
```
|
```
|
||||||
|
24
build-package.sh
Executable file
24
build-package.sh
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
declare -r VERSION='0.1.4-1'
|
||||||
|
declare -r ORIG_VERSION='0.1.4'
|
||||||
|
declare -r ORIG_FILE="asix_$ORIG_VERSION.orig.tar.gz"
|
||||||
|
|
||||||
|
if [[ ! -r $ORIG_FILE ]]; then
|
||||||
|
echo "Cannot source file $ORIG_FILE!" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf asix
|
||||||
|
tar xf $ORIG_FILE
|
||||||
|
cp -r debian asix/debian
|
||||||
|
cd asix
|
||||||
|
|
||||||
|
if [[ $# -eq 0 ]]; then
|
||||||
|
debuild -us -uc
|
||||||
|
else
|
||||||
|
echo 'Created working directory'
|
||||||
|
fi
|
||||||
|
|
Reference in New Issue
Block a user