kolibrios-fun/contrib/media/updf/BuildUPDF.sh
Kirill Lipatov (Leency) 448bc67a4f uPDF: working "open" button, update build script, start migration to kolibri.c from SHELL
git-svn-id: svn://kolibrios.org@7475 a494cfbc-eb01-0410-851d-a64ba20cac60
2018-10-17 19:59:21 +00:00

24 lines
413 B
Bash

#!/bin/sh
ok=`tput setaf 2`
error=`tput setaf 1`
reset=`tput sgr0`
clear
rm build/kos_main.o
rm build/mupdf
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