File: make-tarball.sh

package info (click to toggle)
backintime 1.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,424 kB
  • sloc: python: 27,312; sh: 886; makefile: 174; xml: 62
file content (58 lines) | stat: -rwxr-xr-x 1,333 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# SPDX-FileCopyrightText: © 2013 Oprea Dan
# SPDX-FileCopyrightText: © 2013 Germar Reitze
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This file is part of the program "Back In time" which is released under GNU
# General Public License v2 (GPLv2). See LICENSES directory or go to
# <https://spdx.org/licenses/GPL-2.0-or-later.html>.
VER=`cat VERSION`
CURRENT=$(pwd)
NEW="backintime-$VER"

# clean up
rm ./doc/manpages/*.gz

cd ..

# if [[ -n "$(which git)" ]] && [[ -x "$(which git)" ]]; then
#     git clone ${CURRENT} ${NEW}
# else
#     cp -aR ${CURRENT} ${NEW}
# fi

cp -aR ${CURRENT} ${NEW}

rm backintime-$VER.tar.gz

tar cfz backintime-$VER.tar.gz \
    --exclude="*/__pycache__" \
    --exclude="*/.pytest_cache" \
    --exclude="*/.ruff_cache" \
    --exclude="*/po/*.mo" \
    --exclude-vcs \
    ${NEW}/AUTHORS \
    ${NEW}/CHANGES \
    ${NEW}/CONTRIBUTING.md \
    ${NEW}/FAQ.md \
    ${NEW}/HISTORY.md \
    ${NEW}/LICENSES.md \
    ${NEW}/README.md \
    ${NEW}/REUSE.toml \
    ${NEW}/VERSION \
    ${NEW}/updateversion.sh \
    ${NEW}/update_language_files.py \
    ${NEW}/create-manpage-backintime-config.py \
    ${NEW}/common \
    ${NEW}/qt \
    ${NEW}/LICENSES \
    ${NEW}/doc

tar -tzf backintime-$VER.tar.gz
echo ""
echo "RESULT:"
realpath backintime-$VER.tar.gz

rm -rf backintime-$VER