modifs.mineures sans commentaires
This commit is contained in:
parent
48e0011790
commit
3badf2c1bb
36
bin/runphp
36
bin/runphp
|
@ -2,42 +2,6 @@
|
||||||
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||||
source "$(dirname -- "$0")/../load.sh" || exit 1
|
source "$(dirname -- "$0")/../load.sh" || exit 1
|
||||||
|
|
||||||
function runphp_help() {
|
|
||||||
echo "$MYNAME: lance un programme dans un environnement PHP prédéfini pour le projet
|
|
||||||
|
|
||||||
USAGE
|
|
||||||
$MYNAME ci|cu|composer
|
|
||||||
$MYNAME command [args...]
|
|
||||||
|
|
||||||
COMPOSER
|
|
||||||
|
|
||||||
pour ces commandes, le répertoire courant est forcé au répertoire du projet
|
|
||||||
composer
|
|
||||||
|
|
||||||
ci
|
|
||||||
installer les dépendances du projet avec composer
|
|
||||||
cu
|
|
||||||
mettre à jour les dépendances du projet avec composer
|
|
||||||
composer [args...]
|
|
||||||
lancer composer avec les arguments spécifiés
|
|
||||||
|
|
||||||
COMMAND"
|
|
||||||
}
|
|
||||||
|
|
||||||
SOPTS=+
|
|
||||||
LOPTS=help
|
|
||||||
args="$(getopt -n runphp -o "$SOPTS" -l "$LOPTS" -- "$@")" || exit 1; eval "set -- $args"
|
|
||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
|
||||||
case "$1" in
|
|
||||||
--) shift; break;;
|
|
||||||
--help) runphp_help; exit 0;;
|
|
||||||
*) die "$1: option non configurée";;
|
|
||||||
esac
|
|
||||||
shift
|
|
||||||
done
|
|
||||||
|
|
||||||
# chercher d'abord le répertoire du projet
|
|
||||||
PROJDIR=
|
PROJDIR=
|
||||||
while true; do
|
while true; do
|
||||||
cwd="$(pwd)"
|
cwd="$(pwd)"
|
||||||
|
|
|
@ -377,7 +377,7 @@ OPTIONS
|
||||||
if [ -z "$UnlessExists" -o -z "$exists" ]; then
|
if [ -z "$UnlessExists" -o -z "$exists" ]; then
|
||||||
eecho "== Building $IMAGE"
|
eecho "== Building $IMAGE"
|
||||||
if [ -n "$RUNPHP_STANDALONE" ]; then
|
if [ -n "$RUNPHP_STANDALONE" ]; then
|
||||||
DFDIR="$RUNPHP_STANDALONE"
|
DFDIR="$RUNPHP_STANDALONE/runphp"
|
||||||
else
|
else
|
||||||
DFDIR="$MYDIR"
|
DFDIR="$MYDIR"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -328,7 +328,7 @@ OPTIONS
|
||||||
if [ -z "$UnlessExists" -o -z "$exists" ]; then
|
if [ -z "$UnlessExists" -o -z "$exists" ]; then
|
||||||
eecho "== Building $IMAGE"
|
eecho "== Building $IMAGE"
|
||||||
if [ -n "$RUNPHP_STANDALONE" ]; then
|
if [ -n "$RUNPHP_STANDALONE" ]; then
|
||||||
DFDIR="$RUNPHP_STANDALONE"
|
DFDIR="$RUNPHP_STANDALONE/runphp"
|
||||||
else
|
else
|
||||||
DFDIR="$MYDIR"
|
DFDIR="$MYDIR"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue