Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5496 leency 1
#!/bin/sh
2
red=`tput setaf 2`
3
error=`tput setaf 1`
4
reset=`tput sgr0`
5
DROPBOX_UPDF="/home/leency/Dropbox/updf"
6
 
7
echo "${red}Removing kos_main.o...${reset}"
8
rm build/kos_main.o
9
rm build/mupdf
10
 
11
echo "${red}Building updf...${reset}"
12
export MENUETDEV=me
13
make
14
 
15
echo "${red}Converting to KolibriOS binnary...${reset}"
16
cd build
17
objcopy -O binary mupdf
18
 
19
if [ -f /home/leency/Dropbox/updf ]; then
20
    echo "${red}Removing mypdf from Dropbox...${reset}"
21
    rm $DROPBOX_UPDF
22
fi
23
 
24
echo "${red}Copying new file to Dropbox...${reset}"
25
cp mupdf $DROPBOX_UPDF
26
 
27
if [ ! -f $DROPBOX_UPDF ]; then
28
    echo "${error}Compilation error${reset}"
29
    $SHELL
30
fi