mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-27 16:59:41 +03:00
e687adb27e
git-svn-id: svn://kolibrios.org@5497 a494cfbc-eb01-0410-851d-a64ba20cac60
30 lines
614 B
Bash
30 lines
614 B
Bash
#!/bin/sh
|
|
red=`tput setaf 2`
|
|
error=`tput setaf 1`
|
|
reset=`tput sgr0`
|
|
DROPBOX_UPDF="/home/leency/Dropbox/updf"
|
|
|
|
echo "${red}Removing kos_main.o...${reset}"
|
|
rm build/kos_main.o
|
|
rm build/mupdf
|
|
|
|
echo "${red}Building updf...${reset}"
|
|
make
|
|
|
|
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
|