Skip to content

Commit 91955ff

Browse files
jonjondevRaelr
authored andcommitted
Cleaned up naming and formatting across scripts
1 parent 0af85cd commit 91955ff

File tree

12 files changed

+140
-103
lines changed

12 files changed

+140
-103
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v2
2121

2222
- name: perform setup
23-
run: ./scripts/Setup.ps1
23+
run: ./scripts/setup.ps1
2424

2525
- name: build all targets
2626
run: mingw32-make

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ $ sudo apt install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi
8989
```
9090
```console
9191
// Windows
92-
> ./scripts/Setup.ps1
92+
> ./scripts/setup.ps1
9393
```
9494

9595
3. This should install all required dependencies. Once completed a `.env` file will be generated with all required variables. If the build is completed with no issue then you can proceed to build the project.
@@ -104,7 +104,7 @@ $ ./scripts/setup.sh --include-validation-layers
104104
```
105105
```console
106106
// Windows
107-
> ./scripts/Setup.ps1 -Include_Validation_Layers
107+
> ./scripts/setup.ps1 -Include_Validation_Layers
108108
```
109109

110110
**NOTE**: Building with this option can take some time to complete. Please be patient while the project builds the required validation layers.

make/Platform.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ ifeq ($(OS), Windows_NT)
1818
COPY = $(scriptsDir)/copy.bat $1 $2 $3
1919
COPY_DIR = $(scriptsDir)/copy.bat --copy-directory $1 $2
2020
VALIDATION_LAYERS_INSTALL_DIR := explicit_layer.d
21-
BUILD_FLAGS_SCRIPT = $(scriptsDir)/buildFlags.bat
22-
COMBINE_LIBS = powershell $(scriptsDir)/Combine-Libs.ps1 --src_libs $1 --src_objs $2 --output_dir $3 --output_name $4
21+
BUILD_FLAGS_SCRIPT = $(scriptsDir)/buildflags.bat
22+
COMBINE_LIBS = powershell $(scriptsDir)/combinelibs.ps1 --src_libs $1 --src_objs $2 --output_dir $3 --output_name $4
2323
else
24-
COMBINE_LIBS = $(scriptsDir)/combine-libs.sh --src_libs $1 --src_objs $2 --output_dir $3 --output_name $4
24+
COMBINE_LIBS = $(scriptsDir)/combinelibs.sh --src_libs $1 --src_objs $2 --output_dir $3 --output_name $4
2525
# Check for MacOS/Linux
2626
UNAMEOS := $(shell uname)
2727
ifeq ($(UNAMEOS), Linux)
@@ -45,5 +45,5 @@ else
4545
COPY = cp -r $1$(PATHSEP)$3 $2
4646
COPY_DIR = $(call COPY,$1,$2,$3)
4747
VALIDATION_LAYERS_INSTALL_DIR := lib/explicit_layer.d
48-
BUILD_FLAGS_SCRIPT = $(scriptsDir)/buildFlags.sh
48+
BUILD_FLAGS_SCRIPT = $(scriptsDir)/buildflags.sh
4949
endif

scripts/applyenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
2+
#
33
# Copyright (c) 2022 Jonathan Moallem (@J-Mo63) & Aryeh Zinn (@Raelr)
44
#
55
# This code is released under an unmodified zlib license.

scripts/buildFlags.bat renamed to scripts/buildflags.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ echo %CXXFLAGS% > %TARGET_FILE%
3434
EXIT /B %ERRORLEVEL%
3535

3636
:WriteError
37-
echo "Requires at least two arguments (e.g. buildFlags.bat <target_dir> <cxxflags> <dirs>)"
37+
echo "Requires at least two arguments (e.g. buildflags.bat <target_dir> <cxxflags> <dirs>)"
3838
EXIT /B 1
3939

4040
ENDLOCAL

scripts/buildFlags.sh renamed to scripts/buildflags.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#!/bin/bash
2-
2+
#
33
# Copyright (c) 2022 Jonathan Moallem (@J-Mo63) & Aryeh Zinn (@Raelr)
44
#
55
# This code is released under an unmodified zlib license.
66
# For conditions of distribution and use, please see:
77
# https://opensource.org/licenses/Zlib
88

99
if [ $# -lt 3 ]; then
10-
echo "Requires at least three arguments (e.g. buildFlags.sh <target_dir> <cxxflags> <dirs>)"
10+
echo "Requires at least three arguments (e.g. buildflags.sh <target_dir> <cxxflags> <dirs>)"
1111
exit 1
1212
fi
1313

scripts/Combine-Libs.ps1 renamed to scripts/combinelibs.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Copyright (c) 2022 Jonathan Moallem (@J-Mo63) & Aryeh Zinn (@Raelr)
2+
#
3+
# This code is released under an unmodified zlib license.
4+
# For conditions of distribution and use, please see:
5+
# https://opensource.org/licenses/Zlib
6+
17
[string[]] $targets = "*.obj", "*.o"
28

39
function Make-Dir {

scripts/combine-libs.sh renamed to scripts/combinelibs.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
#!/bin/bash
2+
#
3+
# Copyright (c) 2022 Jonathan Moallem (@J-Mo63) & Aryeh Zinn (@Raelr)
4+
#
5+
# This code is released under an unmodified zlib license.
6+
# For conditions of distribution and use, please see:
7+
# https://opensource.org/licenses/Zlib
28

39
LIBS=""; OBJS=""; OUTPUT_NAME=""; OUTPUT_DIR=""; CURRENT_ARG=""
410

scripts/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
2+
#
33
# Copyright (c) 2022 Jonathan Moallem (@J-Mo63) & Aryeh Zinn (@Raelr)
44
#
55
# This code is released under an unmodified zlib license.

scripts/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
2+
#
33
# Copyright (c) 2022 Jonathan Moallem (@J-Mo63) & Aryeh Zinn (@Raelr)
44
#
55
# This code is released under an unmodified zlib license.

0 commit comments

Comments
 (0)