ultimatepp/uppdev/trayicon/traytest
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

47 lines
982 B
Bash

#!/bin/sh
if [ -f ~/upp/uppsrc/CtrlCore/CtrlCore.h ]
then
echo "CtrlCore.h was found"
#cp CtrlCore.h ~/upp/uppsrc/CtrlCore/CtrlCore.h -f
result=$(patch --dry-run -s ~/upp/uppsrc/CtrlCore/CtrlCore.h CtrlCore.h.patch -f 2>&1)
if [[ "$result" != *FAILED* ]]
then
patch -s ~/upp/uppsrc/CtrlCore/CtrlCore.h CtrlCore.h.patch -f
echo "CtrlCore.h patched!"
fi
else
echo "Cannot find CtrlCore.h!!!!"
exit
fi
if [ ! -d "out/trayicon/GCC32-Gcc32-Gui-Linux-Main-Shared/" ]
then
./configure --prefix=/usr
make
fi
if [ -d "out/trayicon/GCC32-Gcc32-Gui-Linux-Main-Shared/" ]
then
if [ ! -h "bin" ]
then
ln -s out/trayicon/GCC32-Gcc32-Gui-Linux-Main-Shared bin
fi
if [ -f "out/bin/trayicon" ]
then
cp bin/trayicon . -f
fi
if [ -f "bin/trayicon" ]
then
if [ ! -f "bin/some_image.png" ]
then
cp some_image.png bin/
fi
cd bin
./trayicon
fi
else
echo "Something went wrong ! Sorry ! \n Can't run traytest"
fi