|
@@ -33,7 +33,8 @@ echo "code version: "$GITVERSIONCODE
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+month=`date +%Y.%m`
|
|
|
+urllink="http://10.16.0.119:3000/adc_pilot/modularization_exe/src/master/agx"
|
|
|
|
|
|
|
|
|
if [ "$GITVERSIONCODE" = "$VERSIONCODE" ]; then
|
|
@@ -45,9 +46,12 @@ else
|
|
|
zip -r pilotbin.zip pilotbin
|
|
|
cd ../modularization_exe
|
|
|
git pull
|
|
|
- cd ../modularization
|
|
|
- cp pilotbin.zip ../modularization_exe/agx/$GITVERSIONCODE.zip
|
|
|
+ cd agx
|
|
|
+ mkdir $month
|
|
|
+ cd ../../modularization
|
|
|
+ cp pilotbin.zip ../modularization_exe/agx/$month/$GITVERSIONCODE.zip
|
|
|
cd ../modularization_exe/agx
|
|
|
+
|
|
|
cat /dev/null > appversion
|
|
|
echo "$VERSIONCODE" >> appversion
|
|
|
compiletime=`date "+%Y.%m.%d %H:%M:%S"`
|
|
@@ -55,7 +59,7 @@ else
|
|
|
echo " " > Readme.md
|
|
|
sed -i "1 a\ Build Time : $compiletime \n\n" Readme.md
|
|
|
# sed -i "1 a\ Version : $VERSIONCODE \n\n" Readme.md
|
|
|
- sed -i "1 a\ 最新版本APP : [下载]($urllink/AGXXavier/$month/$GITVERSIONCODE.zip) \n\n" Readme.md
|
|
|
+ sed -i "1 a\ 最新版本APP : [下载]($urllink/$month/$GITVERSIONCODE.zip) \n\n" Readme.md
|
|
|
cd ..
|
|
|
git add -u
|
|
|
git commit -m "automake change app. code version:$VERSIONCODE"
|