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

Commit

Permalink
Version bumb
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Dec 6, 2017
1 parent 16b1816 commit d47bdaf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ifj2017/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from os import path

__PROJECT_ROOT__ = path.join(path.abspath(path.dirname(__file__)), '..')
__version__ = version = '1.4.10'
__version__ = version = '1.4.11'
12 changes: 10 additions & 2 deletions utils/release.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
# coding=utf-8
import os
import sys
from argparse import ArgumentParser
from collections import Counter
Expand Down Expand Up @@ -68,6 +69,7 @@ def deploy(source_dir, to_archive, tests=False):
source_files = set(glob1(source_dir, '*.c') + glob1(source_dir, '*.h') + glob1(source_dir, 'Makefile'))
source_files.add(join(source_dir, '../rozdeleni'))
source_files.add(join(source_dir, '../rozsireni'))
source_files.add(join(source_dir, '../doc/build/doc.pdf'))

to_archive = '{}.tgz'.format(to_archive)
try:
Expand All @@ -90,6 +92,9 @@ def deploy(source_dir, to_archive, tests=False):
if basename(file_) in {'rozsireni', 'rozdeleni'}:
target_archive.add(file_, arcname=basename(file_))
continue
if basename(file_) in {'doc.pdf', }:
target_archive.add(file_, arcname='dokumentace.pdf')
continue

modified = mktemp()

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

parser.add_argument("source_dir", help="path to src of project")
parser.add_argument("archive_name", help="name of produced")
parser.add_argument(
"--source_dir", help="path to src of project", type=str,
default=os.path.expanduser('~/projects/IFJ-VUT-BIT-2017-2018/src')
)
parser.add_argument("--archive_name", help="name of produced", type=str, default='xkobel02')
parser.add_argument("--tests", help="include tests?", action='store_true')

args = parser.parse_args()
Expand Down

0 comments on commit d47bdaf

Please sign in to comment.