Official SlunkCrypt repository
Revision | 25a5a92b47dc72618ed8d55f6cbabec52c397ee0 (tree) |
---|---|
Time | 2022-12-18 22:36:13 |
Author | ![]() |
Commiter | LoRd_MuldeR |
Small improvement in Linux build script.
@@ -0,0 +1,28 @@ | ||
1 | +#!/bin/bash | |
2 | +set -e | |
3 | +cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../../.." | |
4 | + | |
5 | +function mk_slunk() { | |
6 | + local command="make -B CC=${2}-gcc STRIP=1 FLTO=1" | |
7 | + $BASH -x -c "${command}${3:+ ${3}}" | |
8 | + cp -vf "frontend/bin/slunkcrypt" "out/slunkcrypt-${1}" | |
9 | +} | |
10 | + | |
11 | +if [[ "$OSTYPE" != "linux"* ]]; then | |
12 | + echo "This script is supposed to run on the linux platform !!!" | |
13 | + exit 1 | |
14 | +fi | |
15 | + | |
16 | +rm -rf "out" && mkdir -p "out" | |
17 | + | |
18 | +$BASH -x -c "make clean" | |
19 | + | |
20 | +mk_slunk "x86_64" "x86_64-linux-gnu" "MARCH=x86-64 MTUNE=nocona" | |
21 | +mk_slunk "i686" "i686-linux-gnu" "MARCH=pentiumpro MTUNE=pentium3" | |
22 | +mk_slunk "armel" "arm-linux-gnueabi" | |
23 | +mk_slunk "armhf" "arm-linux-gnueabihf" | |
24 | +mk_slunk "arm64" "aarch64-linux-gnu" | |
25 | +mk_slunk "mipsel" "mipsel-linux-gnu" | |
26 | +mk_slunk "mips64el" "mips64el-linux-gnuabi64" | |
27 | + | |
28 | +printf "\033[1;32m\nBuild completed successfully.\033[0m\n\n" |
@@ -1,7 +1,7 @@ | ||
1 | 1 | #!/bin/bash |
2 | 2 | # See "etc/utils/linux/mk-musl.sh" in order to build musl libc! |
3 | 3 | set -e |
4 | -cd -- "$(dirname -- "${BASH_SOURCE[0]}")" | |
4 | +cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../../.." | |
5 | 5 | |
6 | 6 | function mk_slunk() { |
7 | 7 | local command="make -B CC=/usr/local/musl/${1}/bin/musl-gcc STATIC=1 STRIP=1 FLTO=1" |
@@ -9,7 +9,7 @@ function mk_slunk() { | ||
9 | 9 | cp -vf "frontend/bin/slunkcrypt" "out/slunkcrypt-${1}" |
10 | 10 | } |
11 | 11 | |
12 | -if [[ "$OSTYPE" != "linux-gnu"* ]]; then | |
12 | +if [[ "$OSTYPE" != "linux"* ]]; then | |
13 | 13 | echo "This script is supposed to run on the linux platform !!!" |
14 | 14 | exit 1 |
15 | 15 | fi |