From 65d4126c7d654a865d02f9235a2a0e5d69e329e0 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 14 Mar 2024 14:37:51 +0100 Subject: [PATCH] build: extract bootscript/build scripts to common dir --- AbstractFactory/bootstrap.sh | 5 +---- AbstractFactory/build.sh | 4 +--- Builder/bootstrap.sh | 5 +---- Builder/build.sh | 4 +--- Singleton/bootstrap.sh | 5 +---- Singleton/build.sh | 4 +--- scripts/bootstrap.sh | 4 ++++ scripts/build.sh | 3 +++ 8 files changed, 13 insertions(+), 21 deletions(-) mode change 100755 => 120000 AbstractFactory/bootstrap.sh mode change 100755 => 120000 AbstractFactory/build.sh mode change 100755 => 120000 Builder/bootstrap.sh mode change 100755 => 120000 Builder/build.sh mode change 100755 => 120000 Singleton/bootstrap.sh mode change 100755 => 120000 Singleton/build.sh create mode 100755 scripts/bootstrap.sh create mode 100755 scripts/build.sh diff --git a/AbstractFactory/bootstrap.sh b/AbstractFactory/bootstrap.sh deleted file mode 100755 index 98b48ad..0000000 --- a/AbstractFactory/bootstrap.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -ln -s .build/compile_commands.json diff --git a/AbstractFactory/bootstrap.sh b/AbstractFactory/bootstrap.sh new file mode 120000 index 0000000..796ed13 --- /dev/null +++ b/AbstractFactory/bootstrap.sh @@ -0,0 +1 @@ +../scripts/bootstrap.sh \ No newline at end of file diff --git a/AbstractFactory/build.sh b/AbstractFactory/build.sh deleted file mode 100755 index d26a5a3..0000000 --- a/AbstractFactory/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -cmake --build .build diff --git a/AbstractFactory/build.sh b/AbstractFactory/build.sh new file mode 120000 index 0000000..0eff50d --- /dev/null +++ b/AbstractFactory/build.sh @@ -0,0 +1 @@ +../scripts/build.sh \ No newline at end of file diff --git a/Builder/bootstrap.sh b/Builder/bootstrap.sh deleted file mode 100755 index 98b48ad..0000000 --- a/Builder/bootstrap.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -ln -s .build/compile_commands.json diff --git a/Builder/bootstrap.sh b/Builder/bootstrap.sh new file mode 120000 index 0000000..796ed13 --- /dev/null +++ b/Builder/bootstrap.sh @@ -0,0 +1 @@ +../scripts/bootstrap.sh \ No newline at end of file diff --git a/Builder/build.sh b/Builder/build.sh deleted file mode 100755 index d26a5a3..0000000 --- a/Builder/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -cmake --build .build diff --git a/Builder/build.sh b/Builder/build.sh new file mode 120000 index 0000000..0eff50d --- /dev/null +++ b/Builder/build.sh @@ -0,0 +1 @@ +../scripts/build.sh \ No newline at end of file diff --git a/Singleton/bootstrap.sh b/Singleton/bootstrap.sh deleted file mode 100755 index 98b48ad..0000000 --- a/Singleton/bootstrap.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh - -cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -ln -s .build/compile_commands.json diff --git a/Singleton/bootstrap.sh b/Singleton/bootstrap.sh new file mode 120000 index 0000000..796ed13 --- /dev/null +++ b/Singleton/bootstrap.sh @@ -0,0 +1 @@ +../scripts/bootstrap.sh \ No newline at end of file diff --git a/Singleton/build.sh b/Singleton/build.sh deleted file mode 100755 index d26a5a3..0000000 --- a/Singleton/build.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env sh - -cmake --build .build diff --git a/Singleton/build.sh b/Singleton/build.sh new file mode 120000 index 0000000..0eff50d --- /dev/null +++ b/Singleton/build.sh @@ -0,0 +1 @@ +../scripts/build.sh \ No newline at end of file diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh new file mode 100755 index 0000000..dd791a8 --- /dev/null +++ b/scripts/bootstrap.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +cmake -S . -B .build -G Ninja -D CMAKE_EXPORT_COMPILE_COMMANDS=ON +ln --symbolic --force .build/compile_commands.json diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..d26a5a3 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +cmake --build .build