calligra/calligra-autoupdate

16 lines
460 B
Plaintext
Raw Normal View History

#!/bin/sh
CALLIGRA_VERSION=$1
if [ -z "$CALLIGRA_VERSION" ]; then
echo "Usage: $0 <version>"
exit 2
fi
rm -rf calligra-$CALLIGRA_VERSION
mkdir calligra-$CALLIGRA_VERSION
cd calligra-$CALLIGRA_VERSION
wget -r -N -l 1 -np -nd -A "*.tar.xz" http://download.kde.org/stable/calligra-$CALLIGRA_VERSION/calligra-l10n/
tar -cJ calligra-l10n-*-$CALLIGRA_VERSION.tar.xz > ../calligra-l10n-$CALLIGRA_VERSION-langpacks.tar.xz
rm -rf calligra-$CALLIGRA_VERSION