forked from libimobiledevice-win32/usbmuxd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmake-deb.sh
executable file
·26 lines (18 loc) · 888 Bytes
/
make-deb.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export DEBEMAIL="[email protected]"
export DEBFULLNAME="Frederik Carlier"
git clean -xfd
git config --global user.name "$DEBFULLNAME"
git config --global user.email "$DEBEMAIL"
dch -v "1.1.1.$TRAVIS_BUILD_NUMBER-0$1" --distribution $1 "Travis CI Build - Git SHA $TRAVIS_COMMIT"
git add debian/changelog
git commit -m "Travis CI Build for Git SHA $TRAVIS_COMMIT"
git archive --format tar.gz -o ../usbmuxd_1.1.1.${TRAVIS_BUILD_NUMBER}.orig.tar.gz $TRAVIS_COMMIT
echo allow-loopback-pinentry > ~/.gnupg/gpg-agent.conf
gpg --allow-secret-key-import --import ppa.asc
killall gpg-agent
echo "${GPG_PASSPHRASE}" >> /tmp/gpg_passphrase
debuild -S -kFBA0ACB4 -p"$DIR/gpg-pass.sh /tmp/gpg_passphrase"
rm -rf /tmp/gpg_passphrase
dput ppa:quamotion/ppa ../usbmuxd_1.1.1.${TRAVIS_BUILD_NUMBER}-0$1_source.changes