Hi, All This is Simple script to monitor update informations of android.git.kernel tree.
Most of developers are busy because of their task in the company like me, At lease, I am using this script usefully. And, If you wanna linke mailman, you will archive change logs. ---------------------------------------------------------------------------------------------------------------- Fedora9#> vi /etc/androidauto.sh #!/bin/bash # # Name : simple script to inform update contents of android.git.kernel.org # Author : Lim,GeunSik # Date : Dec-27, 2008 # #------------- config information -------------------------------- TODAY=`date +"%Y%m%d-%H%M"` MYDROID="/home/git/bin/mydroid" MAIL_TITLE="android git update report - $TODAY" LOG_FILE="tempfile.log" YOUREMAIL="lee...@gmail.com" #------------- Don't edit below code ----------------------------- pushd $MYDROID if [[ ! -f ./$LOG_FILE ]]; then touch ./$LOG_FILE ; fi echo " " > ./$LOG_FILE echo $MAIL_TITLE >> ./$LOG_FILE echo "========================================" >> ./$LOG_FILE echo " ( $TODAY ) " >> ./$LOG_FILE echo " " >> ./$LOG_FILE echo " " >> ./$LOG_FILE echo "*Start time:" >> ./$LOG_FILE uptime >> ./$LOG_FILE echo "--------------------------------------------" >> ./$LOG_FILE echo " " >> ./$LOG_FILE # sync git tree and save display messages ../repo sync >> ./$LOG_FILE 2>&1 echo " " >> ./$LOG_FILE echo " " >> ./$LOG_FILE echo "--------------------------------------------" >> ./$LOG_FILE echo "*End time:" >> ./$LOG_FILE uptime >> ./$LOG_FILE echo " " >> ./$LOG_FILE echo "All Done..." >> ./$LOG_FILE # send email notice cat ./$LOG_FILE | mail -s "$MAIL_TITLE" $YOUREMAIL if [[ -f ./$LOG_FILE ]]; then rm -f ./$LOG_FILE ; fi popd echo "--------------------------------------------" echo -en "a"; sleep 1 echo -en "a"; sleep 1 echo -en "a"; sleep 1 echo -en "a"; sleep 1 Fedora9#> chmod 755 Fedora9#> vi /etc/crontab # Synchronize android.git.kernel.org git tree on AM 06:30 everyday. 30 6 * * * root /home/git/androidreposync.sh end of line. --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---