Subversion Repositories Kolibri OS

Rev

Rev 5497 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5497 Rev 7475
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
red=`tput setaf 2`
2
ok=`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"
-
 
Line 6... Line 5...
6
 
5
 
7
echo "${red}Removing kos_main.o...${reset}"
6
clear
8
rm build/kos_main.o
7
rm build/kos_main.o
9
rm build/mupdf
-
 
10
 
-
 
11
echo "${red}Building updf...${reset}"
8
rm build/mupdf
-
 
9
make
-
 
10
if [ ! -f build/mupdf ]; then
-
 
11
    echo "${error} Compilation error ${reset}"
-
 
12
    $SHELL
-
 
13
fi
-
 
14
echo "${ok} OK ${reset}"
-
 
15
objcopy -O binary build/mupdf
-
 
16
rm updf
-
 
17
cp build/mupdf updf
-
 
18
ncftpput -u xxxx -p xxxx kolibri-n.org /public_ftp ~/Desktop/updf/updf
Line 12... Line -...
12
make
-
 
13
 
-
 
14
echo "${red}Converting to KolibriOS binnary...${reset}"
-
 
Line 15... Line -...
15
cd build
-
 
16
objcopy -O binary mupdf
-
 
17
 
-
 
18
if [ -f /home/leency/Dropbox/updf ]; then
-
 
Line 19... Line -...
19
    echo "${red}Removing mypdf from Dropbox...${reset}"
-
 
20
    rm $DROPBOX_UPDF
-
 
Line 21... Line -...
21
fi
-
 
22
 
-
 
23
echo "${red}Copying new file to Dropbox...${reset}"
-
 
24
cp mupdf $DROPBOX_UPDF
-