katana/release.sh

34 lines
743 B
Bash
Raw Permalink Normal View History

2014-12-04 17:40:17 +00:00
#!/bin/bash
# NOTE: bump version in following files before release:
#
# - doxygen.conf
2015-03-01 05:27:57 +00:00
# - kdelibs/CMakeLists.txt
# - kdelibs/KDELibs4Config.cmake
# - kdelibs/cmake/modules/KDE4Defaults.cmake
# - kde-workspace/CMakeLists.txt
# - kde-extraapps/CMakeLists.txt
# - kde-extraapps/*/CMakeLists.txt
# - kde-l10n/CMakeLists.txt if required
# - packaging/*
2014-12-04 17:40:17 +00:00
set -e
version="$1"
packs=("ariya-icons" "kdelibs" "kde-workspace" "kde-extraapps" "kde-l10n")
2014-12-04 17:40:17 +00:00
cwd="$(pwd)"
2014-12-04 17:40:17 +00:00
if [ -z "$version" ];then
echo "Pass a version to release"
exit 1
fi
source "$(dirname $0)/fetch.sh"
for p in "${packs[@]}";do
echo "Packing $p ($version)..."
cd "$p"
git archive --prefix="$p-$version/" HEAD | xz > "$cwd/$p-$version.tar.xz"
cd "$cwd"
done