modifs.mineures sans commentaires

This commit is contained in:
Jephté Clain 2023-11-04 00:28:31 +04:00
parent 56c19c0471
commit 60b127468b
4 changed files with 52 additions and 7 deletions

View File

@ -3,6 +3,9 @@ composer_php_min: '7.4'
composer_php_max: '8.0' composer_php_max: '8.0'
composer_registry: pubdocker.univ-reunion.fr composer_registry: pubdocker.univ-reunion.fr
composer_image: image/phpbuilder:d11 composer_image: image/phpbuilder:d11
defaults:
master:
allow_link: true
require: require:
nulib/php: dev-wip nulib/php: dev-wip
branch: branch:

36
bbnurse Executable file
View File

@ -0,0 +1,36 @@
#!/bin/bash
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
#source /etc/nulib.sh || exit 1
source "$(dirname -- "$0")/vendor/nulib/php/load.sh" || exit 1
action=update
evolution=mature
args=(
"Gérer la maturation d'une classe ou d'un package
Il y a deux types d'évolutions possibles:
* mettre en nurserie
* arriver à maturation
Pour chaque type d'évolution, il y a deux actions possibles:
* copier:
* mettre en nurserie consiste à copier (importer) un fichier PHP ou un package
depuis un projet nulib-*
* maturer consiste à copier (exporter) le fichier PHP ou le package vers un
projet nulib-*
* mettre à jour:
* mettre en nurserie met à jour les sources d'un projet pour utiliser la
version de nur/sery
* maturer met à jour les sources d'un projet pour utiliser la version arrivée
à maturation"
"
-c -n SRC
-c -m SRC [DEST]
-u [-n|-m] packageOrClass [DEST]"
-c,--copy action=copy "Copier de/vers un projet nulib-*"
-u,--update action=update "Mettre à jour un projet. C'est l'option par défaut"
-i,-n,--nurse evolution=nurse "Mettre en nurserie"
-x,-m,--mature evolution=mature "Arriver à maturation. C'est l'option par défaut"
)
parse_args "$@"; set -- "${args[@]}"

View File

@ -3,6 +3,10 @@
"type": "library", "type": "library",
"description": "espace de maturation pour les librairies", "description": "espace de maturation pour les librairies",
"repositories": [ "repositories": [
{
"type": "path",
"url": "../nulib"
},
{ {
"type": "composer", "type": "composer",
"url": "https://repos.univ-reunion.fr/composer" "url": "https://repos.univ-reunion.fr/composer"

14
composer.lock generated
View File

@ -4,15 +4,15 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "3257ad4c08d3cba49cfe6566db681262", "content-hash": "35175827c89c36554dda904ee7e0658d",
"packages": [ "packages": [
{ {
"name": "nulib/php", "name": "nulib/php",
"version": "dev-wip", "version": "dev-wip",
"source": { "dist": {
"type": "git", "type": "path",
"url": "https://git.univ-reunion.fr/sda-php/nulib.git", "url": "../nulib",
"reference": "1aee701fef17c8dff8d6d8e50e7c9ebad43e4a16" "reference": "7cac433cbc8890b4aa6787a12da3a87cc0bb6c3d"
}, },
"require": { "require": {
"php": ">=7.3" "php": ">=7.3"
@ -38,7 +38,9 @@
} }
], ],
"description": "fonctions et classes essentielles", "description": "fonctions et classes essentielles",
"time": "2023-10-25T12:49:28+00:00" "transport-options": {
"relative": true
}
} }
], ],
"packages-dev": [ "packages-dev": [