Something along these lines would be great! It is a bit frustrating
querying the compiler and always getting 3.2 when you know that there
have been dozens of builds/patches under that banner...

> -----Original Message-----
> From: Pedro Zorzenon Neto [mailto:p...@terra.com.br] 
> Sent: Thursday, 16 October 2003 12:09 AM
> To: mspgcc list
> Subject: [Mspgcc-users] suggestion for msp430-gcc -v
> 
> 
> Hi Folks,
> 
>   It would be nice if when I execute: msp430-gcc -v
>   I could see the CVS checkout timestamp, this way, I could 
> know if my mspgcc is uptodate.
> 
>   I implemented a simple shell script to get the last CVS 
> timestamp and generate a file.h with a define that could be 
> used by the configure/make scripts.
> 
>   What do you think about this?
> 
>   Thanks,
>     Pedro
> 
> Shell script below
> 
> #! /bin/sh
> 
> TMP1="/tmp/mspgcc-newer-1"
> TMP2="/tmp/mspgcc-newer-2"
> cat /dev/null > $TMP1
> cat /dev/null > $TMP2
> for i in `find . -name Entries`; do
>     echo "Searching: $i"
>     egrep '^/.*/.*/.*/.*/' $i | cut -d '/' -f 4 >> $TMP1
> done
> 
> while read x; do
>     date --utc --date="$x" '+%Y-%m-%d %H:%M:%S' >> $TMP2
> done < $TMP1
> 
> LAST=`cat $TMP2 | sort | tail -n 1`
> rm -f $TMP1 $TMP2
> 
> echo $LAST > last-cvs-checkout
> echo "LASTCVSCHECKOUT='$LAST'" > last-cvs-checkout.sh
> echo "#define LASTCVSCHECKOUT \"$LAST\"" > last-cvs-checkout.h
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program. 
> SourceForge.net hosts over 70,000 Open Source Projects. See 
> the people who have HELPED US provide better services: Click 
> here: http://sourceforge.net/supporters.php
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> 
> 
--
This email is confidential and intended solely for the use of the individual to 
whom it is addressed.  Any views or opinions presented are solely those of the 
author and do not necessarily represent those of Nautronix Ltd.

If you are not the intended recipient, you have received this email in error 
and use, dissemination, forwarding, printing, or copying of this email is 
strictly prohibited.  If you have received this email in error please contact 
the sender.

Although our computer systems use active virus protection software, and we take 
various measures to reduce the risk of viruses being transmitted in e-mail 
messages and attachments sent from this company, we cannot guarantee that such
e-mail messages and attachments are free from viruses on receipt.  It is a 
condition of our using e-mail to correspond with you, that any and all 
liability on our part arising directly or indirectly out of any virus is 
excluded.
Please ensure that you run virus checking software on all e-mail messages and 
attachments before reading them.

Reply via email to