setversion.sh 566 B

1234567891011121314151617
  1. #!/bin/sh
  2. cd `dirname "$0"`
  3. cd ../st
  4. rm -f *.js
  5. cp Kernel-Infrastructure.st Kernel-Infrastructure.st.bak
  6. sed -e "/^version\$/,/^\! \!\$/ s/\^ '[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\(-pre\)\{0,1\}'\$/^ '$1'/" Kernel-Infrastructure.st.bak >Kernel-Infrastructure.st
  7. rm Kernel-Infrastructure.st.bak
  8. cd ..
  9. bin/amberc -d -l Kernel-Objects,Kernel-Collections Kernel-Infrastructure.st
  10. cd st
  11. mv *.js ../js
  12. cd ..
  13. for F in *.json; do
  14. cp $F $F.bak
  15. sed -e 's/"version": "[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\(-pre\)\{0,1\}"/"version": "'"$1"'"/' $F.bak >$F
  16. rm $F.bak
  17. done