setup new build script

This commit is contained in:
Allen Webster
2021-08-20 23:45:00 -07:00
parent 5ebb2fbfd9
commit 500c310bcc
11 changed files with 563 additions and 1 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
##### Declare The Local File Names ############################################
local_file_names=(
compiler.sh
compile_mode.sh
ctx.sh
linker.sh
)
###### Get Paths ##############################################################
og_path=$PWD
cd "$(dirname "$0")"
cd ..
root_path=$PWD
bin_path="$root_path/bin"
local_path="$root_path/local"
defs_path="$bin_path/local_defaults"
###### Copy Path ##############################################################
rm -rf $local_path
mkdir -p $local_path
for ((i=0; i<${#local_file_names[@]}; i+=1)); do
file_name=${local_file_names[i]}
cp $defs_path/default_$file_name $local_path/$file_name
done
###### Restore Path ###########################################################
cd $og_path