diff options
Diffstat (limited to 'meson/manual tests/4 standalone binaries/build_linux_package.sh')
-rwxr-xr-x | meson/manual tests/4 standalone binaries/build_linux_package.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meson/manual tests/4 standalone binaries/build_linux_package.sh b/meson/manual tests/4 standalone binaries/build_linux_package.sh new file mode 100755 index 000000000..783981ef5 --- /dev/null +++ b/meson/manual tests/4 standalone binaries/build_linux_package.sh @@ -0,0 +1,12 @@ +#!/bin/sh -eu + +curdir=`pwd` +rm -rf buildtmp +mkdir buildtmp +LDFLAGS=-static-libstdc++ ~/meson/meson.py buildtmp --buildtype=release --prefix=/tmp/myapp --libdir=lib --strip +ninja -C buildtmp install +rm -rf buildtmp +cd /tmp/ +tar czf myapp.tar.gz myapp +mv myapp.tar.gz "$curdir" +rm -rf myapp |