2
# vim: tabstop=4 shiftwidth=4 softtabstop=4
4
# Copyright 2012 SINA Corporation
6
# Author: Zhongyue Luo <lzyeval@gmail.com>
8
# Licensed under the Apache License, Version 2.0 (the "License"); you may
9
# not use this file except in compliance with the License. You may obtain
10
# a copy of the License at
12
# http://www.apache.org/licenses/LICENSE-2.0
14
# Unless required by applicable law or agreed to in writing, software
15
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
16
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
17
# License for the specific language governing permissions and limitations
20
FILES=$(find heat -type f -name "*.py" ! -path "heat/tests/*" -exec \
21
grep -l "Opt(" {} \; | sort -u)
23
DEST=${1:-etc/heat/heat.conf.sample}
25
PYTHONPATH=./:${PYTHONPATH} \
26
python $(dirname "$0")/../../heat/openstack/common/config/generator.py ${FILES} > $DEST