From c5a805c8c741ecf5ca9c17a1469383ce9d710371 Mon Sep 17 00:00:00 2001 From: Zhongyue Luo Date: Wed, 12 Jun 2013 14:59:09 +0800 Subject: [PATCH] Remove bin lookup in conf sample generator As of 584b2f, the bin directory has been removed. No longer need to handle bin/ Change-Id: Ic5013cd27d7e420a6a01d207546f7ac0258d62d1 --- tools/conf/generate_sample.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/tools/conf/generate_sample.sh b/tools/conf/generate_sample.sh index 89bae8ab819b..44d4672b6e60 100755 --- a/tools/conf/generate_sample.sh +++ b/tools/conf/generate_sample.sh @@ -21,15 +21,9 @@ FILES=$(find nova -type f -name "*.py" ! -path "nova/tests/*" \ -exec grep -l "Opt(" {} + | sort -u) -BINS=$(echo bin/nova-* | grep -v nova-rootwrap) export EVENTLET_NO_GREENDNS=yes MODULEPATH=$(dirname "$0")/../../nova/openstack/common/config/generator.py OUTPUTPATH=etc/nova/nova.conf.sample -PYTHONPATH=./:${PYTHONPATH} python $MODULEPATH $FILES $BINS > $OUTPUTPATH - -# Remove compiled files created by imp.import_source() -for bin in ${BINS}; do - [ -f ${bin}c ] && rm ${bin}c -done +PYTHONPATH=./:${PYTHONPATH} python $MODULEPATH $FILES > $OUTPUTPATH