Last change
on this file since 14771 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 |
|
---|
5 | property=$1
|
---|
6 | file=$2
|
---|
7 |
|
---|
8 | if [ "$property" == "" ] || [ "$file" == "" ]; then
|
---|
9 | exit -1
|
---|
10 | fi
|
---|
11 |
|
---|
12 | #echo find line, strip property, honour comments
|
---|
13 | rval=`egrep ^$property[:=] $file | sed s/$property[:=]// | sed s/\#.*//g`
|
---|
14 |
|
---|
15 | #echo strip trailing whitespace
|
---|
16 | echo $rval | sed 's/ *$//'
|
---|
Note:
See
TracBrowser
for help on using the repository browser.