Commit 6a54e285 authored by Martin Pitt's avatar Martin Pitt

pg_buildext: Remove bashishms and convert to plain /bin/sh.

parent 0715e38b
......@@ -9,6 +9,7 @@ postgresql-common (110) UNRELEASED; urgency=low
* debian/postgresql-common.postgresql.init: Fix force-reload, thanks Pascal
Volk. (Closes: #591185)
* debian/rules: Stop man page build/clean being package dependent.
* pg_buildext: Remove bashishms and convert to plain /bin/sh.
[ Dimitri Fontaine ]
* Add new package postgresql-server-dev-all:
......
#!/bin/bash
#!/bin/sh
#
# build a PostgreSQL module based on PGXS for give list of supported major
# versions
#
# Author: Dimitri Fontaine <dfontaine@hi-media.com>
action=$1
srcdir=$2
target=$3
opt=$4
action="$1"
srcdir="$2"
target="$3"
opt="$4"
function prepare_env() {
prepare_env() {
if [ ! -d $srcdir ]; then
echo "Error: no such directory '$srcdir'"
exit 1
......@@ -21,7 +21,7 @@ function prepare_env() {
cflags=`$pgc --cflags`
}
function build() {
build() {
prepare_env $1
mkdir -p $vtarget
......@@ -30,13 +30,13 @@ function build() {
cd -
}
function clean() {
clean() {
prepare_env $1
make clean PG_CONFIG="$pgc"
rm -rf $vtarget
}
function versions() {
versions() {
for v in `/usr/share/postgresql-common/supported-versions`
do
grep -q "^$v" $srcdir/debian/pgversions && echo $v
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment