#!/bin/bash
echo $PWD
DIR_PRJ=$PWD
#take string after the first */ form DIR_PRJ
#OLD_NAME="${DIR_PRJ#*/}"
#take string after the last */ form DIR_PRJ,
#that means take the current fold name
OLD_NAME="${DIR_PRJ##*/}"
#take string before the last /* form DIR_PRJ
#that mens take the parent directory of current director
DIR_PARENT="${DIR_PRJ%/*}"
DST_NAME=build-arm-linux
#DST_PRJ=$DIR_PRJ/../$DST_NAME
cd ..
mkdir -p $DST_NAME
cd $DST_NAME
/opt/arm-qt/bin/qmake $DIR_PRJ/mainmenu.pro
/opt/arm-qt/bin/qmake all
make clean -j2
make -j2