sushichao il y a 1 jour
Parent
commit
18cf676a1a
2 fichiers modifiés avec 9 ajouts et 4 suppressions
  1. 1 0
      .gitignore
  2. 8 4
      readyForTarget.sh

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+/output/

+ 8 - 4
readyForTarget.sh

@@ -18,11 +18,15 @@ if [ $# = 1 ];then
 
     name="u_m2_g2_fs_v_${SOFT_VERSION}_d_${date}.img"
 
-    tar -zcvf ${name} oem_backup.tar etc lib oem usr www app bin
+    [ ! -d output ] && mkdir output
 
-    mv ../../speaker.conf.bak oem/etc/speaker.conf
-    
-    rk_generate ${name} G2-DIA ${SOFT_VERSION}
+    tar -zcvf output/${name} oem_backup.tar etc lib oem usr www app bin
+
+    rk_generate output/${name} G2-DIA ${SOFT_VERSION}
+
+    rm -rf oem_backup.tar
+
+    mv speaker.conf.bak oem/etc/speaker.conf
 else
     echo "usage:$0 branch-name"
 fi