From d1b85ea40a7188d2e9920ce721a1359d59134687 Mon Sep 17 00:00:00 2001 From: Thanassis Tsiodras Date: Wed, 6 Jun 2018 13:56:23 +0200 Subject: [PATCH] Introduce the per-project build cache. --- Demo-opengeode/build-script.sh | 3 +++ Demo_ABB/build-script.sh | 3 +++ Demo_ACN/build-script.sh | 4 ++++ Demo_Ada_GUI/build-script.sh | 3 +++ Demo_Blackbox/build-script.sh | 3 +++ Demo_Bright_Ascension/build-script.sh | 3 +++ Demo_C/build-script.sh | 3 +++ Demo_CVProperties/build-script.sh | 3 +++ Demo_C_RTEMS/build-script.sh | 3 +++ Demo_C_RTEMS_Gaisler/build-script.sh | 3 +++ Demo_ContextParams/build-script.sh | 3 +++ Demo_Crazyflie_Blink/build-script.sh | 3 +++ Demo_Crazyflie_Communication/build-script.sh | 3 +++ Demo_Crazyflie_IMU/build-script.sh | 4 ++++ Demo_Crazyflie_IMU_Height/build-script.sh | 4 ++++ Demo_Directives/build-script.sh | 3 +++ Demo_Distrib/build-script.sh | 3 +++ Demo_EmptySeq/build-script.sh | 3 +++ Demo_Eth_GR740_to_PC/build-script.sh | 3 +++ Demo_ExternalLib/build-script.sh | 4 ++++ Demo_ImportedComponent/build-script.sh | 3 +++ Demo_KeepCase/build-script.sh | 3 +++ Demo_ManyThreads/build-script.sh | 3 +++ Demo_MessageOrdering/build-script.sh | 3 +++ Demo_Mix/build-sample.sh | 3 +++ Demo_MultiPlatform/build-script.sh | 3 +++ Demo_Multi_Instances/build-script.sh | 3 +++ Demo_Opengeode_Simple_Nested_States/build-script.sh | 3 +++ Demo_PeekPoke_Linux/build-script.sh | 3 +++ Demo_PortNames/build-script.sh | 3 +++ Demo_RI_Names/build-script.sh | 3 +++ Demo_RTDS_SyncC/build-script.sh | 3 +++ Demo_RTEMS_Ada/build-script.sh | 3 +++ Demo_RTEMS_SDL/build-script.sh | 3 +++ Demo_SQL_Socket_Linux32/build-script.sh | 3 +++ Demo_Serial_N2X/build-script.sh | 3 +++ Demo_Simulink_C_NoStopBlock/build-script.sh | 3 +++ Demo_Simulink_C_StopBlock/build-script.sh | 3 +++ Demo_Sockets/build-script.sh | 3 +++ Demo_Sockets_SDL_GUI/build-script.sh | 3 +++ Demo_Sockets_x86/build-script.sh | 3 +++ Demo_SpaceWire_2RASTA/build-script.sh | 3 +++ Demo_SpaceWire_N2X/build-script.sh | 3 +++ Demo_Timers/build-script.sh | 3 +++ Demo_TwoCallers/build-script.sh | 3 +++ Demo_Unprotected/build-script.sh | 3 +++ Demo_checkSMP/build-script.sh | 3 +++ Demo_uPy_Basic/build-script.sh | 3 +++ Demo_uPy_Basic_RTEMS412_Leon3/build-script.sh | 3 +++ Demo_uPy_TypesPI/build-script.sh | 3 +++ Demo_uPy_TypesRI/build-script.sh | 3 +++ Demo_uPy_WithC/build-script.sh | 3 +++ Demo_vcd/build-script.sh | 3 +++ 53 files changed, 163 insertions(+) diff --git a/Demo-opengeode/build-script.sh b/Demo-opengeode/build-script.sh index 6b4ba29..de599dc 100755 --- a/Demo-opengeode/build-script.sh +++ b/Demo-opengeode/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_ABB/build-script.sh b/Demo_ABB/build-script.sh index c34ea2d..6191413 100755 --- a/Demo_ABB/build-script.sh +++ b/Demo_ABB/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created "build-script.new.sh" file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f lift_model.zip zip lift_model lift_model/* [ ! -z "$CLEANUP" ] && rm -rf binary diff --git a/Demo_ACN/build-script.sh b/Demo_ACN/build-script.sh index 67e656b..576effe 100755 --- a/Demo_ACN/build-script.sh +++ b/Demo_ACN/build-script.sh @@ -14,6 +14,10 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_Ada_GUI/build-script.sh b/Demo_Ada_GUI/build-script.sh index f67040c..da869b1 100755 --- a/Demo_Ada_GUI/build-script.sh +++ b/Demo_Ada_GUI/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_Blackbox/build-script.sh b/Demo_Blackbox/build-script.sh index 196b7b8..d23bbdb 100755 --- a/Demo_Blackbox/build-script.sh +++ b/Demo_Blackbox/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created "build-script.new.sh" file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_Bright_Ascension/build-script.sh b/Demo_Bright_Ascension/build-script.sh index a65747c..1b95770 100755 --- a/Demo_Bright_Ascension/build-script.sh +++ b/Demo_Bright_Ascension/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_C/build-script.sh b/Demo_C/build-script.sh index fa0c079..713de3f 100755 --- a/Demo_C/build-script.sh +++ b/Demo_C/build-script.sh @@ -1,5 +1,8 @@ #!/bin/bash +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f simple_c_function.zip zip simple_c_function simple_c_function/* diff --git a/Demo_CVProperties/build-script.sh b/Demo_CVProperties/build-script.sh index fa33929..8070c6f 100755 --- a/Demo_CVProperties/build-script.sh +++ b/Demo_CVProperties/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_C_RTEMS/build-script.sh b/Demo_C_RTEMS/build-script.sh index c470d7a..18376ae 100755 --- a/Demo_C_RTEMS/build-script.sh +++ b/Demo_C_RTEMS/build-script.sh @@ -11,6 +11,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -f user_init_pre.sh ] then echo [INFO] Executing user-defined init script diff --git a/Demo_C_RTEMS_Gaisler/build-script.sh b/Demo_C_RTEMS_Gaisler/build-script.sh index 78d9525..3a59b5d 100755 --- a/Demo_C_RTEMS_Gaisler/build-script.sh +++ b/Demo_C_RTEMS_Gaisler/build-script.sh @@ -11,6 +11,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -f user_init_pre.sh ] then echo [INFO] Executing user-defined init script diff --git a/Demo_ContextParams/build-script.sh b/Demo_ContextParams/build-script.sh index 621820a..9822d21 100755 --- a/Demo_ContextParams/build-script.sh +++ b/Demo_ContextParams/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_Crazyflie_Blink/build-script.sh b/Demo_Crazyflie_Blink/build-script.sh index f030afb..98679f5 100755 --- a/Demo_Crazyflie_Blink/build-script.sh +++ b/Demo_Crazyflie_Blink/build-script.sh @@ -11,6 +11,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 0 ] ; then diff --git a/Demo_Crazyflie_Communication/build-script.sh b/Demo_Crazyflie_Communication/build-script.sh index b95bef5..40463a2 100755 --- a/Demo_Crazyflie_Communication/build-script.sh +++ b/Demo_Crazyflie_Communication/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 0 ] ; then diff --git a/Demo_Crazyflie_IMU/build-script.sh b/Demo_Crazyflie_IMU/build-script.sh index e22fd72..22c000c 100755 --- a/Demo_Crazyflie_IMU/build-script.sh +++ b/Demo_Crazyflie_IMU/build-script.sh @@ -9,6 +9,10 @@ # Inside these files you may set some environment variables: # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} + +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + unset USE_POHIC unset USE_POHIADA diff --git a/Demo_Crazyflie_IMU_Height/build-script.sh b/Demo_Crazyflie_IMU_Height/build-script.sh index 3f778ef..ebd2506 100755 --- a/Demo_Crazyflie_IMU_Height/build-script.sh +++ b/Demo_Crazyflie_IMU_Height/build-script.sh @@ -11,6 +11,10 @@ # Inside these files you may set some environment variables: # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} + +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + unset USE_POHIC unset USE_POHIADA diff --git a/Demo_Directives/build-script.sh b/Demo_Directives/build-script.sh index 2a972ce..e083e91 100755 --- a/Demo_Directives/build-script.sh +++ b/Demo_Directives/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_Distrib/build-script.sh b/Demo_Distrib/build-script.sh index fd20060..460f3b7 100755 --- a/Demo_Distrib/build-script.sh +++ b/Demo_Distrib/build-script.sh @@ -1,5 +1,8 @@ #!/bin/bash +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + cd skels rm -f a.zip zip a a/* diff --git a/Demo_EmptySeq/build-script.sh b/Demo_EmptySeq/build-script.sh index 7248ce3..a7c59d1 100755 --- a/Demo_EmptySeq/build-script.sh +++ b/Demo_EmptySeq/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_Eth_GR740_to_PC/build-script.sh b/Demo_Eth_GR740_to_PC/build-script.sh index 8f8bc5f..32a8a77 100755 --- a/Demo_Eth_GR740_to_PC/build-script.sh +++ b/Demo_Eth_GR740_to_PC/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_ExternalLib/build-script.sh b/Demo_ExternalLib/build-script.sh index 09be278..be2426d 100755 --- a/Demo_ExternalLib/build-script.sh +++ b/Demo_ExternalLib/build-script.sh @@ -15,6 +15,10 @@ # you will have to merge the changes with the newly-created file. # clean first to make sure it is build on the host platform + +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + make -C contrib/ || exit 1 if [ -z "$DEPLOYMENTVIEW" ] diff --git a/Demo_ImportedComponent/build-script.sh b/Demo_ImportedComponent/build-script.sh index 20983c6..610a607 100755 --- a/Demo_ImportedComponent/build-script.sh +++ b/Demo_ImportedComponent/build-script.sh @@ -1,5 +1,8 @@ #!/bin/bash +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f a.zip zip a a/* rm -f b.zip diff --git a/Demo_KeepCase/build-script.sh b/Demo_KeepCase/build-script.sh index f6580cb..adfb915 100755 --- a/Demo_KeepCase/build-script.sh +++ b/Demo_KeepCase/build-script.sh @@ -1,5 +1,8 @@ #!/bin/bash +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f hello.zip zip hello hello/* rm -f world.zip diff --git a/Demo_ManyThreads/build-script.sh b/Demo_ManyThreads/build-script.sh index 4850f87..3abf88b 100755 --- a/Demo_ManyThreads/build-script.sh +++ b/Demo_ManyThreads/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_MessageOrdering/build-script.sh b/Demo_MessageOrdering/build-script.sh index 576e44e..e650e2e 100755 --- a/Demo_MessageOrdering/build-script.sh +++ b/Demo_MessageOrdering/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created "build-script.new.sh" file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f f1.zip zip f1 f1/* rm -f f2.zip diff --git a/Demo_Mix/build-sample.sh b/Demo_Mix/build-sample.sh index 01e6ab1..222f812 100755 --- a/Demo_Mix/build-sample.sh +++ b/Demo_Mix/build-sample.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_MultiPlatform/build-script.sh b/Demo_MultiPlatform/build-script.sh index 7162ce6..cc25ffa 100755 --- a/Demo_MultiPlatform/build-script.sh +++ b/Demo_MultiPlatform/build-script.sh @@ -1,5 +1,8 @@ #!/bin/bash +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + cd skels rm -f pinger.zip zip pinger pinger/* diff --git a/Demo_Multi_Instances/build-script.sh b/Demo_Multi_Instances/build-script.sh index eb6ba66..d27d1a4 100755 --- a/Demo_Multi_Instances/build-script.sh +++ b/Demo_Multi_Instances/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_Opengeode_Simple_Nested_States/build-script.sh b/Demo_Opengeode_Simple_Nested_States/build-script.sh index 7cef98f..f3352d5 100755 --- a/Demo_Opengeode_Simple_Nested_States/build-script.sh +++ b/Demo_Opengeode_Simple_Nested_States/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_PeekPoke_Linux/build-script.sh b/Demo_PeekPoke_Linux/build-script.sh index 9966c4a..53348ea 100755 --- a/Demo_PeekPoke_Linux/build-script.sh +++ b/Demo_PeekPoke_Linux/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_PortNames/build-script.sh b/Demo_PortNames/build-script.sh index a6eb4f0..3d73cb7 100755 --- a/Demo_PortNames/build-script.sh +++ b/Demo_PortNames/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created "build-script.new.sh" file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f function0.zip zip function0 function0/* rm -f function1.zip diff --git a/Demo_RI_Names/build-script.sh b/Demo_RI_Names/build-script.sh index 8fa5feb..7c7a13a 100755 --- a/Demo_RI_Names/build-script.sh +++ b/Demo_RI_Names/build-script.sh @@ -1,5 +1,8 @@ #!/bin/bash +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f a.zip zip a a/* rm -f b.zip diff --git a/Demo_RTDS_SyncC/build-script.sh b/Demo_RTDS_SyncC/build-script.sh index 3d669e6..dcfa1df 100755 --- a/Demo_RTDS_SyncC/build-script.sh +++ b/Demo_RTDS_SyncC/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_RTEMS_Ada/build-script.sh b/Demo_RTEMS_Ada/build-script.sh index a66df70..8c4eb72 100755 --- a/Demo_RTEMS_Ada/build-script.sh +++ b/Demo_RTEMS_Ada/build-script.sh @@ -11,6 +11,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -f user_init_pre.sh ] then echo [INFO] Executing user-defined init script diff --git a/Demo_RTEMS_SDL/build-script.sh b/Demo_RTEMS_SDL/build-script.sh index 7aee6f6..24f242a 100755 --- a/Demo_RTEMS_SDL/build-script.sh +++ b/Demo_RTEMS_SDL/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_SQL_Socket_Linux32/build-script.sh b/Demo_SQL_Socket_Linux32/build-script.sh index 814c53a..c8a5d73 100755 --- a/Demo_SQL_Socket_Linux32/build-script.sh +++ b/Demo_SQL_Socket_Linux32/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_Serial_N2X/build-script.sh b/Demo_Serial_N2X/build-script.sh index bd7885e..fa05263 100755 --- a/Demo_Serial_N2X/build-script.sh +++ b/Demo_Serial_N2X/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_Simulink_C_NoStopBlock/build-script.sh b/Demo_Simulink_C_NoStopBlock/build-script.sh index 21662d8..5c63a49 100755 --- a/Demo_Simulink_C_NoStopBlock/build-script.sh +++ b/Demo_Simulink_C_NoStopBlock/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created "build-script.new.sh" file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f my_c_function.zip zip my_c_function my_c_function/* rm -f my_simulink_function.zip diff --git a/Demo_Simulink_C_StopBlock/build-script.sh b/Demo_Simulink_C_StopBlock/build-script.sh index 9696683..2ee3a3b 100755 --- a/Demo_Simulink_C_StopBlock/build-script.sh +++ b/Demo_Simulink_C_StopBlock/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created "build-script.new.sh" file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f my_c_function.zip zip my_c_function my_c_function/* rm -f my_simulink_function.zip diff --git a/Demo_Sockets/build-script.sh b/Demo_Sockets/build-script.sh index aa83bce..145b71a 100755 --- a/Demo_Sockets/build-script.sh +++ b/Demo_Sockets/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created "build-script.new.sh" file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f function0.zip zip function0 function0/* rm -f function1.zip diff --git a/Demo_Sockets_SDL_GUI/build-script.sh b/Demo_Sockets_SDL_GUI/build-script.sh index 3ee284c..61c687d 100755 --- a/Demo_Sockets_SDL_GUI/build-script.sh +++ b/Demo_Sockets_SDL_GUI/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_Sockets_x86/build-script.sh b/Demo_Sockets_x86/build-script.sh index dbe7e99..70d3d76 100755 --- a/Demo_Sockets_x86/build-script.sh +++ b/Demo_Sockets_x86/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created "build-script.new.sh" file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + rm -f a.zip zip a a/* rm -f b.zip diff --git a/Demo_SpaceWire_2RASTA/build-script.sh b/Demo_SpaceWire_2RASTA/build-script.sh index bbcd230..0add596 100755 --- a/Demo_SpaceWire_2RASTA/build-script.sh +++ b/Demo_SpaceWire_2RASTA/build-script.sh @@ -11,6 +11,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 0 ] ; then diff --git a/Demo_SpaceWire_N2X/build-script.sh b/Demo_SpaceWire_N2X/build-script.sh index bd7885e..fa05263 100755 --- a/Demo_SpaceWire_N2X/build-script.sh +++ b/Demo_SpaceWire_N2X/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_Timers/build-script.sh b/Demo_Timers/build-script.sh index 6f90dab..c8a9ad0 100755 --- a/Demo_Timers/build-script.sh +++ b/Demo_Timers/build-script.sh @@ -11,6 +11,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -f user_init_pre.sh ] diff --git a/Demo_TwoCallers/build-script.sh b/Demo_TwoCallers/build-script.sh index 8e1179a..f98344a 100755 --- a/Demo_TwoCallers/build-script.sh +++ b/Demo_TwoCallers/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_Unprotected/build-script.sh b/Demo_Unprotected/build-script.sh index 9824d12..32e5655 100755 --- a/Demo_Unprotected/build-script.sh +++ b/Demo_Unprotected/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl diff --git a/Demo_checkSMP/build-script.sh b/Demo_checkSMP/build-script.sh index d3d44ab..1733b23 100755 --- a/Demo_checkSMP/build-script.sh +++ b/Demo_checkSMP/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_uPy_Basic/build-script.sh b/Demo_uPy_Basic/build-script.sh index d4fdcca..78465a2 100755 --- a/Demo_uPy_Basic/build-script.sh +++ b/Demo_uPy_Basic/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_uPy_Basic_RTEMS412_Leon3/build-script.sh b/Demo_uPy_Basic_RTEMS412_Leon3/build-script.sh index d4fdcca..78465a2 100755 --- a/Demo_uPy_Basic_RTEMS412_Leon3/build-script.sh +++ b/Demo_uPy_Basic_RTEMS412_Leon3/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_uPy_TypesPI/build-script.sh b/Demo_uPy_TypesPI/build-script.sh index af12ab2..f8a1f10 100755 --- a/Demo_uPy_TypesPI/build-script.sh +++ b/Demo_uPy_TypesPI/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_uPy_TypesRI/build-script.sh b/Demo_uPy_TypesRI/build-script.sh index 7965262..07debd8 100755 --- a/Demo_uPy_TypesRI/build-script.sh +++ b/Demo_uPy_TypesRI/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_uPy_WithC/build-script.sh b/Demo_uPy_WithC/build-script.sh index af12ab2..f8a1f10 100755 --- a/Demo_uPy_WithC/build-script.sh +++ b/Demo_uPy_WithC/build-script.sh @@ -13,6 +13,9 @@ # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # unset USE_POHIC +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + CWD=$(pwd) if [ -t 1 ] ; then diff --git a/Demo_vcd/build-script.sh b/Demo_vcd/build-script.sh index 7df3cf4..e9dc610 100755 --- a/Demo_vcd/build-script.sh +++ b/Demo_vcd/build-script.sh @@ -14,6 +14,9 @@ # Note: TASTE will not overwrite your changes - if you need to update some parts # you will have to merge the changes with the newly-created file. +mkdir -p .cache +export PROJECT_CACHE=$(pwd)/.cache + if [ -z "$DEPLOYMENTVIEW" ] then DEPLOYMENTVIEW=DeploymentView.aadl -- GitLab