diff --git a/deployment-script.sh b/deployment-script.sh index 126e423..d20b80e 100755 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -3,7 +3,8 @@ echo "Deployment script for repository \"web-deployment\" `date` ==============================================================================" -echo -n "`find -name "*.php" -or -name "*.html" | sed 's/^/python variable_grabbler.py /;s/$/ variable_grabbler.cfg/'`" | bash - +echo -n "`find -name "*.php" -or -name "*.html" | sed 's/^/python variable_grabbler.py /;s/$/ variable_grabbler.pass0.json/'`" | bash - +echo -n "`find -name "*.php" -or -name "*.html" | sed 's/^/python variable_grabbler.py /;s/$/ variable_grabbler.pass1.json/'`" | bash - echo "============================================================================== Done." diff --git a/variable_grabbler.pass0.json b/variable_grabbler.pass0.json new file mode 100644 index 0000000..ca0f653 --- /dev/null +++ b/variable_grabbler.pass0.json @@ -0,0 +1,4 @@ +{ +"LOGIN_LINK":"Log out\";} else { echo \"Log in\";} ?>", +"HOME_LINK":"\\\"My\";} else { echo \"\\\"Home\\\"/\";} ?>" +} diff --git a/variable_grabbler.cfg b/variable_grabbler.pass1.json similarity index 100% rename from variable_grabbler.cfg rename to variable_grabbler.pass1.json