From 120d168a626231d4a52d4570ff3720e02fe1c7f2 Mon Sep 17 00:00:00 2001 From: loki Date: Thu, 30 Jan 2020 14:36:45 +0100 Subject: [PATCH] Add check to make sure gen-deb.in is not run directly --- gen-deb.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gen-deb.in b/gen-deb.in index a31bed40..58ab144e 100755 --- a/gen-deb.in +++ b/gen-deb.in @@ -1,5 +1,10 @@ #!/bin/sh +if [ ! "@SUNSHINE_UNDEFINED_VARIABLE@" = "" ]; then + echo "Please run gen-deb generated by cmake inside the build directory" + exit 1 +fi + if [ -d package-deb ]; then echo "package-deb already exists: It will be replaced" rm -rf package-deb @@ -30,7 +35,7 @@ Package: sunshine Architecture: amd64 Maintainer: @loki Priority: optional -Version: 0.1.0 +Version: 0.1.1 Depends: libssl | libavdevice | libboost-thread (>= 1.67) | libboost-filesystem (>= 1.67) | libboost-log (>= 1.67) | libpulse | libopus | libxtst | libx11 | libxfixes | libevdev | libxcb1 | libxcb-shm0 | libxcb-xfixes0 Description: Gamestream host for Moonlight EOF