Skip to content

Commit

Permalink
Fixed production script
Browse files Browse the repository at this point in the history
  • Loading branch information
bjornd committed Jan 6, 2013
1 parent 5486de8 commit 3ba4c85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 86 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -1 +1,3 @@
.DS_Store
index.html
index-prod.html
83 changes: 0 additions & 83 deletions index-prod.html-e

This file was deleted.

7 changes: 4 additions & 3 deletions production.sh
@@ -1,5 +1,6 @@
#!/bin/bash

gacode=`cat gacode`
sed '/%gacode%/r gacode' <index-dev.html >index-prod.html
sed -i -e 's/%gacode%//g' index-prod.html
sed '/%gacode%/{
s/%gacode%//g
r gacode
}' <index-dev.html >index-prod.html

0 comments on commit 3ba4c85

Please sign in to comment.