Skip to content

Commit

Permalink
Fixing sed replacements
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Kirchner <[email protected]>
  • Loading branch information
mkirchner committed Jan 23, 2012
1 parent c81e790 commit 494ee4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ done
FILES=`egrep -Rl '__[Pp][Rr][oO][jJ]|__targetname__' * | grep -v config_template.sh`
for f in ${FILES} ; do
echo "Replacing variables in $f."
sed -i .bak "s/__projectname__/$PROJECTNAME_LOWERCASE/g;s/__PROJECTNAME__/$PROJECTNAME_UPPERCASE;s/__targetname__/$TARGETNAME/g" $f
rm $f.bak
echo sed -i .bak "s/__projectname__/$PROJECTNAME_LOWERCASE/g;s/__PROJECTNAME__/$PROJECTNAME_UPPERCASE/g;s/__targetname__/$TARGETNAME/g" $f
rm -f $f.bak
done

# remove git versioning
Expand Down

0 comments on commit 494ee4a

Please sign in to comment.