Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra explanation in docker-php-ext-* scripts #497

Merged
merged 2 commits into from
Sep 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions 5.6/alpine/docker-php-ext-configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ fi

cd /usr/src/php/ext

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
echo >&2 "usage: $0 ext-name [configure flags]"
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo >&2
echo >&2 'Possible values for ext-name:'
find /usr/src/php/ext \
usage() {
echo "usage: $0 ext-name [configure flags]"
echo " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo
echo 'Possible values for ext-name:'
find . \
-mindepth 2 \
-maxdepth 2 \
-type f \
Expand All @@ -33,6 +32,14 @@ if [ -z "$ext" ] || [ ! -d "$ext" ]; then
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
usage >&2
exit 1
fi
shift
Expand Down
3 changes: 3 additions & 0 deletions 5.6/alpine/docker-php-ext-enable
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ usage() {
echo
echo 'Possible values for module-name:'
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?' --long 'help,ini-name:' -- "$@" || { usage >&2 && false; })"
Expand Down
3 changes: 3 additions & 0 deletions 5.6/alpine/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ usage() {
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?j:' --long 'help,jobs:' -- "$@" || { usage >&2 && false; })"
Expand Down
21 changes: 14 additions & 7 deletions 5.6/apache/docker-php-ext-configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ fi

cd /usr/src/php/ext

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
echo >&2 "usage: $0 ext-name [configure flags]"
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo >&2
echo >&2 'Possible values for ext-name:'
find /usr/src/php/ext \
usage() {
echo "usage: $0 ext-name [configure flags]"
echo " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo
echo 'Possible values for ext-name:'
find . \
-mindepth 2 \
-maxdepth 2 \
-type f \
Expand All @@ -33,6 +32,14 @@ if [ -z "$ext" ] || [ ! -d "$ext" ]; then
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
usage >&2
exit 1
fi
shift
Expand Down
3 changes: 3 additions & 0 deletions 5.6/apache/docker-php-ext-enable
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ usage() {
echo
echo 'Possible values for module-name:'
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?' --long 'help,ini-name:' -- "$@" || { usage >&2 && false; })"
Expand Down
3 changes: 3 additions & 0 deletions 5.6/apache/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ usage() {
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?j:' --long 'help,jobs:' -- "$@" || { usage >&2 && false; })"
Expand Down
21 changes: 14 additions & 7 deletions 5.6/docker-php-ext-configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ fi

cd /usr/src/php/ext

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
echo >&2 "usage: $0 ext-name [configure flags]"
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo >&2
echo >&2 'Possible values for ext-name:'
find /usr/src/php/ext \
usage() {
echo "usage: $0 ext-name [configure flags]"
echo " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo
echo 'Possible values for ext-name:'
find . \
-mindepth 2 \
-maxdepth 2 \
-type f \
Expand All @@ -33,6 +32,14 @@ if [ -z "$ext" ] || [ ! -d "$ext" ]; then
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
usage >&2
exit 1
fi
shift
Expand Down
3 changes: 3 additions & 0 deletions 5.6/docker-php-ext-enable
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ usage() {
echo
echo 'Possible values for module-name:'
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?' --long 'help,ini-name:' -- "$@" || { usage >&2 && false; })"
Expand Down
3 changes: 3 additions & 0 deletions 5.6/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ usage() {
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?j:' --long 'help,jobs:' -- "$@" || { usage >&2 && false; })"
Expand Down
21 changes: 14 additions & 7 deletions 5.6/fpm/alpine/docker-php-ext-configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ fi

cd /usr/src/php/ext

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
echo >&2 "usage: $0 ext-name [configure flags]"
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo >&2
echo >&2 'Possible values for ext-name:'
find /usr/src/php/ext \
usage() {
echo "usage: $0 ext-name [configure flags]"
echo " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo
echo 'Possible values for ext-name:'
find . \
-mindepth 2 \
-maxdepth 2 \
-type f \
Expand All @@ -33,6 +32,14 @@ if [ -z "$ext" ] || [ ! -d "$ext" ]; then
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
usage >&2
exit 1
fi
shift
Expand Down
3 changes: 3 additions & 0 deletions 5.6/fpm/alpine/docker-php-ext-enable
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ usage() {
echo
echo 'Possible values for module-name:'
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?' --long 'help,ini-name:' -- "$@" || { usage >&2 && false; })"
Expand Down
3 changes: 3 additions & 0 deletions 5.6/fpm/alpine/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ usage() {
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?j:' --long 'help,jobs:' -- "$@" || { usage >&2 && false; })"
Expand Down
21 changes: 14 additions & 7 deletions 5.6/fpm/docker-php-ext-configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ fi

cd /usr/src/php/ext

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
echo >&2 "usage: $0 ext-name [configure flags]"
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo >&2
echo >&2 'Possible values for ext-name:'
find /usr/src/php/ext \
usage() {
echo "usage: $0 ext-name [configure flags]"
echo " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo
echo 'Possible values for ext-name:'
find . \
-mindepth 2 \
-maxdepth 2 \
-type f \
Expand All @@ -33,6 +32,14 @@ if [ -z "$ext" ] || [ ! -d "$ext" ]; then
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
usage >&2
exit 1
fi
shift
Expand Down
3 changes: 3 additions & 0 deletions 5.6/fpm/docker-php-ext-enable
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ usage() {
echo
echo 'Possible values for module-name:'
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?' --long 'help,ini-name:' -- "$@" || { usage >&2 && false; })"
Expand Down
3 changes: 3 additions & 0 deletions 5.6/fpm/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ usage() {
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?j:' --long 'help,jobs:' -- "$@" || { usage >&2 && false; })"
Expand Down
21 changes: 14 additions & 7 deletions 5.6/zts/alpine/docker-php-ext-configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ fi

cd /usr/src/php/ext

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
echo >&2 "usage: $0 ext-name [configure flags]"
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo >&2
echo >&2 'Possible values for ext-name:'
find /usr/src/php/ext \
usage() {
echo "usage: $0 ext-name [configure flags]"
echo " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo
echo 'Possible values for ext-name:'
find . \
-mindepth 2 \
-maxdepth 2 \
-type f \
Expand All @@ -33,6 +32,14 @@ if [ -z "$ext" ] || [ ! -d "$ext" ]; then
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
usage >&2
exit 1
fi
shift
Expand Down
3 changes: 3 additions & 0 deletions 5.6/zts/alpine/docker-php-ext-enable
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ usage() {
echo
echo 'Possible values for module-name:'
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?' --long 'help,ini-name:' -- "$@" || { usage >&2 && false; })"
Expand Down
3 changes: 3 additions & 0 deletions 5.6/zts/alpine/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ usage() {
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?j:' --long 'help,jobs:' -- "$@" || { usage >&2 && false; })"
Expand Down
21 changes: 14 additions & 7 deletions 5.6/zts/docker-php-ext-configure
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ fi

cd /usr/src/php/ext

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
echo >&2 "usage: $0 ext-name [configure flags]"
echo >&2 " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo >&2
echo >&2 'Possible values for ext-name:'
find /usr/src/php/ext \
usage() {
echo "usage: $0 ext-name [configure flags]"
echo " ie: $0 gd --with-jpeg-dir=/usr/local/something"
echo
echo 'Possible values for ext-name:'
find . \
-mindepth 2 \
-maxdepth 2 \
-type f \
Expand All @@ -33,6 +32,14 @@ if [ -z "$ext" ] || [ ! -d "$ext" ]; then
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

ext="$1"
if [ -z "$ext" ] || [ ! -d "$ext" ]; then
usage >&2
exit 1
fi
shift
Expand Down
3 changes: 3 additions & 0 deletions 5.6/zts/docker-php-ext-enable
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ usage() {
echo
echo 'Possible values for module-name:'
echo $(find -maxdepth 1 -type f -name '*.so' -exec basename '{}' ';' | sort)
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?' --long 'help,ini-name:' -- "$@" || { usage >&2 && false; })"
Expand Down
3 changes: 3 additions & 0 deletions 5.6/zts/docker-php-ext-install
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ usage() {
| xargs -n1 basename \
| sort \
| xargs
echo
echo 'Some of the above modules are already compiled into PHP; please check'
echo 'the ouptut of "php -i" to see which modules are already loaded.'
}

opts="$(getopt -o 'h?j:' --long 'help,jobs:' -- "$@" || { usage >&2 && false; })"
Expand Down
Loading