diff options
author | Sergei Golubchik <sergii@pisem.net> | 2012-08-23 15:32:03 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2012-08-23 15:32:03 +0200 |
commit | df5aabba12844200fbb83f72e82239a106453e20 (patch) | |
tree | f7c23ff732cb53c398f963ff2073b82ffa7bd2d3 /debian/autobake-deb.sh | |
parent | ec263757b641a26ea7ce0e733db9dbe0d1dc70ca (diff) | |
download | mariadb-git-df5aabba12844200fbb83f72e82239a106453e20.tar.gz |
MDEV-469 Debian/Ubuntu build dependencies for source package mariadb-5.5 does not includes "cmake"
only add cmake as a build dependency for distributions, where cmake is recent enough
Diffstat (limited to 'debian/autobake-deb.sh')
-rwxr-xr-x | debian/autobake-deb.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index d2288ee8b42..d4a1fa70d8c 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -37,6 +37,11 @@ case "${CODENAME}" in *) LIBREADLINE_DEV=libreadline-gplv2-dev ;; esac +case "${CODENAME}" in + etch|lenny|hardy|intrepid|jaunty|karmic) CMAKE_DEP='' ;; + *) CMAKE_DEP='cmake (>= 2.7), ' ;; +esac + # Clean up build file symlinks that are distro-specific. First remove all, then set # new links. DISTRODIRS="$(ls ./debian/dist)" @@ -53,7 +58,9 @@ echo "Copying distribution specific build files for ${DISTRO}" DISTROFILES="$(ls ./debian/dist/${DISTRO})" for distrofile in ${DISTROFILES}; do rm -f "./debian/${distrofile}" - sed -e "s/\\\${LIBREADLINE_DEV}/${LIBREADLINE_DEV}/g" < "./debian/dist/${DISTRO}/${distrofile}" > "./debian/${distrofile}" + sed -e "s/\\\${LIBREADLINE_DEV}/${LIBREADLINE_DEV}/g" \ + -e "s/\\\${CMAKE_DEP}/${CMAKE_DEP}/g" \ + < "./debian/dist/${DISTRO}/${distrofile}" > "./debian/${distrofile}" chmod --reference="./debian/dist/${DISTRO}/${distrofile}" "./debian/${distrofile}" done; |