sterting input system

master
Theunis J. Botha 2021-09-06 06:38:12 +02:00
parent d6f6ec310f
commit 13f571db1f
2 changed files with 10 additions and 31 deletions

@ -1 +1 @@
Subproject commit 3711c858872bb9991da11a04358c0acacf900766 Subproject commit 3402c7a89174270a359a86512bc3d8d3ddef97d3

39
r3.sh
View File

@ -204,47 +204,22 @@ then
echo "Created class ${R3_FOLDER}${FILE_NAME}" echo "Created class ${R3_FOLDER}${FILE_NAME}"
# cd "${R3_V2_LIB_PATH}" 2>&1 || exit 3
#
# ./r3.php "${R3_FOLDER}${FILE_NAME}" save
# RESULT=$?
# if [ "${RESULT}" = 1 ];
# then
# exit 5
# fi
#
# ./r3.php "${R3_FOLDER}${FILE_NAME}" restore
# RESULT=$?
# if [ "${RESULT}" = 1 ];
# then
# exit 5
# fi
#
# ./r3.php all build-dist
#
# cd - 2>&1 || exit 3
exit 0; exit 0;
fi fi
if [ "${TASK}" = 'build-events' ]; if [ "${TASK}" = 'build-events' ];
then then
echo "building events" echo "generating events"
cd "${R3_V2_LIB_PATH}" 2>&1 || exit 3 cd "${R3_V2_LIB_PATH}" 2>&1 || exit 3
./build_events.php ./r3.php all generate-events
cd - 2>&1 || exit 3 cd - 2>&1 || exit 3
# set -o xtrace
CONTENTS=$(cat "${R3_FOLDER}events-generated")
perl -i -pe "BEGIN{undef $/;} s/\/\/EVENT_GENERATED_START.*\/\/EVENT_GENERATED_END/\/\/EVENT_GENERATED_START\n${CONTENTS}\n\/\/EVENT_GENERATED_END/smg" "${R3_FOLDER}r3-event.js"
rm "${R3_FOLDER}events-generated"
exit 0 exit 0
fi fi
check_file_found() { check_file_found() {
@ -272,7 +247,7 @@ check_file_found() {
if [ "${TASK}" = 'build-dist' ]; if [ "${TASK}" = 'build-dist' ];
then then
echo "building graph" echo "building distribution"
cd "${R3_V2_LIB_PATH}" 2>&1 || exit 3 cd "${R3_V2_LIB_PATH}" 2>&1 || exit 3
@ -352,7 +327,11 @@ then
done done
echo "building graph" echo "generating events"
./r3.php all generate-events
echo "building distribution"
./r3.php all build-dist ./r3.php all build-dist