removed my stupid way of handling variable replacement
parent
e76b0fe53a
commit
1f9552b48e
|
@ -1,17 +1,9 @@
|
||||||
function rewrite_code {
|
|
||||||
echo "Replacing $1 with $2 in all HTML and PHP files."
|
|
||||||
echo -e "`find ./ -name '*.html' -or -name '*.php' | sed "s/^/workingfile=\'/;s/\$/\'\; cat \\\$workingfile > .\/tmpdeploymentfile\; cat tmpdeploymentfile | sed \'s#$1#$2#\' > \\\$workingfile/"`\nrm tmpdeploymentfile" | bash -
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "Deployment script for repository \"web-deployment\"
|
echo "Deployment script for repository \"web-deployment\"
|
||||||
`date`
|
`date`
|
||||||
=============================================================================="
|
=============================================================================="
|
||||||
|
|
||||||
rewrite_code %CONTENT_DIR% "\/common\/threadr"
|
python variable_grabbler.py
|
||||||
#rewrite_code %ENFORCE_IP% `cat enforce_ip.template`
|
|
||||||
|
|
||||||
|
|
||||||
echo "==============================================================================
|
echo "==============================================================================
|
||||||
Done."
|
Done."
|
||||||
|
|
Loading…
Reference in New Issue