Last active
August 10, 2017 17:39
-
-
Save LuxoftAKutsan/dd0bbce9b190735378579a0b8a2ecf01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function ready() { | |
cvlc ~/Downloads/Jobs\ Done.mp3 --play-and-exit | |
} | |
function bad_result() { | |
echo "Something is wrong" | festival --tts; | |
} | |
function notepad++ { | |
env WINEPREFIX="/home/akutsan/.wine" wine C:\\windows\\command\\start.exe /Unix /home/akutsan/.wine/dosdevices/c:/users/Public/Start\ Menu/Programs/Notepad++/Notepad++.lnk | |
} | |
function make_t { | |
/usr/bin/time -o /tmp/make.log -a -f "%C : %e sec; exit code : %x" make -j4 | |
} | |
function env_logger { | |
export THIRD_PARTY_INSTALL_PREFIX=$1 | |
export THIRD_PARTY_INSTALL_PREFIX_ARCH=$THIRD_PARTY_INSTALL_PREFIX/`uname -i` | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$THIRD_PARTY_INSTALL_PREFIX_ARCH/lib | |
} | |
function env_fs { | |
env_logger /tmp/pasa_looger | |
} | |
function env_os { | |
env_logger /tmp/genivi_libs | |
} | |
function atf_pre { | |
rm -rf sdl.pid TestingReports -rf ; kill_sdl; | |
} | |
env_os | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:. | |
function pasa_env_clang { | |
logger_env /tmp/pasa_env_clang | |
} | |
function clang_genivi_env { | |
logger_env /tmp/genivi_env_clang | |
export CMAKE_CXX_COMPILER=clang++ | |
} | |
env_os | |
export PATH=$PATH:/opt/qnx650/host/linux/x86/usr/bin | |
function time_s { | |
mkdir -p ~/stat | |
exec 3>&1 4>&2 | |
t=$( { time $@ 1>&3 2>&4; } 2>&1 ) | |
RES=$? | |
echo $RES $t $@ >> ~/stat/$1_time_stat | |
echo $RES $t $@ | |
ready | |
return RES | |
} | |
function build { | |
time_s make $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment