!upgrade.sh 406 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. # upgrade.sh
  3. #
  4. if [ -e ../lang_backup ]; then
  5. echo 'folder ../lang_backup already exist!'
  6. else
  7. ./clean.sh
  8. ./make_msgs.sh
  9. ./find_msgs.sh
  10. ./make_source.sh
  11. echo 'backup old files...'
  12. mkdir ../lang_backup
  13. mv ../Firmware/langtool.* ../lang_backup/
  14. mv ../Firmware/language*.* ../lang_backup/
  15. echo 'copying new files...'
  16. cp ./source/* ../Firmware/
  17. echo 'finished'
  18. fi
  19. read