Files
asix-deb/build-package.sh
clfreville2 fd3ab10e5b Fix SIGTERM signal handling
asix uses the SIGTERM signal to rerun the simulation. Since SDL2
registers a signal handler, killing the old simulation does not have any
effect. The usual way to deal with that is to poll SDL events, but since
SDL is only used for audio here, a single line change does the job.
2023-05-14 17:46:58 +02:00

25 lines
386 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
declare -r VERSION='0.1.4-2'
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