aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-08-12 15:49:36 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-08-12 15:49:36 +0200
commit2a38070d44ed01753c51067bbd7f007e4b74bd6b (patch)
tree56c0e3251801345eed11de8657438d3bad1eb4d6 /build
parentde9b93c702e771d4b8ca8c6dae6f33e25f383741 (diff)
downloadnissy-core-2a38070d44ed01753c51067bbd7f007e4b74bd6b.tar.gz
nissy-core-2a38070d44ed01753c51067bbd7f007e4b74bd6b.zip
Renamed UNIX build script to build.sh, added info to README.md related to windows build
Diffstat (limited to '')
-rwxr-xr-xbuild.sh (renamed from build)12
1 files changed, 6 insertions, 6 deletions
diff --git a/build b/build.sh
index cdf0c79..cad6947 100755
--- a/build
+++ b/build.sh
@@ -1,11 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Build system for nissy, run './build help' for info on how to use this. 3# Build system for nissy, run './build.sh help' for info on how to use this.
4 4
5# The variables below can be used to personalize the build system. For example, 5# The variables below can be used to personalize the build system. For example,
6# to compile with clang instead of the default cc one can use: 6# to compile with clang instead of the default cc one can use:
7# 7#
8# CC=clang ./build 8# CC=clang ./build.sh
9# 9#
10# Each variable also has a counterpart that starts with NISSY_BUILD_*. These 10# Each variable also has a counterpart that starts with NISSY_BUILD_*. These
11# other variables can be set, for example, in your shell configuration file 11# other variables can be set, for example, in your shell configuration file
@@ -20,7 +20,7 @@
20# If later the same user wants to build a debug version without sanitizers, 20# If later the same user wants to build a debug version without sanitizers,
21# they may use 21# they may use
22# 22#
23# SANITIZE="" ./build debug 23# SANITIZE="" ./build.sh debug
24# 24#
25# And the empty string value will take precedence. 25# And the empty string value will take precedence.
26 26
@@ -193,7 +193,7 @@ build_help() {
193 echo "" 193 echo ""
194 echo "The -d option activates debug mode (slower, used for testing)." 194 echo "The -d option activates debug mode (slower, used for testing)."
195 echo "Tests are automatically built in debug mode even without -d." 195 echo "Tests are automatically built in debug mode even without -d."
196 echo "For more on build configurations, see the comments in ./build" 196 echo "For more on build configurations, see the comments in ./build.sh"
197} 197}
198 198
199build_config() { 199build_config() {
@@ -287,7 +287,7 @@ build_cpp() {
287 validate_command "$CXX" 287 validate_command "$CXX"
288 if [ -z "$@" ]; then 288 if [ -z "$@" ]; then
289 echo "Please provide one or more valid C++ source files" 289 echo "Please provide one or more valid C++ source files"
290 echo "usage: ./build cpp FILES" 290 echo "usage: ./build.sh cpp FILES"
291 fi 291 fi
292 292
293 build_nissy || exit 1 293 build_nissy || exit 1
@@ -418,7 +418,7 @@ build_tool() {
418 418
419 if [ -z "$pattern" ]; then 419 if [ -z "$pattern" ]; then
420 echo "Please provide a valid PATTERN to select a tool" 420 echo "Please provide a valid PATTERN to select a tool"
421 echo "usage: ./build tool PATTERN" 421 echo "usage: ./build.sh tool PATTERN"
422 exit 1 422 exit 1
423 fi 423 fi
424 shift 424 shift

Generated with cgit - Back to sebastiano.tronto.net