Advertisement
souper

Untitled

Jun 19th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. #!/bin/bash
  2. DIR=/raid/Ayysir/pa
  3. OUTDIR=/raid/Ayysir/PA_out
  4. ROMDIR=$DIR/out/target/product/
  5. export curdate=`date "+%0d%^b%Y"`
  6. lastver=nightly-$(date --date=yesterday +%0d%^b%Y)
  7. ver=nightly-$curdate
  8.  
  9. ##########################################################
  10. cp $DIR/.repo/manifest.xml $OUTDIR/manifest-$ver.xml
  11.  
  12. if [ -f $OUTDIR/Finish.log ]; then
  13. android-changelog -f html \
  14. $OUTDIR/manifest-$lastver.xml \
  15. $OUTDIR/manifest-$ver.xml \
  16. > $OUTDIR/changelog-$ver.html
  17. ncftpput -b /home/Ayysir/hostname /ParanoidAndroid/manifest_changelogs $OUTDIR/changelog-$ver.html
  18. fi
  19.  
  20. cp $DIR/changes.log $OUTDIR/detail_changelog-$ver.xml
  21. if [ -f $DIR/changes.log ]; then
  22. android-changelog -f html \
  23. $OUTDIR/detail_changelog-$lastver.log \
  24. $OUTDIR/detail_changelog-$ver.log \
  25. > $OUTDIR/detail_changelog-$ver.html
  26. ncftpput -b /home/Ayysir/hostname /ParanoidAndroid/changelogs $OUTDIR/detail_changelog-$ver.html
  27. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement