move commonly used scripts to specific folders (#325)

* move commonly used scripts to specific folders

* fixes

* Update test.sh

* Update test.sh

* Fix file permission
This commit is contained in:
ManDude 2021-03-18 20:43:37 +00:00 committed by GitHub
parent 4262145c99
commit 8e1c147ad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 26 additions and 22 deletions

View file

@ -1,8 +0,0 @@
@echo off
:: The caret ^ acts as a line break but does not make the next line a different command.
out\build\Release\bin\decompiler decompiler\config\jak1_ntsc_black_label.jsonc iso_data\jak1 ^
decompiler_out\jak1
:: The pause command makes the batch operation halt with a "Press any key to continue..." message.
:: Useful for example if the decompiler failed and exited for whatever reason, or for verifying its
:: success.
pause

View file

@ -1,6 +0,0 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/decompiler/decompiler $DIR/decompiler/config/jak1_ntsc_black_label.jsonc $DIR/iso_data $DIR/decompiler_out

View file

@ -2616,15 +2616,15 @@
(define-extern cpad-set-buzz! (function cpad-info int int int none)) (define-extern cpad-set-buzz! (function cpad-info int int int none))
(define-extern *cpad-debug* symbol) ;; unknown type (define-extern *cpad-debug* symbol)
(define-extern analog-input (function int float float float float float)) (define-extern analog-input (function int float float float float float))
(define-extern buzz-stop! (function int none)) (define-extern buzz-stop! (function int none))
;;(define-extern cpad-info object) ;; unknown type ;;(define-extern cpad-info object) ;; unknown type
;;(define-extern hw-cpad object) ;; unknown type ;;(define-extern hw-cpad object) ;; unknown type
(define-extern cpad-invalid! (function cpad-info cpad-info)) (define-extern cpad-invalid! (function cpad-info cpad-info))
;;(define-extern cpad-list object) ;; unknown type ;;(define-extern cpad-list object) ;; unknown type
;;(define-extern *cheat-mode* object) ;; unknown type (define-extern *cheat-mode* symbol) ;; bool
(define-extern *cpad-list* cpad-list) ;; unknown type (define-extern *cpad-list* cpad-list)
(define-extern service-cpads (function cpad-list)) (define-extern service-cpads (function cpad-list))
;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~; ;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~;

View file

@ -462,6 +462,10 @@
"service-cpads":{ "service-cpads":{
"vars":{"gp-0":"pad-list", "s5-0":"pad-idx", "s4-0":"pad", "s3-0":"buzz-idx", "v1-29":"current-button0"} "vars":{"gp-0":"pad-list", "s5-0":"pad-idx", "s4-0":"pad", "s3-0":"buzz-idx", "v1-29":"current-button0"}
}, },
"buzz-stop!":{
"args":["idx"]
},
"default-buffer-init":{ "default-buffer-init":{
"args":["buff"], "args":["buff"],

View file

@ -0,0 +1,4 @@
@echo off
cd ..\..
out\build\Release\bin\decompiler decompiler\config\jak1_ntsc_black_label.jsonc iso_data\jak1 decompiler_out\jak1
pause

View file

@ -1,2 +1,3 @@
@echo off @echo off
cd ..\..
out\build\Release\bin\goalc -v out\build\Release\bin\goalc -v

View file

@ -1,2 +1,3 @@
@echo off @echo off
cd ..\..
out\build\Release\bin\gk -fakeiso -debug -v out\build\Release\bin\gk -fakeiso -debug -v

View file

@ -1,3 +1,4 @@
@echo off @echo off
cd ..\..
out\build\Release\bin\goalc-test out\build\Release\bin\goalc-test
pause pause

2
boot_game.sh → scripts/shell/boot_game.sh Executable file → Normal file
View file

@ -3,4 +3,4 @@
# Directory of this script # Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/game/gk -boot -fakeiso -debug "$@" "${DIR}"/../../build/game/gk -boot -fakeiso -debug "$@"

2
boot_kernel.sh → scripts/shell/boot_kernel.sh Executable file → Normal file
View file

@ -3,4 +3,4 @@
# Directory of this script # Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/game/gk -fakeiso -debug -nodisplay"$@" "${DIR}"/../../build/game/gk -fakeiso -debug -nodisplay"$@"

2
check.sh → scripts/shell/check.sh Executable file → Normal file
View file

@ -2,5 +2,5 @@
# Directory of this script # Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd ${DIR}/out cd "${DIR}"/../../out
md5sum --check hash.md5 md5sum --check hash.md5

6
scripts/shell/decomp.sh Normal file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"${DIR}"/../../build/decompiler/decompiler "${DIR}"/../../decompiler/config/jak1_ntsc_black_label.jsonc "${DIR}"/../../iso_data "${DIR}"/../../decompiler_out

2
gc.sh → scripts/shell/gc.sh Executable file → Normal file
View file

@ -3,4 +3,4 @@
# Directory of this script # Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/goalc/goalc "$@" "${DIR}"/../../build/goalc/goalc "$@"

2
gk.sh → scripts/shell/gk.sh Executable file → Normal file
View file

@ -3,4 +3,4 @@
# Directory of this script # Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
$DIR/build/game/gk -fakeiso -debug -nokernel -nodisplay "$@" "${DIR}"/../../build/game/gk -fakeiso -debug -nokernel -nodisplay "$@"

View file

@ -8,6 +8,7 @@ echo "======================================="
echo "" echo ""
echo " ================= Cloning..." echo " ================= Cloning..."
cd ../..
ISO_DATA_PATH=${1} ISO_DATA_PATH=${1}
BRANCH_NAME=${2:-master} BRANCH_NAME=${2:-master}
# Provide a default location to bind the ISO_DATA_PATH # Provide a default location to bind the ISO_DATA_PATH