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 59
|
#!/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 ./common/man/C/*.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 -rf ${NEW}/.git
rm -rf ${NEW}/.github
rm -rf ${NEW}/.pytest_cache
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}/LICENSE \
${NEW}/README.md \
${NEW}/FAQ.md \
${NEW}/CONTRIBUTING.md \
${NEW}/HISTORY.md \
${NEW}/TRANSLATIONS \
${NEW}/VERSION \
${NEW}/updateversion.sh \
${NEW}/common \
${NEW}/qt \
${NEW}/LICENSES \
${NEW}/doc
tar -tzf backintime-$VER.tar.gz
echo ""
echo "RESULT:"
realpath backintime-$VER.tar.gz
rm -rf ${NEW}
|