Subversion Repositories Kolibri OS

Rev

Rev 5496 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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