From 6d35ca5508bf8300ed6f31da8b7a58737982bedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20De=C3=A1k?= Date: Mon, 20 Jul 2020 12:06:05 +1000 Subject: [PATCH] Work on build scripts. --- Documentation/buildLinux.txt | 37 ++++++++++++++++++++++++++++++++ Documentation/buildWindows.txt | 2 +- buildLinux.sh | 39 +--------------------------------- buildWindows.cmd | 5 +++++ 4 files changed, 44 insertions(+), 39 deletions(-) create mode 100644 Documentation/buildLinux.txt diff --git a/Documentation/buildLinux.txt b/Documentation/buildLinux.txt new file mode 100644 index 0000000..e4aa18a --- /dev/null +++ b/Documentation/buildLinux.txt @@ -0,0 +1,37 @@ +NAME + + buildLinux.sh - Build Linux Binaries for Synergy + +SYNOPSIS + + ./buildLinux.sh [OPTION] + +DESCRIPTION + + This is a utility script for building Synergy binaries and distribution packages. + The script will build the latest snapshot from the Synergy-Core submodule. + + -h, --help + + Display this help message. + + --cmake + + Build binaries only with CMake. + + --appimage + + Build an AppImage package. + + --deb + + Build a Debian package. + + --all + + Build all packages. + + --clean + + Clean the build and output locations." + diff --git a/Documentation/buildWindows.txt b/Documentation/buildWindows.txt index 3cb0a5a..748706f 100644 --- a/Documentation/buildWindows.txt +++ b/Documentation/buildWindows.txt @@ -11,7 +11,7 @@ DESCRIPTION This is a utility script for building Synergy binaries and distribution packages. The script will build the latest snapshot from the Synergy-Core submodule. - --help + -h, --help Display this help message. diff --git a/buildLinux.sh b/buildLinux.sh index 61548e5..cd7ed1b 100755 --- a/buildLinux.sh +++ b/buildLinux.sh @@ -120,44 +120,7 @@ buildClean() { if [ "${1}" = "--help" ] || [ "${1}" = "-h" ]; then - echo \ -"NAME - - ${0} - Build Linux Binaries for Synergy - -SYNOPSIS - - ${0} [OPTION] - -DESCRIPTION - - This is a utility script for building Synergy binaries and distribution packages. - The script will build the latest snapshot from the Synergy-Core submodule. - - -h, --help - - Display this help message. - - --cmake - - Build binaries only with CMake. - - --appimage - - Build an AppImage package. - - --deb - - Build a Debian package. - - --all - - Build all packages. - - --clean - - Clean the build and output locations." - + cat "${toplevelPath}\Documentation\buildLinux.txt" exit 0 elif [ "${1}" = "--cmake" ]; then diff --git a/buildWindows.cmd b/buildWindows.cmd index 0846241..3a0cfe7 100644 --- a/buildWindows.cmd +++ b/buildWindows.cmd @@ -47,6 +47,11 @@ if [%1] equ [--help] ( type "%toplevelPath%\Documentation\buildWindows.txt" exit 0 +) else if [%1] equ [-h] ( + + type "%toplevelPath%\Documentation\buildWindows.txt" + exit 0 + ) else if [%1] equ [--msbuild] ( call :configure