瀏覽代碼

More logging of compile

Bob Mottram 9 年之前
父節點
當前提交
24579e62c9
共有 1 個檔案被更改,包括 11 行新增7 行删除
  1. 11
    7
      src/freedombone-image-mesh

+ 11
- 7
src/freedombone-image-mesh 查看文件

293
     fi
293
     fi
294
     cd $INSTALL_DIR/toxcore
294
     cd $INSTALL_DIR/toxcore
295
     autoreconf -i
295
     autoreconf -i
296
-    ./configure --enable-daemon --disable-av
296
+    ./configure --enable-daemon --disable-av > $INSTALL_DIR/configure_toxcore.txt
297
     if [ ! "$?" = "0" ]; then
297
     if [ ! "$?" = "0" ]; then
298
         echo $'Unable to configure toxcore' >> $INSTALL_LOG
298
         echo $'Unable to configure toxcore' >> $INSTALL_LOG
299
+        echo $'See $INSTALL_DIR/configure_toxcore.txt' >> $INSTALL_LOG 
299
         return
300
         return
300
     fi
301
     fi
301
-    make > /root/make_toxcore.txt
302
+    rm $INSTALL_DIR/configure_toxcore.txt
303
+    make > $INSTALL_DIR/make_toxcore.txt
302
     if [ ! "$?" = "0" ]; then
304
     if [ ! "$?" = "0" ]; then
303
-        echo $'Unable to make toxcore' >> $INSTALL_LOG
304
-        return
305
+        echo $'Unable to make toxcore' >> $INSTALL_LOG 
306
+        echo $'See $INSTALL_DIR/make_toxcore.txt' >> $INSTALL_LOG 
307
+       return
305
     fi
308
     fi
306
-    rm /root/make_toxcore.txt
309
+    rm $INSTALL_DIR/make_toxcore.txt
307
     make install
310
     make install
308
     cp /usr/local/lib/libtoxcore* /usr/lib/
311
     cp /usr/local/lib/libtoxcore* /usr/lib/
309
 
312
 
390
     fi
393
     fi
391
 
394
 
392
     cd $INSTALL_DIR/toxic
395
     cd $INSTALL_DIR/toxic
393
-    make > /root/make_toxic.txt
396
+    make > $INSTALL_DIR/make_toxic.txt
394
     if [ ! -f $INSTALL_DIR/toxic/build/toxic ]; then
397
     if [ ! -f $INSTALL_DIR/toxic/build/toxic ]; then
395
         echo $'Unable to make tox client' >> $INSTALL_LOG
398
         echo $'Unable to make tox client' >> $INSTALL_LOG
399
+        echo $"See $INSTALL_DIR/make_toxic.txt" >> $INSTALL_LOG
396
         exit 74872
400
         exit 74872
397
     fi
401
     fi
398
-    rm /root/make_toxic.txt
402
+    rm $INSTALL_DIR/make_toxic.txt
399
     make install
403
     make install
400
     if [ ! -f $TOXIC_FILE ]; then
404
     if [ ! -f $TOXIC_FILE ]; then
401
         echo $"Tox client was not installed to $TOXIC_FILE" >> $INSTALL_LOG
405
         echo $"Tox client was not installed to $TOXIC_FILE" >> $INSTALL_LOG