Browse Source

增加packageX86.sh

sensordb2 1 year ago
parent
commit
28d065e260
1 changed files with 36 additions and 0 deletions
  1. 36 0
      packageX86.sh

+ 36 - 0
packageX86.sh

@@ -0,0 +1,36 @@
+#!/bin/bash
+cur_date="`date +%Y-%m-%d`"
+ROOT=$(cd `dirname $0`; pwd)
+
+mkdir -p $ROOT/tmp
+rm -rf $ROOT/tmp/*
+
+cp -rf $ROOT/*.sh $ROOT/tmp/
+rm -rf $ROOT/tmp/build*
+rm -rf $ROOT/tmp/package*
+rm -rf $ROOT/tmp/changeName.sh
+
+mkdir -p $ROOT/tmp/build
+mkdir -p $ROOT/tmp/new
+
+cp -rf $ROOT/bat/bat $ROOT/tmp/build/bat
+cp -rf $ROOT/build/smq* $ROOT/tmp/build/
+cp -rf $ROOT/build/curl $ROOT/tmp/build/
+cp -rf $ROOT/build/date $ROOT/tmp/build/
+cp -rf $ROOT/tests  $ROOT/tmp/
+cp -rf $ROOT/tests-no-curl  $ROOT/tmp/
+cp -rf $ROOT/tests-my-curl  $ROOT/tmp/
+
+cd $ROOT
+if [ ! -d "release" ]; then
+        mkdir -p release
+fi
+
+mv $ROOT/tmp $ROOT/smq
+cd $ROOT
+tar -zcf $ROOT/release/smq-v${cur_date}.tar.gz ./smq
+
+rm -rf $ROOT/smq/*
+rmdir $ROOT/smq
+
+echo "打包成功"