sterting input system
parent
d6f6ec310f
commit
13f571db1f
|
@ -1 +1 @@
|
|||
Subproject commit 3711c858872bb9991da11a04358c0acacf900766
|
||||
Subproject commit 3402c7a89174270a359a86512bc3d8d3ddef97d3
|
39
r3.sh
39
r3.sh
|
@ -204,47 +204,22 @@ then
|
|||
|
||||
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;
|
||||
fi
|
||||
|
||||
if [ "${TASK}" = 'build-events' ];
|
||||
then
|
||||
|
||||
echo "building events"
|
||||
echo "generating events"
|
||||
|
||||
cd "${R3_V2_LIB_PATH}" 2>&1 || exit 3
|
||||
|
||||
./build_events.php
|
||||
./r3.php all generate-events
|
||||
|
||||
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
|
||||
|
||||
fi
|
||||
|
||||
check_file_found() {
|
||||
|
@ -272,7 +247,7 @@ check_file_found() {
|
|||
if [ "${TASK}" = 'build-dist' ];
|
||||
then
|
||||
|
||||
echo "building graph"
|
||||
echo "building distribution"
|
||||
|
||||
cd "${R3_V2_LIB_PATH}" 2>&1 || exit 3
|
||||
|
||||
|
@ -352,7 +327,11 @@ then
|
|||
|
||||
done
|
||||
|
||||
echo "building graph"
|
||||
echo "generating events"
|
||||
|
||||
./r3.php all generate-events
|
||||
|
||||
echo "building distribution"
|
||||
|
||||
./r3.php all build-dist
|
||||
|
||||
|
|
Loading…
Reference in New Issue