source: branches/newfiller/getsvnrev.sh@ 2498

Last change on this file since 2498 was 1757, checked in by Kana Sugimoto, 14 years ago

New Development: Yes

JIRA Issue: Yes (CAS-2211)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: ASAP 3.0.0 interface changes

Test Programs:

Put in Release Notes: Yes

Module(s): all the CASA sd tools and tasks are affected.

Description: Merged ATNF-ASAP 3.0.0 developments to CASA (alma) branch.

Note you also need to update casa/code/atnf.


File size: 956 bytes
Line 
1#! /bin/bash
2
3# Store info about which svn branch, what revision and at what date/time
4# we executed make.
5
6# if we don't see the .svn directory, just return
7if test ! -d .svn; then
8 exit 0;
9fi
10
11
12OUT=python/svninfo.txt
13
14INFOTOP=`svn info | awk '/Last Changed Rev:/ { print $4} /URL:/ { print $2 }'`
15SRCVER=`svn info src/.svn | awk '/Last Changed Rev:/ { print $4}'`
16PYVER=`svn info python/.svn | awk '/Last Changed Rev:/ { print $4}'`
17
18#HTTPS="https://svn.cv.nrao.edu/svn/casa"
19HTTPS="https://svn.atnf.csiro.au/asap/branches/alma"
20for i in $INFOTOP; do
21 echo $i
22 if test ${i:0:4} = "http"; then
23 if test ${i:0:5} = "https"; then
24 echo ${i#${HTTPS}} > $OUT
25 fi
26 else
27 if test $SRCVER -gt $i; then
28 echo $SRCVER >> $OUT
29 elif test $PYVER -gt $i; then
30 echo $PYVER >> $OUT
31 else
32 #echo $i | tee -a $OUT
33 echo $i >> $OUT
34 fi
35 fi
36done
37
38date "+%b %d %Y, %H:%M:%S" >> $OUT
39
40exit 0
41
Note: See TracBrowser for help on using the repository browser.