core: fix include path for the unit tests
[fbsplash.git] / release / roll-core.sh
blob303bccbe734396e3c00a0d24d7d9cbc8685cd032
1 #!/bin/bash
3 source /devel/common/functions.sh
5 TESTING=no
6 [[ -z "${*/*--testing*/}" && -n "$*" ]] && TESTING=yes
8 ver=$(grep AC_INIT ../core/configure.ac | sed -e 's/[^,]*, \[//' -e 's/\])//')
9 cdir=`pwd`
11 cd ..
12 rm -rf tmp/*
13 cd core
14 git archive --format=tar --prefix=splashutils/ HEAD | (cd ../tmp && tar xf -)
16 ebegin "Creating a tarball"
17 cd ../tmp/splashutils
18 autoreconf -i
19 ./configure
20 make dist-bzip2
21 mv splashutils*.tar.bz2 ${cdir}
22 eend $?
24 ebegin "Adding Debian data"
25 cd ${cdir}
26 tar jxf splashutils-${ver}.tar.bz2
27 cp -r ../debian splashutils-${ver}
28 tar cf - "splashutils-${ver}" | bzip2 -9 -f > splashutils-${ver}.tar.bz2
29 rm -rf splashutils-${ver}
30 eend $?
32 ebegin "Creating a lite tarball"
33 cp splashutils-${ver}.tar.bz2 splashutils-lite-${ver}.tar.bz2
34 rm -f splashutils-lite-${ver}.tar
35 bunzip2 splashutils-lite-${ver}.tar.bz2
36 tar --delete --wildcards -f splashutils-lite-${ver}.tar 'splashutils*/libs/libpng*' 'splashutils*/libs/zlib*' 'splashutils*/libs/jpeg*' 'splashutils*/libs/freetype*'
37 bzip2 splashutils-lite-${ver}.tar
38 eend $?
40 #ebegin "Creating a lite tarball"
41 #git archive --prefix=splashutils-${ver}/ HEAD:core/ | tar --delete splashutils-${ver}/libs | bzip2 -f > "${cdir}/splashutils-lite-${ver}.tar.bz2"
42 #eend $?
44 #ebegin "Creating a tarball"
45 #git archive --prefix=splashutils-${ver}/ HEAD:core/ | bzip2 -f > "${cdir}/splashutils-${ver}.tar.bz2"
46 #eend $?
48 cd ${cdir}
50 if [[ ${TESTING} == "no" ]]; then
51 ebegin Copying the tarballs to dev.gentoo.org
52 scp splashutils-${ver}.tar.bz2 spock@dev.gentoo.org:/home/spock
53 scp splashutils-lite-${ver}.tar.bz2 spock@dev.gentoo.org:/home/spock
54 eend $?
56 ebegin Copying the tarballs to the SDS
57 cp splashutils-${ver}.tar.bz2 ${SDS_ROOT}/htdocs/projects/fbsplash/archive
58 cp splashutils-lite-${ver}.tar.bz2 ${SDS_ROOT}/htdocs/projects/fbsplash/archive
59 eend $?