kolibrios/contrib/media/updf/BuildUPDF.sh
Serhii Sakhno cd35d38ad2 updf: restore menuetlibc version
git-svn-id: svn://kolibrios.org@8429 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-12-16 18:41:33 +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