2015-03-05 15:45:16 +01:00
|
|
|
#!/bin/sh
|
2018-10-17 21:59:21 +02:00
|
|
|
ok=`tput setaf 2`
|
2015-03-05 15:45:16 +01:00
|
|
|
error=`tput setaf 1`
|
|
|
|
reset=`tput sgr0`
|
|
|
|
|
2018-10-17 21:59:21 +02:00
|
|
|
clear
|
2015-03-05 15:45:16 +01:00
|
|
|
rm build/kos_main.o
|
|
|
|
rm build/mupdf
|
|
|
|
make
|
2018-10-17 21:59:21 +02:00
|
|
|
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
|
2015-03-05 15:45:16 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|