From a1b1b0a4aa53997fa593eb979ec5f4d36af929e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C5=BD=C3=A1k?= Date: Tue, 18 Mar 2014 12:57:52 +0100 Subject: [PATCH] Make build scripts optional if not present --- bin/compile | 3 ++- bin/detect | 9 ++++++++- bin/release | 5 ++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/bin/compile b/bin/compile index ec8e4d5..2f7aa7d 100755 --- a/bin/compile +++ b/bin/compile @@ -1,3 +1,4 @@ #!/bin/sh # Usage: bin/compile -exec "$1"/bin/compile "$@" + +exec "$1"/bin/compile "$@" \ No newline at end of file diff --git a/bin/detect b/bin/detect index 15d275a..0a38d69 100755 --- a/bin/detect +++ b/bin/detect @@ -1,3 +1,10 @@ #!/bin/sh # Usage: bin/detect -exec "$1"/bin/detect "$@" + +if [ -f "$1"/bin/detect ]; then + exec "$1"/bin/detect "$@" +elif [ -f "$1"/bin/compile ]; then + echo "Inline" +else + exit 1 +fi \ No newline at end of file diff --git a/bin/release b/bin/release index e31f35a..7bc83cc 100755 --- a/bin/release +++ b/bin/release @@ -1,3 +1,6 @@ #!/bin/sh # Usage: bin/release -exec "$1"/bin/release "$@" + +if [ -f "$1"/bin/release ]; then + exec "$1"/bin/release "$@" +fi \ No newline at end of file