diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-08-01 21:51:50 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-08-01 21:58:37 -0700 |
commit | d53d9bf0e55fddd814ad99ec89134a7228390c65 (patch) | |
tree | 7c1a4a214a8e81c9ed28ac4ea3acc7826796781c /demo-project/configure | |
parent | a3405560a639e8ee90457d78a9b393dde91d8781 (diff) | |
download | attobuild-d53d9bf0e55fddd814ad99ec89134a7228390c65.tar.gz attobuild-d53d9bf0e55fddd814ad99ec89134a7228390c65.tar.bz2 attobuild-d53d9bf0e55fddd814ad99ec89134a7228390c65.tar.xz attobuild-d53d9bf0e55fddd814ad99ec89134a7228390c65.zip |
Put some important files in a skeleton
Diffstat (limited to 'demo-project/configure')
-rwxr-xr-x | demo-project/configure | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/demo-project/configure b/demo-project/configure new file mode 100755 index 0000000..8f09a35 --- /dev/null +++ b/demo-project/configure @@ -0,0 +1,39 @@ +#!/usr/bin/env python + +# Copyright 2013 Ben Longbons <b.r.longbons@gmail.com> +# +# This file is part of attoconf. +# +# attoconf is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# attoconf is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with attoconf. If not, see <http://www.gnu.org/licenses/>. + +from __future__ import print_function, division, absolute_import + +import os +import sys + +from attoconf.version import require_version, string as version_string +require_version(0, 0) + +from attoconf.core import Project, Build + +def main(): + print('Using', version_string) + src = Project(os.path.dirname(sys.argv[0])) + # customizations go here + + # the rest shouldn't change + build = Build(src, '.') + build.configure(sys.argv[1:], os.environ) + +main() |