forked from andoma/movian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian.sh
executable file
·35 lines (26 loc) · 841 Bytes
/
debian.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
26
27
28
29
30
31
32
33
34
CHANGELOG=debian/changelog
NOW=`date -R`
VER=`git describe | sed "s/\([0-9]*\)\.\([0-9]*\)-\([0-9]*\)-.*/\1.\2.\3/"`
echo >${CHANGELOG} "showtime (${VER}) unstable; urgency=low"
echo >>${CHANGELOG}
echo >>${CHANGELOG} " * The full changelog can be found at "
echo >>${CHANGELOG} " http:https://www.lonelycoder.com/showtime/download"
echo >>${CHANGELOG}
echo >>${CHANGELOG} " -- Andreas Öman <[email protected]> ${NOW}"
export JARGS
export ARCH
if ccache=$(which ccache); then
echo "Using ccache"
ccache -s
USE_CCACHE="--ccache"
else
USE_CCACHE=""
fi
export USE_CCACHE
dpkg-buildpackage -b -us -uc
for a in ../showtime*${VER}*.deb; do
versioned_artifact "$a" deb application/x-deb `basename $a`
done
for a in ../showtime*${VER}*.changes; do
versioned_artifact "$a" changes text/plain `basename $a`
done