27
27
PATCHLEVEL="+maria"
28
28
LOGSTRING="MariaDB build"
30
# Look up distro-version specific stuff.
32
# Libreadline changed to GPLv3. Old GPLv2 version is available, but it
33
# is called different things on different versions.
34
30
CODENAME="$(lsb_release -sc)"
36
etch) LIBREADLINE_DEV=libreadline-dev ;;
37
lenny|hardy|intrepid|jaunty|karmic|lucid) LIBREADLINE_DEV='libreadline5-dev | libreadline-dev' ;;
38
squeeze|maverick|natty) LIBREADLINE_DEV=libreadline5-dev ;;
39
*) LIBREADLINE_DEV=libreadline-gplv2-dev ;;
43
etch|lenny|hardy|intrepid|jaunty|karmic) CMAKE_DEP='' ;;
44
*) CMAKE_DEP='cmake (>= 2.7), ' ;;
47
# Clean up build file symlinks that are distro-specific. First remove all, then set
49
DISTRODIRS="$(ls ./debian/dist)"
50
for distrodir in ${DISTRODIRS}; do
51
DISTROFILES="$(ls ./debian/dist/${distrodir})"
52
for distrofile in ${DISTROFILES}; do
53
rm -f "./debian/${distrofile}";
57
# Set no symlinks for build files in the debian dir, so we avoid adding AppArmor on Debian.
58
DISTRO="$(lsb_release -si)"
59
echo "Copying distribution specific build files for ${DISTRO}"
60
DISTROFILES="$(ls ./debian/dist/${DISTRO})"
61
for distrofile in ${DISTROFILES}; do
62
rm -f "./debian/${distrofile}"
63
sed -e "s/\\\${LIBREADLINE_DEV}/${LIBREADLINE_DEV}/g" \
64
-e "s/\\\${CMAKE_DEP}/${CMAKE_DEP}/g" \
65
< "./debian/dist/${DISTRO}/${distrofile}" > "./debian/${distrofile}"
66
chmod --reference="./debian/dist/${DISTRO}/${distrofile}" "./debian/${distrofile}"
69
32
# Adjust changelog, add new version.