comparison contrib/hg-package @ 762:605af0a90e3e

Minor fix
author Dongsheng Song <songdongsheng@live.cn>
date Tue, 31 Mar 2009 11:51:13 +0800
parents 1de6cbdcc619
children
comparison
equal deleted inserted replaced
761:bc9dc4f2f912 762:605af0a90e3e
25 25
26 if [ -f "pdf/hgbook.pdf" ] ; then 26 if [ -f "pdf/hgbook.pdf" ] ; then
27 cp pdf/hgbook.pdf ../hgbook-${l}-${rev_id}.pdf 27 cp pdf/hgbook.pdf ../hgbook-${l}-${rev_id}.pdf
28 gzip -f9 ../hgbook-${l}-${rev_id}.pdf 28 gzip -f9 ../hgbook-${l}-${rev_id}.pdf
29 fi 29 fi
30
31 if [ -f "epub/hgbook.epub" ] ; then
32 cp epub/hgbook.epub ../hgbook-${l}-${rev_id}.epub
33 fi
30 ) 34 )
31 done 35 done
32 36
33 upload_pass=$1 37 upload_pass=$1
34 upload_user=$2 38 upload_user=$2
39
40 # echo "upload_pass: ${upload_pass}"
41 # echo "upload_user: ${upload_user}"
35 42
36 if [ "${upload_user}x" == "x" ]; then 43 if [ "${upload_user}x" == "x" ]; then
37 upload_user="dongsheng.song" 44 upload_user="dongsheng.song"
38 fi 45 fi
39 46
44 if [[ "0" != $? ]]; then 51 if [[ "0" != $? ]]; then
45 exit 1 52 exit 1
46 fi 53 fi
47 54
48 for l in en zh; do 55 for l in en zh; do
56 if [ -f "hgbook-${l}-${rev_id}.epub" ] ; then
57 python googlecode_upload.py --user="${upload_user}" --password="${upload_pass}" \
58 -p "i18n-zh" -l "Type-Docs,book,hgbook,hg,mercurial,ebook" \
59 -s "Distributed revision control with Mercurial - ${l} - ePub" \
60 hgbook-${l}-${rev_id}.epub
61 fi
62
49 if [ -f "hgbook-${l}-${rev_id}.pdf.gz" ] ; then 63 if [ -f "hgbook-${l}-${rev_id}.pdf.gz" ] ; then
50 python googlecode_upload.py -u "dongsheng.song" -w "$1" \ 64 python googlecode_upload.py --user="${upload_user}" --password="${upload_pass}" \
51 -p "i18n-zh" -l "Type-Docs,hgbook" \ 65 -p "i18n-zh" -l "Type-Docs,book,hgbook,hg,mercurial" \
52 -s "Distributed revision control with Mercurial - ${l} - pdf" \ 66 -s "Distributed revision control with Mercurial - ${l} - pdf" \
53 hgbook-${l}-${rev_id}.pdf.gz 67 hgbook-${l}-${rev_id}.pdf.gz
54 fi 68 fi
55 69
56 for f in html html-single; do 70 for f in html html-single; do
57 if [ -f "hgbook-${l}-${rev_id}.pdf.gz" ] ; then 71 if [ -f "hgbook-${l}-${f}-${rev_id}.tar.gz" ] ; then
58 python googlecode_upload.py -u "dongsheng.song" -w "$1" \ 72 python googlecode_upload.py --user="${upload_user}" --password="${upload_pass}" \
59 -p "i18n-zh" -l "Type-Docs,hgbook" \ 73 -p "i18n-zh" -l "Type-Docs,book,hgbook,hg,mercurial" \
60 -s "Distributed revision control with Mercurial - ${l} - ${f}" \ 74 -s "Distributed revision control with Mercurial - ${l} - ${f}" \
61 hgbook-${l}-${f}-${rev_id}.tar.gz 75 hgbook-${l}-${f}-${rev_id}.tar.gz
62 fi 76 fi
63 done 77 done
64 done 78 done