Bash scripts to make modding a bit easier #556
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I included 5 files which 3 of them are bash files. Detailed instruction is at bash_openapoc_readme.txt. Right now those bash works only at the /data folder I will do further work to make them a bit better such as directory variable so you don't have to change its location.
build_mod.sh
A very simplistic bash, it calls first generate_crc.sh then it just calls a command to zip up the
$MODNAME
folder to$MODNAME_ZIP
without the .zip extension.generate_crc.sh
This one is a bit more complicated but all it does is looping through all the files inside
$MODNAME
then it calls acrc
program to generate the crc of it, then it does a (poorly) separation of the two values (crc filepath) then it filters the./
as it is not needed and finally it usesawk
to generate a checksums.xml filepretty_print.xml
This one is a bit more simpler, it relies on 2 variables
$INPUT_FOLDER
and$OUTPUT_FOLDER
bashalias.txt
This one is used by all 3 of those scripts, its main purpose is to hold some variables and aliases for easier editing. It provides at least 4-5 user variables which should be marked as such.
bash_openapoc_readme.txt
It provides a more detailed instruction how the scripts works as well providing information for others of what they need to do so that they can mod OpenApoc too.