Last change
on this file since 2378 was
2100,
checked in by Takeshi Nakazato, 13 years ago
|
New Development: No
JIRA Issue: No
Ready for Test: Yes
Interface Changes: No
What Interface Changed: Please list interface changes
Test Programs: build from scratch and run asap_init
Put in Release Notes: No
Module(s): Module Names change impacts.
Description: Describe your changes here...
Bug fix on getsvnref.sh, which creates svninfo.txt that is referred from
env.get_revision() to get revision number.
|
|
File size:
982 bytes
|
Rev | Line | |
---|
[1757] | 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 |
---|
| 7 | if test ! -d .svn; then |
---|
| 8 | exit 0; |
---|
| 9 | fi |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | OUT=python/svninfo.txt |
---|
| 13 | |
---|
| 14 | INFOTOP=`svn info | awk '/Last Changed Rev:/ { print $4} /URL:/ { print $2 }'` |
---|
| 15 | SRCVER=`svn info src/.svn | awk '/Last Changed Rev:/ { print $4}'` |
---|
| 16 | PYVER=`svn info python/.svn | awk '/Last Changed Rev:/ { print $4}'` |
---|
| 17 | |
---|
| 18 | #HTTPS="https://svn.cv.nrao.edu/svn/casa" |
---|
| 19 | HTTPS="https://svn.atnf.csiro.au/asap/branches/alma" |
---|
| 20 | for i in $INFOTOP; do |
---|
| 21 | echo $i |
---|
| 22 | if test ${i:0:4} = "http"; then |
---|
[2100] | 23 | #if test ${i:0:5} = "https"; then |
---|
| 24 | # echo ${i#${HTTPS}} > $OUT |
---|
| 25 | #fi |
---|
| 26 | echo ${i} > $OUT |
---|
[1757] | 27 | else |
---|
| 28 | if test $SRCVER -gt $i; then |
---|
| 29 | echo $SRCVER >> $OUT |
---|
| 30 | elif test $PYVER -gt $i; then |
---|
| 31 | echo $PYVER >> $OUT |
---|
| 32 | else |
---|
| 33 | #echo $i | tee -a $OUT |
---|
| 34 | echo $i >> $OUT |
---|
| 35 | fi |
---|
| 36 | fi |
---|
| 37 | done |
---|
| 38 | |
---|
| 39 | date "+%b %d %Y, %H:%M:%S" >> $OUT |
---|
| 40 | |
---|
| 41 | exit 0 |
---|
| 42 | |
---|
Note: See
TracBrowser
for help on using the repository browser.