Debian Codegraph @

ci/jipconf_subst.py

raw
1 #!/usr/bin/env python
2 from __future__ import print_function
3 from os import path
4 import sys
5
6 home=sys.argv[1]
7 dist=sys.argv[2]
8 with open(path.join(home, '.jip_config'), "w") as out:
9 print("""[repos:local]
10 uri={0}/.m2/repository/
11 type=local
12
13 [repos:central]
14 uri=https://repo1.maven.org/maven2/
15 type=remote
16 """.format(dist), file=out)