All checks were successful
Gajumaru Bytecode Tests / tests (push) Successful in -3m34s
Add Gitea tests Rename Remove oracle references Package for zx Reviewed-on: #235 Reviewed-by: dimitar.p.ivanov <dimitarivanov@qpq.swiss> Co-authored-by: Craig Everett <zxq9@zxq9.com> Co-committed-by: Craig Everett <zxq9@zxq9.com>
21 lines
615 B
Bash
Executable File
21 lines
615 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# This is a small pre-packaging source generation and include correction script that should be
|
|
# run before packaging this project for use with ZX/Zomp.
|
|
|
|
rm -rf _build
|
|
rm -f src/gmb_fate_opcodes.erl src/gmb_fate_ops.erl include/gmb_fate_opcodes.hrl src/gmb_fate_asm_scan.xrl src/gmb_fate_pp.erl
|
|
make sources
|
|
cd src
|
|
for f in $(ls --ignore=gmb_fate_generate_ops.erl | grep erl)
|
|
do
|
|
echo "Updating includes in: $f"
|
|
sed -i 's/gmbytecode\/include\///g' "$f"
|
|
sed -i 's/\.\.\/include\///g' "$f"
|
|
sed -i 's/include_lib/include/g' "$f"
|
|
done
|
|
cd ..
|
|
rm -f ebin/*.beam
|
|
rm -f rebar*
|
|
rm -rf quickcheck
|