forked from root/threadr.lostcave.ddnss.de
added variable replacement command for %CONTENT_DIR%
parent
ad5722995d
commit
8b29fc9f48
|
@ -3,5 +3,9 @@ echo "Deployment script for repository \"web-deployment\"
|
||||||
`date`
|
`date`
|
||||||
=============================================================================="
|
=============================================================================="
|
||||||
|
|
||||||
|
echo "Replacing %CONTENT_DIR% in all HTML and PHP files."
|
||||||
|
CONTENT_DIR="/common/content"
|
||||||
|
echo -e "`find ./ -name '*.html' -or -name '*.php' | sed "s/^/workingfile=\'/;s/\$/\'\; cat \\\$workingfile > .\/tmpdeploymentfile\; cat tmpdeploymentfile | sed \'s#%CONTENT_DIR%#\$CONTENT_DIR#\' > \\\$workingfile/"`\nrm tmpdeploymentfile"
|
||||||
|
|
||||||
echo "==============================================================================
|
echo "==============================================================================
|
||||||
Done."
|
Done."
|
||||||
|
|
Loading…
Reference in New Issue