source: tailor/tailor.py @ 305

Revision 305, 1.3 KB checked in by lele@…, 8 years ago (diff)

Explicitly license everything under GPL

Line 
1#!/usr/bin/env python
2# -*- mode: python; coding: utf-8 -*-
3# :Progetto: vcpx -- Frontend
4# :Creato:   lun 03 mag 2004 01:39:00 CEST
5# :Autore:   Lele Gaifax <lele@nautilus.homeip.net>
6# :Licenza:  GNU General Public License
7#
8
9"""
10Keep a tree in sync with its "upstream" repository of a (possibly)
11different format.
12
13For more documentation, see the README file from the distribution.
14"""
15
16__docformat__ = 'reStructuredText'
17
18if __name__ == '__main__':
19    import sys
20
21    if len(sys.argv)>1 and sys.argv[1] == 'test':
22        del sys.argv[1]
23        from unittest import main
24        main(module='vcpx.tests', argv=sys.argv)
25    else:
26        from vcpx.tailor import main, ExistingProjectError, ProjectNotTailored
27        from vcpx.target import TargetInitializationFailure
28        from vcpx.source import InvocationError, GetUpstreamChangesetsFailure,\
29             ChangesetApplicationFailure
30        from vcpx.cvs import EmptyRepositoriesFoolsMe
31       
32        if len(sys.argv) == 1:
33            sys.argv.append('--help')
34
35        try:
36            main()
37        except (ExistingProjectError, ProjectNotTailored,
38                TargetInitializationFailure, EmptyRepositoriesFoolsMe,
39                InvocationError, GetUpstreamChangesetsFailure,
40                ChangesetApplicationFailure), exc:
41            print "%s: %s" % (exc.__doc__, exc)
42
43
Note: See TracBrowser for help on using the repository browser.