Changeset 369 in flair-src
- Timestamp:
- Nov 17, 2020, 5:46:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/flair_compile_all.sh
r302 r369 4 4 IDE_SCRIPT=cmake_codelite_outofsource.sh 5 5 toolchains=($OECORE_CMAKE_TOOLCHAINS) 6 7 8 function notify () { 9 notify=$(which notify-send) 10 if [ "$notify" != "" ]; then 11 notify-send Flair "$1" $2 $3 12 fi 13 } 14 15 function notify_ok () { 16 notify "$1" -i emblem-default 17 } 18 19 function notify_ko () { 20 notify "$1" -i error 21 } 22 6 23 7 24 function green_echo () { … … 16 33 if [ "$?" != "0" ]; then 17 34 red_echo "Error, exiting" 35 notify_ko "error while compiling" 18 36 exit 1 19 37 fi … … 32 50 } 33 51 34 35 52 sanity_check 36 53 … … 39 56 40 57 if [ "$answer" = "" ] || [ "$answer" = "y" ] || [ "$answer" = "Y" ]; then 41 rm -rf $FLAIR_ROOT/flair-build/* 58 notify "started configuration" 59 rm -rf $FLAIR_ROOT/flair-build/* 42 60 cd $FLAIR_ROOT/flair-build 43 61 $FLAIR_ROOT/flair-src/scripts/$IDE_SCRIPT $FLAIR_ROOT/flair-src/ … … 47 65 for arch in ${toolchains[@]}; do 48 66 green_echo "Compiling and installing for $arch" 67 notify "compiling and installing for $arch" 49 68 cd $FLAIR_ROOT/flair-build/build_$arch 50 69 make -j$NB_THREADS … … 61 80 fi 62 81 82 notify_ok "finished compilation" 63 83 64 84 exit 0
Note:
See TracChangeset
for help on using the changeset viewer.