[gtk-doc-cn] r273 committed - update build.rc

2 views
Skip to first unread message

gtk-d...@googlecode.com

unread,
Apr 15, 2011, 11:11:29 AM4/15/11
to gtk-d...@googlegroups.com
Revision: 273
Author: yetist
Date: Fri Apr 15 08:10:17 2011
Log: update build.rc
http://code.google.com/p/gtk-doc-cn/source/detail?r=273

Modified:
/trunk/zh_CN/gtk3/build.rc
/trunk/zh_CN/libgksu/build.rc

=======================================
--- /trunk/zh_CN/gtk3/build.rc Fri Apr 15 07:55:50 2011
+++ /trunk/zh_CN/gtk3/build.rc Fri Apr 15 08:10:17 2011
@@ -20,9 +20,12 @@
mkdir $tmpdir
svn checkout $svnroot $tmpdir/$modname
fi
- cp tmp/html/* $tmpdir/$modname/
- svn status $tmpdir/$modname |grep "?" |awk '{print $2}'|xargs svn add
- find $tmpdir/$modname -maxdepth 1 -type f -name "*.htm*" -exec svn
propset "svn:mime-type" "text/html" {} \;
- svn commit -m "update $modname html docs" $tmpdir/$modname
- #rm -rf $tmpdir
-}
+ if [ -d tmp/html ];then
+ cp tmp/html/* $tmpdir/$modname/
+ svn status $tmpdir/$modname |grep "?" |awk '{print $2}'|xargs svn add
+ find $tmpdir/$modname -maxdepth 1 -type f -name "*.htm*" -exec svn
propset "svn:mime-type" "text/html" {} \;
+ svn commit -m "update $modname html docs" $tmpdir/$modname
+ else
+ echo "please make docs first"
+ fi
+}
=======================================
--- /trunk/zh_CN/libgksu/build.rc Fri Apr 15 07:18:48 2011
+++ /trunk/zh_CN/libgksu/build.rc Fri Apr 15 08:10:17 2011
@@ -1,3 +1,4 @@
+#!/bin/sh
pkgname=libgksu
modname=libgksu
pkgver=2.0.12
@@ -12,11 +13,19 @@

make_release()
{
- tmpdir=`mktemp -d`
- svn checkout $svnroot $tmpdir/$modname
- cp tmp/html/* $tmpdir/$modname/
- svn status $tmpdir/$modname |grep "?" |awk '{print $2}'|xargs svn add
- find $tmpdir/$modname -maxdepth 1 -type f -name "*.htm*" -exec svn
propset "svn:mime-type" "text/html" {} \;
- svn commit -m "update $modname docs" $tmpdir/$modname
- rm -rf $tmpdir
-}
+ tmpdir=tmp/svndocs
+ if [ -d $tmpdir ];then
+ svn update $tmpdir/$modname
+ else
+ mkdir $tmpdir
+ svn checkout $svnroot $tmpdir/$modname
+ fi
+ if [ -d tmp/html ];then
+ cp tmp/html/* $tmpdir/$modname/
+ svn status $tmpdir/$modname |grep "?" |awk '{print $2}'|xargs svn add
+ find $tmpdir/$modname -maxdepth 1 -type f -name "*.htm*" -exec svn
propset "svn:mime-type" "text/html" {} \;
+ svn commit -m "update $modname html docs" $tmpdir/$modname
+ else
+ echo "please make docs first"
+ fi
+}

Reply all
Reply to author
Forward
0 new messages