2024-04-04 16:13:08 +04:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
function sy() {
|
|
|
|
rsync -av ${Fake:+n} "$FROM/$1" "${@:2}"
|
|
|
|
}
|
|
|
|
|
|
|
|
Fake=
|
|
|
|
args=(
|
|
|
|
"synchoniser les infos depuis les librairies nur-*"
|
|
|
|
#"usage"
|
|
|
|
-n,--fake Fake=1
|
|
|
|
)
|
|
|
|
parse_args "$@"; set -- "${args[@]}"
|
|
|
|
|
|
|
|
cd "$MYDIR"
|
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
# tout ce qui est entre if false; ...; fi a déjà été migré
|
|
|
|
|
|
|
|
if false; then
|
2024-04-04 16:26:22 +04:00
|
|
|
FROM=../nur-tests
|
|
|
|
sy src/ nur_src/t/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 16:26:22 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 16:13:08 +04:00
|
|
|
FROM=../nur-base
|
|
|
|
sy src_api/ nur_src/
|
|
|
|
for i in b cli config data io m php ref tools v; do
|
|
|
|
sy src_$i/ nur_src/$i/
|
|
|
|
done
|
|
|
|
sy public/ nur_public/
|
2024-04-04 22:21:20 +04:00
|
|
|
##sy sbin/ nur_sbin/ --exclude /composer.phar
|
2024-04-04 16:13:08 +04:00
|
|
|
sy tests/ nur_tests/
|
2024-04-04 22:21:20 +04:00
|
|
|
#sy tbin/ nur_tbin/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 16:13:08 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 16:13:08 +04:00
|
|
|
FROM=../nur-v-bs3
|
|
|
|
sy src/ nur_src/v/bs3/
|
|
|
|
sy public/ nur_public/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 16:13:08 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 16:13:08 +04:00
|
|
|
FROM=../nur-m-pdo
|
|
|
|
sy src/ nur_src/m/pdo/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 16:13:08 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 16:13:08 +04:00
|
|
|
FROM=../nur-m-oracle
|
|
|
|
sy src/ nur_src/m/oracle/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 16:13:08 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 16:13:08 +04:00
|
|
|
FROM=../nur-m-pgsql
|
|
|
|
sy src/ nur_src/m/pgsql/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 16:13:08 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 16:26:22 +04:00
|
|
|
FROM=../nur-mapper
|
|
|
|
sy src/ nur_src/mapper/
|
|
|
|
sy tests/ nur_tests/mapper/
|
2024-04-04 22:21:20 +04:00
|
|
|
#sy tbin/ nur_tbin/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 16:47:29 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 16:47:29 +04:00
|
|
|
FROM=../nur-passwd
|
|
|
|
sy src/ nur_src/passwd/
|
|
|
|
sy tests/ nur_tests/passwd/
|
2024-04-04 22:21:20 +04:00
|
|
|
#sy tbin/ nur_tbin/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 22:21:20 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 22:21:20 +04:00
|
|
|
FROM=../nur-ldap
|
|
|
|
sy src/ nur_src/ldap/
|
|
|
|
sy tests/ nur_tests/ldap/
|
|
|
|
#sy tbin/ nur_tbin/
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|
2024-04-04 16:47:29 +04:00
|
|
|
|
2024-06-17 23:01:46 +04:00
|
|
|
if false; then
|
2024-04-04 16:47:29 +04:00
|
|
|
./nur_sbin/update_classes.php
|
2024-06-17 23:01:46 +04:00
|
|
|
fi
|