1,29 → 1,23 |
#!/bin/sh |
red=`tput setaf 2` |
ok=`tput setaf 2` |
error=`tput setaf 1` |
reset=`tput sgr0` |
DROPBOX_UPDF="/home/leency/Dropbox/updf" |
|
echo "${red}Removing kos_main.o...${reset}" |
clear |
rm build/kos_main.o |
rm build/mupdf |
|
echo "${red}Building updf...${reset}" |
make |
if [ ! -f build/mupdf ]; then |
echo "${error} Compilation error ${reset}" |
$SHELL |
fi |
echo "${ok} OK ${reset}" |
objcopy -O binary build/mupdf |
rm updf |
cp build/mupdf updf |
ncftpput -u xxxx -p xxxx kolibri-n.org /public_ftp ~/Desktop/updf/updf |
if [ $? -ne 0 ]; then echo \"Upload failed\"; fi |
|
echo "${red}Converting to KolibriOS binnary...${reset}" |
cd build |
objcopy -O binary mupdf |
|
if [ -f /home/leency/Dropbox/updf ]; then |
echo "${red}Removing mypdf from Dropbox...${reset}" |
rm $DROPBOX_UPDF |
fi |
|
echo "${red}Copying new file to Dropbox...${reset}" |
cp mupdf $DROPBOX_UPDF |
|
if [ ! -f $DROPBOX_UPDF ]; then |
echo "${error}Compilation error${reset}" |
$SHELL |
fi |