threadr.lostcave.ddnss.de/deployment-script.sh

19 lines
1.0 KiB
Bash
Raw Normal View History

2020-02-08 00:36:50 +01:00
#!/bin/bash
2020-02-12 10:26:59 +01:00
echo "Deployment script for repository \"web-deployment\"
`date`
=============================================================================="
2020-03-12 22:21:48 +01:00
#activate ** globs
if [ -n "`shopt globstar | grep off`" ]; then shopt -s globstar; fi
#remove READMEs
2020-04-08 02:10:05 +02:00
rm ./threadr/**/README.md
2020-03-12 22:21:48 +01:00
#run the macro handler
2021-09-08 07:54:39 +02:00
echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py.old /;s/$/ macros\/pass0\*.json/'`" | bash -
echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py.old /;s/$/ macros\/pass1\*.json/'`" | bash -
echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py.old /;s/$/ macros\/pass2\*.json/'`" | bash -
echo "`find -name "*.php" -or -name "*.html" -or -name "*.css" -or -name "*.svg" | sed 's/^/python variable_grabbler.py.old /;s/$/ macros\/pass3\*.json/'`" | bash -
2020-02-12 10:26:59 +01:00
echo "==============================================================================
Done."