hgbook / contrib / hg-package

Diff from to

contrib/hg-package

      cp pdf/hgbook.pdf ../hgbook-${l}-${rev_id}.pdf
      gzip -f9 ../hgbook-${l}-${rev_id}.pdf
   fi
+
+  if [ -f "epub/hgbook.epub" ] ; then
+     cp epub/hgbook.epub ../hgbook-${l}-${rev_id}.epub
+  fi
   )
 done
 
 upload_pass=$1
 upload_user=$2
 
+# echo "upload_pass: ${upload_pass}"
+# echo "upload_user: ${upload_user}"
+
 if [ "${upload_user}x" == "x" ]; then
   upload_user="dongsheng.song"
 fi
   fi
 
   for l in en zh; do
+    if [ -f "hgbook-${l}-${rev_id}.epub" ] ; then
+      python googlecode_upload.py --user="${upload_user}" --password="${upload_pass}" \
+          -p "i18n-zh" -l "Type-Docs,book,hgbook,hg,mercurial,ebook" \
+          -s "Distributed revision control with Mercurial - ${l} - ePub" \
+          hgbook-${l}-${rev_id}.epub
+    fi
+
     if [ -f "hgbook-${l}-${rev_id}.pdf.gz" ] ; then
-      python googlecode_upload.py -u "dongsheng.song" -w "$1" \
-          -p "i18n-zh" -l "Type-Docs,hgbook" \
+      python googlecode_upload.py --user="${upload_user}" --password="${upload_pass}" \
+          -p "i18n-zh" -l "Type-Docs,book,hgbook,hg,mercurial" \
           -s "Distributed revision control with Mercurial - ${l} - pdf" \
           hgbook-${l}-${rev_id}.pdf.gz
     fi
 
     for f in html html-single; do
-      if [ -f "hgbook-${l}-${rev_id}.pdf.gz" ] ; then
-        python googlecode_upload.py -u "dongsheng.song" -w "$1" \
-            -p "i18n-zh" -l "Type-Docs,hgbook" \
+      if [ -f "hgbook-${l}-${f}-${rev_id}.tar.gz" ] ; then
+        python googlecode_upload.py --user="${upload_user}" --password="${upload_pass}" \
+            -p "i18n-zh" -l "Type-Docs,book,hgbook,hg,mercurial" \
             -s "Distributed revision control with Mercurial - ${l} - ${f}" \
             hgbook-${l}-${f}-${rev_id}.tar.gz
       fi
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.