-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d327c3
commit 8b1e8e8
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |