Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit d47bdaf

Browse files
committed
Version bumb
1 parent 16b1816 commit d47bdaf

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

ifj2017/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from os import path
33

44
__PROJECT_ROOT__ = path.join(path.abspath(path.dirname(__file__)), '..')
5-
__version__ = version = '1.4.10'
5+
__version__ = version = '1.4.11'

utils/release.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
# coding=utf-8
3+
import os
34
import sys
45
from argparse import ArgumentParser
56
from collections import Counter
@@ -68,6 +69,7 @@ def deploy(source_dir, to_archive, tests=False):
6869
source_files = set(glob1(source_dir, '*.c') + glob1(source_dir, '*.h') + glob1(source_dir, 'Makefile'))
6970
source_files.add(join(source_dir, '../rozdeleni'))
7071
source_files.add(join(source_dir, '../rozsireni'))
72+
source_files.add(join(source_dir, '../doc/build/doc.pdf'))
7173

7274
to_archive = '{}.tgz'.format(to_archive)
7375
try:
@@ -90,6 +92,9 @@ def deploy(source_dir, to_archive, tests=False):
9092
if basename(file_) in {'rozsireni', 'rozdeleni'}:
9193
target_archive.add(file_, arcname=basename(file_))
9294
continue
95+
if basename(file_) in {'doc.pdf', }:
96+
target_archive.add(file_, arcname='dokumentace.pdf')
97+
continue
9398

9499
modified = mktemp()
95100

@@ -108,8 +113,11 @@ def main():
108113
description='Script for deploying archive with IFJ17 compiler.',
109114
)
110115

111-
parser.add_argument("source_dir", help="path to src of project")
112-
parser.add_argument("archive_name", help="name of produced")
116+
parser.add_argument(
117+
"--source_dir", help="path to src of project", type=str,
118+
default=os.path.expanduser('~/projects/IFJ-VUT-BIT-2017-2018/src')
119+
)
120+
parser.add_argument("--archive_name", help="name of produced", type=str, default='xkobel02')
113121
parser.add_argument("--tests", help="include tests?", action='store_true')
114122

115123
args = parser.parse_args()

0 commit comments

Comments
 (0)