|
|
|
|
@ -51,8 +51,7 @@ build() {
|
|
|
|
|
cd ../../build |
|
|
|
|
rm -f CMakeCache.txt |
|
|
|
|
|
|
|
|
|
local -a defs=(-DCPIGAMESH=ON) |
|
|
|
|
cmake .. ${defs[@]} |
|
|
|
|
cmake .. -DTARGET_PLATFORM=cpigamesh |
|
|
|
|
make -j $(getconf _NPROCESSORS_ONLN) |
|
|
|
|
cd - |
|
|
|
|
} |
|
|
|
|
@ -62,20 +61,20 @@ install() {
|
|
|
|
|
cp /home/cpi/games/devilutionX/build/devilutionx /home/cpi/games/devilutionX/bin |
|
|
|
|
git rev-parse HEAD > /home/cpi/games/devilutionX/bin/devilutionx.rev |
|
|
|
|
|
|
|
|
|
if [ -z ${TARGET+x} ]; then |
|
|
|
|
if [ -z ${TARGET+x} ]; then |
|
|
|
|
local target_dir="25_devilutionX" |
|
|
|
|
else |
|
|
|
|
else |
|
|
|
|
local target_dir=${TARGET#"/home/cpi/apps/Menu/"} |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
local script_dir="/home/cpi/apps/Menu/$target_dir" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
local target_dir_base=`basename "$target_dir"` |
|
|
|
|
local target_dir_dir=`dirname "$target_dir"` |
|
|
|
|
local icon_name="${target_dir_dir}/${target_dir_base#*_}" |
|
|
|
|
|
|
|
|
|
local icon_dir="/home/cpi/launcher/skin/default/Menu/GameShell/${icon_name}.png" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo $target_dir |
|
|
|
|
echo $script_dir |
|
|
|
|
echo $target_dir_base |
|
|
|
|
|