openstack-doc-tools/autogenerate_config_docs/test/genconfs.sh
Christian Berendt 709e93c8d7 Remove extraneous vim editor configuration comments
Change-Id: I60a3dac52844400b4b92532edfebd0bc9aa49c78
Partial-Bug: #1229324
2014-10-08 23:00:00 +02:00

31 lines
709 B
Bash
Executable File

#!/usr/bin/env bash
proj_list="ceilometer cinder glance keystone nova neutron"
#proj_list="keystone"
for proj in ${proj_list}; do
cd ${proj};
# -o ! -path "build/*" \
FILES=$(find ${proj} -type f -name "*.py" ! -path "${proj}/tests/*" \
! -path "build/*" \
-exec grep -l "Opt(" {} \; | sort -u)
BINS=$(echo bin/${proj}-* | grep -v ${proj}-rootwrap)
export EVENTLET_NO_GREENDNS=yes
PYTHONPATH=./:${PYTHONPATH} \
python $(dirname "$0")/../generator.py ${FILES} ${BINS} > \
../${proj}.conf.sample
# Remove compiled files created by imp.import_source()
for bin in ${BINS}; do
[ -f ${bin}c ] && rm ${bin}c
done
cd -
done