update 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/bin/bash
  2. if [ "$1" = "" ]; then
  3. echo "Please input resolution,"
  4. echo "Such as: qvga, wqvga, wvga, hvga"
  5. exit
  6. fi
  7. p=$1
  8. ./tool/bmp_to_raw ./temp0.raw ./$p/"${p}_uboot".bmp
  9. ./tool/bmp_to_raw ./temp1.raw ./$p/"${p}_battery".bmp
  10. ./tool/bmp_to_raw ./temp2.raw ./$p/"${p}_low_battery".bmp
  11. ./tool/bmp_to_raw ./temp3.raw ./$p/"${p}_charger_ov".bmp
  12. ./tool/bmp_to_raw ./temp4.raw ./$p/"${p}_num_0".bmp
  13. ./tool/bmp_to_raw ./temp5.raw ./$p/"${p}_num_1".bmp
  14. ./tool/bmp_to_raw ./temp6.raw ./$p/"${p}_num_2".bmp
  15. ./tool/bmp_to_raw ./temp7.raw ./$p/"${p}_num_3".bmp
  16. ./tool/bmp_to_raw ./temp8.raw ./$p/"${p}_num_4".bmp
  17. ./tool/bmp_to_raw ./temp9.raw ./$p/"${p}_num_5".bmp
  18. ./tool/bmp_to_raw ./temp10.raw ./$p/"${p}_num_6".bmp
  19. ./tool/bmp_to_raw ./temp11.raw ./$p/"${p}_num_7".bmp
  20. ./tool/bmp_to_raw ./temp12.raw ./$p/"${p}_num_8".bmp
  21. ./tool/bmp_to_raw ./temp13.raw ./$p/"${p}_num_9".bmp
  22. ./tool/bmp_to_raw ./temp14.raw ./$p/"${p}_num_percent".bmp
  23. ./tool/bmp_to_raw ./temp15.raw ./$p/"${p}_bat_animation_01".bmp
  24. ./tool/bmp_to_raw ./temp16.raw ./$p/"${p}_bat_animation_02".bmp
  25. ./tool/bmp_to_raw ./temp17.raw ./$p/"${p}_bat_animation_03".bmp
  26. ./tool/bmp_to_raw ./temp18.raw ./$p/"${p}_bat_animation_04".bmp
  27. ./tool/bmp_to_raw ./temp19.raw ./$p/"${p}_bat_animation_05".bmp
  28. ./tool/bmp_to_raw ./temp20.raw ./$p/"${p}_bat_animation_06".bmp
  29. ./tool/bmp_to_raw ./temp21.raw ./$p/"${p}_bat_animation_07".bmp
  30. ./tool/bmp_to_raw ./temp22.raw ./$p/"${p}_bat_animation_08".bmp
  31. ./tool/bmp_to_raw ./temp23.raw ./$p/"${p}_bat_animation_09".bmp
  32. ./tool/bmp_to_raw ./temp24.raw ./$p/"${p}_bat_animation_10".bmp
  33. ./tool/bmp_to_raw ./temp25.raw ./$p/"${p}_bat_10_01".bmp
  34. ./tool/bmp_to_raw ./temp26.raw ./$p/"${p}_bat_10_02".bmp
  35. ./tool/bmp_to_raw ./temp27.raw ./$p/"${p}_bat_10_03".bmp
  36. ./tool/bmp_to_raw ./temp28.raw ./$p/"${p}_bat_10_04".bmp
  37. ./tool/bmp_to_raw ./temp29.raw ./$p/"${p}_bat_10_05".bmp
  38. ./tool/bmp_to_raw ./temp30.raw ./$p/"${p}_bat_10_06".bmp
  39. ./tool/bmp_to_raw ./temp31.raw ./$p/"${p}_bat_10_07".bmp
  40. ./tool/bmp_to_raw ./temp32.raw ./$p/"${p}_bat_10_08".bmp
  41. ./tool/bmp_to_raw ./temp33.raw ./$p/"${p}_bat_10_09".bmp
  42. ./tool/bmp_to_raw ./temp34.raw ./$p/"${p}_bat_10_10".bmp
  43. ./tool/bmp_to_raw ./temp35.raw ./$p/"${p}_bat_bg".bmp
  44. ./tool/bmp_to_raw ./temp36.raw ./$p/"${p}_bat_img".bmp
  45. ./tool/bmp_to_raw ./temp37.raw ./$p/"${p}_bat_100".bmp
  46. ./tool/bmp_to_raw ./boot_logo ./$p/"${p}_kernel".bmp
  47. ./tool/zpipe -l 9 ./"${p}.raw" temp0.raw temp1.raw temp2.raw temp3.raw temp4.raw temp5.raw temp6.raw temp7.raw temp8.raw temp9.raw temp10.raw temp11.raw temp12.raw temp13.raw temp14.raw temp15.raw temp16.raw temp17.raw temp18.raw temp19.raw temp20.raw temp21.raw temp22.raw temp23.raw temp24.raw temp25.raw temp26.raw temp27.raw temp28.raw temp29.raw temp30.raw temp31.raw temp32.raw temp33.raw temp34.raw temp35.raw temp36.raw temp37.raw
  48. rm -rf ./temp0.raw ./temp1.raw ./temp2.raw ./temp3.raw ./temp4.raw ./temp5.raw ./temp6.raw ./temp7.raw ./temp8.raw ./temp9.raw ./temp10.raw ./temp11.raw ./temp12.raw ./temp13.raw ./temp14.raw ./temp15.raw ./temp16.raw ./temp17.raw ./temp18.raw ./temp19.raw ./temp20.raw ./temp21.raw ./temp22.raw ./temp23.raw ./temp24.raw ./temp25.raw ./temp26.raw ./temp27.raw ./temp28.raw ./temp29.raw ./temp30.raw ./temp31.raw ./temp32.raw ./temp33.raw ./temp34.raw ./temp35.raw ./temp36.raw ./temp37.raw ./bootlogo.raw
  49. echo "conversion finished"