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