Last change
on this file since 3147 was 3029, checked in by Kana Sugimoto, 10 years ago |
New Development: Yes
JIRA Issue: Yes (CAS-6929)
Ready for Test: Yes
Interface Changes: No
What Interface Changed:
Test Programs:
Put in Release Notes: No
Module(s): asap as a whole
Description: committing Darrell's changes to make asap work with merged casacore.
|
|
File size:
955 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 | svn info > /dev/null 2>&1
|
---|
7 | if [ $? -ne 0 ]; then
|
---|
8 | exit 0;
|
---|
9 | fi
|
---|
10 |
|
---|
11 | OUT=python/svninfo.txt
|
---|
12 |
|
---|
13 | INFOTOP=`svn info | awk '/Last Changed Rev:/ { print $4} /URL:/ { print $2 }'`
|
---|
14 | SRCVER=`svn info src/.svn | awk '/Last Changed Rev:/ { print $4}'`
|
---|
15 | PYVER=`svn info python/.svn | awk '/Last Changed Rev:/ { print $4}'`
|
---|
16 |
|
---|
17 | #HTTPS="https://svn.cv.nrao.edu/svn/casa"
|
---|
18 | HTTPS="https://svn.atnf.csiro.au/asap/branches/alma"
|
---|
19 | for i in $INFOTOP; do
|
---|
20 | echo $i
|
---|
21 | if test ${i:0:4} = "http"; then
|
---|
22 | #if test ${i:0:5} = "https"; then
|
---|
23 | # echo ${i#${HTTPS}} > $OUT
|
---|
24 | #fi
|
---|
25 | echo ${i} > $OUT
|
---|
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
|
---|
36 | done
|
---|
37 |
|
---|
38 | date "+%b %d %Y, %H:%M:%S" >> $OUT
|
---|
39 |
|
---|
40 | exit 0
|
---|
41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.