source: trunk/getgitrev.sh @ 3054

Last change on this file since 3054 was 3054, checked in by Kana Sugimoto, 9 years ago

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: build asap using CMake

Put in Release Notes: No

Module(s): build of asap by CMake

Description: Committing the changes sent by Ville to support git migration


  • Property svn:executable set to *
File size: 467 bytes
Line 
1#! /bin/bash
2
3# Tack dummy values in svninfo.txt
4OUT=python/svninfo.txt
5SRCVER="1"
6HTTPS="git"
7echo "$HTTPS" > $OUT
8echo "$SRCVER" >> $OUT
9date "+%b %d %Y, %H:%M:%S" >> $OUT
10
11# Replace svn $date$ witg current date in __init__.py
12dat=`date`
13INITPY=python/__init__.py
14sed s/\\\'\\\$Date\\\$\\\'\\\.split\(\)\\\[1\\\]/replacethisstring/g $INITPY > tmpinit.txt
15sed "s/replacethisstring/\"$dat\"/g"  tmpinit.txt > tmpinitmodified.txt
16mv tmpinitmodified.txt $INITPY
17exit 0
Note: See TracBrowser for help on using the repository browser.