summaryrefslogtreecommitdiff
path: root/bin/git-build-recipe
blob: 3f4bd34063bf3c670c21e404e115c0e0e5dfb90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /usr/bin/python3

# Copyright 2015 Canonical Ltd.
#
# This program is free software: you can redistribute it and/or modify it 
# under the terms of the GNU General Public License version 3, as published 
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but 
# WITHOUT ANY WARRANTY; without even the implied warranties of 
# MERCHANTABILITY, SATISFACTORY QUALITY, 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 this program.  If not, see <http://www.gnu.org/licenses/>.

"""A Git command to construct trees based on recipes."""

import os
import sys

try:
    import imp
    imp.find_module("gitbuildrecipe")
except ImportError:
    # Support running from the build tree.
    sys.path.insert(0, os.path.join(sys.path[0], os.pardir))

from gitbuildrecipe.main import main


if __name__ == "__main__":
    sys.exit(main())