aspnetcs / nlpbamboo

Automatically exported from code.google.com/p/nlpbamboo
GNU General Public License v3.0
0 stars 0 forks source link

r516, auto_build 脚本出错 #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
$ /opt/bamboo/bin/auto_build -t seg -p 2 -d /media/nlp/data/raw           

/opt/bamboo/bin/auto_build: line 136: =/opt/bamboo/bin: No such file or
directory
/opt/bamboo/bin/auto_build: line 141: syntax error near unexpected token `fi'
/opt/bamboo/bin/auto_build: line 141: `fi'

是在 r516 不小心改错了,patch 如下:

Index: auto_build
===================================================================
--- auto_build  (revision 516)
+++ auto_build  (working copy)
@@ -133,9 +133,10 @@
        thread_num=1
 fi

-$top=$(dirname $(readlink -f $0))
+top=$(dirname $(readlink -f $0))
 if [ -r "$top/etc/bamboo/build_settings" ]
        source $top/etc/build_settings
+fi
 if [ -r "/etc/bamboo/build_settings" ]
        source /etc/bamboo/build_settings
 fi

Original issue reported on code.google.com by tchai...@gmail.com on 18 Feb 2010 at 4:45

GoogleCodeExporter commented 8 years ago
对不起,应该是

Index: auto_build
===================================================================
--- auto_build  (revision 516)
+++ auto_build  (working copy)
@@ -133,13 +133,15 @@
    thread_num=1
 fi

-$top=$(dirname $(readlink -f $0))
-if [ -r "$top/etc/bamboo/build_settings" ]
-   source $top/etc/build_settings
-if [ -r "/etc/bamboo/build_settings" ]
-   source /etc/bamboo/build_settings
+top="$(dirname $(readlink -f $0))/.."
+if [ -r "$top/etc/build_settings" ]; then
+        source $top/etc/build_settings
 fi

+if [ -r "/etc/bamboo/build_settings" ]; then
+        source /etc/bamboo/build_settings
+fi
+
 mkdir -p $data_dir $build_dir $index_dir

 if [ -z ${corpus_file} ]; then

Original comment by tchai...@gmail.com on 18 Feb 2010 at 5:17

GoogleCodeExporter commented 8 years ago
fix committed

Original comment by laserhe...@gmail.com on 25 Mar 2010 at 3:28