dcd0ce9584
Add a file containing the tests for all of the redirect rules and set up whereto to run during the check. The test file is a template, just like the htaccess file, to ensure we auto-generate the rules for all of the various project redirects. Fix a few issues with the template generator that ended up producing duplicate or useless rules. Change-Id: I0d306149dc33f64d44d9482fab02101bd1f6d7f5 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
20 lines
530 B
Bash
Executable File
20 lines
530 B
Bash
Executable File
#!/bin/bash -xe
|
|
|
|
if [[ -d publish-docs/www/ ]]; then
|
|
output=publish-docs/www
|
|
else
|
|
output=publish-docs/
|
|
fi
|
|
|
|
.tox/checkbuild/bin/python tools/www-generator.py --verbose --source-directory www/ \
|
|
--output-directory $output $@
|
|
|
|
if [[ $? -eq 0 ]]; then
|
|
rsync -a www/static/ $output
|
|
fi
|
|
# publish-docs/www-index.html is the trigger for openstack-indexpage
|
|
# to include the file.
|
|
#mv publish-docs/www/www-index.html publish-docs/www-index.html
|
|
|
|
.tox/checkbuild/bin/whereto $output/.htaccess $output/redirect-tests.txt
|