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
+}