Subversion Repositories Kolibri OS

Rev

Rev 5496 | Go to most recent revision | Details | Compare with Previous | 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
make
13
 
14
echo "${red}Converting to KolibriOS binnary...${reset}"
15
cd build
16
objcopy -O binary mupdf
17
 
18
if [ -f /home/leency/Dropbox/updf ]; then
19
    echo "${red}Removing mypdf from Dropbox...${reset}"
20
    rm $DROPBOX_UPDF
21
fi
22
 
23
echo "${red}Copying new file to Dropbox...${reset}"
24
cp mupdf $DROPBOX_UPDF
25
 
26
if [ ! -f $DROPBOX_UPDF ]; then
27
    echo "${error}Compilation error${reset}"
28
    $SHELL
29
fi