From c12162201cc0f7f807727c345b52d95198dc8538 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Tue, 19 Mar 2024 21:59:53 +0300 Subject: [PATCH 1/6] Fix line endings. --- sh/.gitattributes | 1 + 1 file changed, 1 insertion(+) create mode 100644 sh/.gitattributes diff --git a/sh/.gitattributes b/sh/.gitattributes new file mode 100644 index 0000000..f7a4cb0 --- /dev/null +++ b/sh/.gitattributes @@ -0,0 +1 @@ +*.sh text eof=lf \ No newline at end of file From ebfc8a694615a8a6c9d35652279a9748ff43db3d Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Tue, 19 Mar 2024 22:01:13 +0300 Subject: [PATCH 2/6] Fix script once more. --- sh/quik_build_native.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/quik_build_native.sh b/sh/quik_build_native.sh index 3d70ba5..cff555e 100644 --- a/sh/quik_build_native.sh +++ b/sh/quik_build_native.sh @@ -34,7 +34,7 @@ for ARCH in $ARCHS; do # Build directory. BUILD=$DST/out/$ARCH # Cmake toolchain file. - TOOLCHAIN=$CMAKE_DIR/cmake/$ARCH.cmake + TOOLCHAIN=$CMAKE_DIR/$ARCH.cmake # Create directories. mkdir -p $PREFIX $BUILD From d9c98b5cdc37b2ba1855c8fa9ce0fac8266b0f89 Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Tue, 19 Mar 2024 22:57:10 +0300 Subject: [PATCH 3/6] Add execute bit to shell script. --- sh/quik_build_native.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 sh/quik_build_native.sh diff --git a/sh/quik_build_native.sh b/sh/quik_build_native.sh old mode 100644 new mode 100755 From e72ca603817b180bf356ba7de07a5502ab03009e Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Thu, 4 Apr 2024 23:15:05 +0300 Subject: [PATCH 4/6] Change build script to accept new option NOINSTALL. --- sh/quik_build_native.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sh/quik_build_native.sh b/sh/quik_build_native.sh index cff555e..ca6cf16 100755 --- a/sh/quik_build_native.sh +++ b/sh/quik_build_native.sh @@ -3,6 +3,7 @@ # $1 Source path of the project. # $2 Target architecture list. # DST is the destination directory. +# NOINSTALL = 1 to skip installing. SRC=$1 ARCHS=$2 @@ -50,5 +51,9 @@ for ARCH in $ARCHS; do # Build and install. ninja -C $BUILD all - ninja -C $BUILD install + + if [ ! $NOINSTALL ] + then + ninja -C $BUILD install + fi done From 146f1e0855808d2c08489189a1923e2a7b8516fa Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Thu, 4 Apr 2024 23:25:48 +0300 Subject: [PATCH 5/6] Move publish script to this repository. --- sh/publish.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 sh/publish.sh diff --git a/sh/publish.sh b/sh/publish.sh new file mode 100644 index 0000000..40d69d0 --- /dev/null +++ b/sh/publish.sh @@ -0,0 +1,18 @@ +#!/bin/bash +if [-z "$1"] +then + $1 = $(dirname "$0") +fi + +if [ -z "$QUIK_API_KEY" ] +then + echo "Please define QUIK_API_KEY" + exit 1 +fi + +cd $1 +dotnet nuget add source \ + -n QUIK -u themixedupstuff -p "$QUIK_API_KEY" \ + --store-password-in-clear-text \ + https://git.mixedup.dev/api/packages/QUIK/nuget/index.json +dotnet nuget push -s QUIK bin/*/*.nupkg From 91ffaca437e9f07072447b7f4cefbec71f50b9bc Mon Sep 17 00:00:00 2001 From: "H. Utku Maden" Date: Thu, 4 Apr 2024 23:30:33 +0300 Subject: [PATCH 6/6] Mark publish +x --- sh/publish.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 sh/publish.sh diff --git a/sh/publish.sh b/sh/publish.sh old mode 100644 new mode 100755