forked from plesk/centos2alma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUCK
29 lines (24 loc) · 734 Bytes
/
BUCK
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
# Copyright 1999-2024. WebPros International GmbH. All rights reserved.
# vim:ft=python:
PRODUCT_VERSION = '1.3.1'
genrule(
name = 'version',
out = 'version.json',
bash = r"""echo "{\"version\": \"%s\", \"revision\": \"`git rev-parse HEAD`\"}" > $OUT""" % (PRODUCT_VERSION),
)
python_binary(
name = 'centos2alma.pex',
platform = 'py3',
build_args = ['--python-shebang', '/usr/bin/env python3'],
main_module = 'centos2almaconverter.main',
deps = [
'dist-upgrader//pleskdistup:lib',
'//centos2almaconverter:lib',
],
)
genrule(
name = 'centos2alma',
srcs = [':centos2alma.pex'],
out = 'centos2alma',
cmd = 'cp $(location :centos2alma.pex) $OUT && chmod +x $OUT',
)