Skip to content

Commit

Permalink
Add the LXQt release script
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Feb 7, 2015
1 parent 5d327c3 commit 8b1e8e8
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

if [[ -z $1 ]]; then
echo "Usage: $0 [TAG]"
exit 1
fi

mkdir -p "dist/$1"

files=(
"liblxqt"
"liblxqt-mount"
"lxqt-about"
"lxqt-admin"
"lxqt-common"
"lxqt-config"
"lxqt-globalkeys"
"lxqt-notificationd"
"lxqt-openssh-askpass"
"lxqt-panel"
"lxqt-policykit"
"lxqt-powermanagement"
"lxqt-qtplugin"
"lxqt-runner"
"lxqt-session"
"pcmanfm-qt"
)

for f in ${files[@]}; do
cd "$f"
git tag -fam "Release v$1" $1 && git push --tags --force

echo "Packaging $f"
git archive --prefix=$f-$1/ $1 -o "../dist/$1/$f-$1.tar.gz"
gpg --armor --detach-sign "../dist/$1/$f-$1.tar.gz"
git archive --prefix=$f-$1/ $1 -o "../dist/$1/$f-$1.tar.xz"
gpg --armor --detach-sign "../dist/$1/$f-$1.tar.xz"
cd ..
done

echo "Done. Uploading..."

cd "dist/$1"
sha1sum --tag *-$1.*z > CHECKSUMS
sha256sum --tag *-$1.*z >> CHECKSUMS
cd ..
scp -r $1 lxde.org:/var/www/lxqt/downloads/lxqt

0 comments on commit 8b1e8e8

Please sign in to comment.