mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 12:28:31 +01:00
Add a script to upload builds to the stable PPA
This commit is contained in:
parent
7d6eee590a
commit
7ac7527d54
42
dist/uploadtoppa.sh
vendored
Executable file
42
dist/uploadtoppa.sh
vendored
Executable file
@ -0,0 +1,42 @@
|
||||
#!/bin/sh -e
|
||||
|
||||
BRANCH=$1
|
||||
DIST=$2
|
||||
|
||||
if [ -z "$BRANCH" -o -z "$DIST" ]; then
|
||||
echo "Usage: $0 <branch> <dist>"
|
||||
echo "Example: $0 tags/0.7 natty"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PPA=ppa:me-davidsansome/clementine
|
||||
REPO=http://svn.clementine-player.org/clementine-mirror/$1
|
||||
|
||||
BASE=`pwd`
|
||||
DIRECTORY=clementine
|
||||
|
||||
# Cleanup any old stuff
|
||||
rm -rfv $BASE/$DIRECTORY $BASE/*.diff.gz $BASE/*.tar.gz $BASE/*.dsc $BASE/*_source.changes
|
||||
|
||||
# Checkout
|
||||
svn checkout $REPO $DIRECTORY
|
||||
|
||||
# Generate changelog and maketarball.sh
|
||||
cd $BASE/$DIRECTORY/bin
|
||||
cmake .. -DDEB_DIST=$DIST -DWITH_DEBIAN=ON
|
||||
rm -rfv $BASE/$DIRECTORY/bin/*
|
||||
|
||||
# Create the tarball
|
||||
cd $BASE/$DIRECTORY/dist
|
||||
./maketarball.sh
|
||||
mv -v $BASE/$DIRECTORY/dist/*.orig.tar.gz $BASE/
|
||||
rm -v $BASE/$DIRECTORY/dist/*.tar.gz
|
||||
find $BASE/$DIRECTORY/ -depth -path '*/.svn*' -delete
|
||||
|
||||
# Build the deb
|
||||
cd $BASE/$DIRECTORY
|
||||
dpkg-buildpackage -S -kF6ABD82E
|
||||
|
||||
# Upload to ppa
|
||||
cd $BASE
|
||||
dput $PPA *_source.changes
|
Loading…
Reference in New Issue
Block a user