Commit d1b85ea4 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Introduce the per-project build cache.

parent f7bcff26
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # 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 rm -f lift_model.zip
zip lift_model lift_model/* zip lift_model lift_model/*
[ ! -z "$CLEANUP" ] && rm -rf binary [ ! -z "$CLEANUP" ] && rm -rf binary
......
...@@ -14,6 +14,10 @@ ...@@ -14,6 +14,10 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # 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" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
#!/bin/bash #!/bin/bash
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
rm -f simple_c_function.zip rm -f simple_c_function.zip
zip simple_c_function simple_c_function/* zip simple_c_function simple_c_function/*
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -f user_init_pre.sh ] if [ -f user_init_pre.sh ]
then then
echo [INFO] Executing user-defined init script echo [INFO] Executing user-defined init script
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -f user_init_pre.sh ] if [ -f user_init_pre.sh ]
then then
echo [INFO] Executing user-defined init script echo [INFO] Executing user-defined init script
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 1 ] ; then if [ -t 1 ] ; then
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 0 ] ; then if [ -t 0 ] ; then
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 0 ] ; then if [ -t 0 ] ; then
......
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
# Inside these files you may set some environment variables: # Inside these files you may set some environment variables:
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
unset USE_POHIC unset USE_POHIC
unset USE_POHIADA unset USE_POHIADA
......
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
# Inside these files you may set some environment variables: # Inside these files you may set some environment variables:
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
unset USE_POHIC unset USE_POHIC
unset USE_POHIADA unset USE_POHIADA
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 1 ] ; then if [ -t 1 ] ; then
......
#!/bin/bash #!/bin/bash
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
cd skels cd skels
rm -f a.zip rm -f a.zip
zip a a/* zip a a/*
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 1 ] ; then if [ -t 1 ] ; then
......
...@@ -15,6 +15,10 @@ ...@@ -15,6 +15,10 @@
# you will have to merge the changes with the newly-created file. # you will have to merge the changes with the newly-created file.
# clean first to make sure it is build on the host platform # 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 make -C contrib/ || exit 1
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
......
#!/bin/bash #!/bin/bash
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
rm -f a.zip rm -f a.zip
zip a a/* zip a a/*
rm -f b.zip rm -f b.zip
......
#!/bin/bash #!/bin/bash
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
rm -f hello.zip rm -f hello.zip
zip hello hello/* zip hello hello/*
rm -f world.zip rm -f world.zip
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # 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 rm -f f1.zip
zip f1 f1/* zip f1 f1/*
rm -f f2.zip rm -f f2.zip
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
#!/bin/bash #!/bin/bash
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
cd skels cd skels
rm -f pinger.zip rm -f pinger.zip
zip pinger pinger/* zip pinger pinger/*
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 1 ] ; then if [ -t 1 ] ; then
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 1 ] ; then if [ -t 1 ] ; then
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # 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 rm -f function0.zip
zip function0 function0/* zip function0 function0/*
rm -f function1.zip rm -f function1.zip
......
#!/bin/bash #!/bin/bash
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
rm -f a.zip rm -f a.zip
zip a a/* zip a a/*
rm -f b.zip rm -f b.zip
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 1 ] ; then if [ -t 1 ] ; then
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -f user_init_pre.sh ] if [ -f user_init_pre.sh ]
then then
echo [INFO] Executing user-defined init script echo [INFO] Executing user-defined init script
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 1 ] ; then if [ -t 1 ] ; then
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -13,6 +13,9 @@ ...@@ -13,6 +13,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH} # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:${C_INCLUDE_PATH}
# unset USE_POHIC # unset USE_POHIC
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
CWD=$(pwd) CWD=$(pwd)
if [ -t 1 ] ; then if [ -t 1 ] ; then
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # 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 rm -f my_c_function.zip
zip my_c_function my_c_function/* zip my_c_function my_c_function/*
rm -f my_simulink_function.zip rm -f my_simulink_function.zip
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # 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 rm -f my_c_function.zip
zip my_c_function my_c_function/* zip my_c_function my_c_function/*
rm -f my_simulink_function.zip rm -f my_simulink_function.zip
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # 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 rm -f function0.zip
zip function0 function0/* zip function0 function0/*
rm -f function1.zip rm -f function1.zip
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # you will have to merge the changes with the newly-created file.
mkdir -p .cache
export PROJECT_CACHE=$(pwd)/.cache
if [ -z "$DEPLOYMENTVIEW" ] if [ -z "$DEPLOYMENTVIEW" ]
then then
DEPLOYMENTVIEW=DeploymentView.aadl DEPLOYMENTVIEW=DeploymentView.aadl
......
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
# Note: TASTE will not overwrite your changes - if you need to update some parts # 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. # 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 rm -f a.zip
zip a a/* zip a a/*
rm -f b.zip rm -f b.zip
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
# C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH # C_INCLUDE_PATH=/usr/include/xenomai/analogy/:$C_INCLUDE_PATH
# unset USE_POHIC