From 661fa204dc2e664935506791ad6f0e254556266b Mon Sep 17 00:00:00 2001 From: Timothy Prepscius Date: Sun, 29 Sep 2013 19:19:44 -0400 Subject: [PATCH] fixes bug with replacing ##COMPANY##, sed sort of sucks --- build/compile-web-html | 3 +++ build/replace_html.sed | 4 ---- web/signup/SignUp.html | 15 ++++++++------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/build/compile-web-html b/build/compile-web-html index 2adc4fb..a83e3d1 100755 --- a/build/compile-web-html +++ b/build/compile-web-html @@ -5,6 +5,7 @@ V=$1 M=$2 APP_TITLE=`cat ../config/title` +COMPANY=`cat ../config/company` dst=www cmn_src=../web/common @@ -23,7 +24,9 @@ function replaceStrings() { sed -i '' -e s/__VERSION__/$V/g $1 sed -i '' -e s/__THIS_YEAR__/2013/g $1 + echo $COMPANY sed -i '' -e s/{##TITLE##}/$APP_TITLE/g $1 + sed -i '' -e s/{##COMPANY##}/"$COMPANY"/g $1 } echo Compiling CSS/JS diff --git a/build/replace_html.sed b/build/replace_html.sed index 0f6afac..191d7bc 100644 --- a/build/replace_html.sed +++ b/build/replace_html.sed @@ -24,8 +24,4 @@ d } -/{##COMPANY##}/ { - r ../config/company - d -} diff --git a/web/signup/SignUp.html b/web/signup/SignUp.html index 2d74f5e..cdc0a29 100644 --- a/web/signup/SignUp.html +++ b/web/signup/SignUp.html @@ -173,8 +173,8 @@
I want to use the storage provider:

-
-
+
+

@@ -183,13 +183,14 @@
-

Mailiverse S3 backed storage

+

+ {##TITLE##} S3 backed storage

We provide infinite mail storage.
- Mailiverse S3 backed storage is simple, no hassle. We take care of everything.
+ {##TITLE##} S3 backed storage is simple, no hassle. We take care of everything.

Pick the region you are closest to most of the time.