Advertisement
savoxis

Okie Dokie

Apr 12th, 2011
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.55 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. version=`ls -ltr /home/savoxis/Storage/Android/trident/*.zip | awk '{ print $8 }' | tail -1 | sed "s/[^0-9]//g"`
  4. newversion=`expr $version + 1
  5.  
  6. source=~/Android/Source/CyanogenMod/Gingerbread
  7. vendor=htc
  8. board=mecha
  9. lunch=htc_mecha-eng
  10. done=update-cm-nightly-signed.zip
  11. filepath=~/Android/Nightlies/$board
  12. file=cm-nightly-$board-full-KANG-$newversion.zip
  13. file_md5=cm-nightly-$board-full-KANG-$newversion.zip.md5sum
  14.  
  15. # Move and rename file
  16. mv $source/out/target/product/$board/$done $filepath/$file
  17. cd $filepath
  18. md5sum $file > $file_md5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement