source: other-projects/trunk/gs2-release-maker/bin/gsp.sh@ 15332

Last change on this file since 15332 was 14771, checked in by oranfry, 16 years ago

added all the stuff for gs2-release-maker

  • Property svn:executable set to *
File size: 334 bytes
Line 
1#!/bin/bash
2
3# gets a value from a properties file given a name
4
5property=$1
6file=$2
7
8if [ "$property" == "" ] || [ "$file" == "" ]; then
9 exit -1
10fi
11
12#echo find line, strip property, honour comments
13rval=`egrep ^$property[:=] $file | sed s/$property[:=]// | sed s/\#.*//g`
14
15#echo strip trailing whitespace
16echo $rval | sed 's/ *$//'
Note: See TracBrowser for help on using the repository browser.