configure 248 B

12345678910
  1. if [ "$#" -eq 1 ]; then
  2. # use specific version
  3. old=$1
  4. else
  5. # use last release
  6. old=$(git rev-list --tags --max-count=1)
  7. fi
  8. mkdir -p tmp
  9. cp ../../dist/echarts.js "tmp/newEcharts.js"
  10. git show $old:dist/echarts.js > 'tmp/oldEcharts.js'