move git url in project.gitref change init.sh

- init.sh now parse project.gitref
- generate project.gitref that contains git dependencies
./printclonesdep.sh >project.gitref
- update fetch_dependencies
This commit is contained in:
philippe lhardy
2023-07-28 12:04:15 +02:00
parent a22a2fd1b6
commit f76f9e17fb
3 changed files with 73 additions and 15 deletions

View File

@@ -18,7 +18,6 @@ log_info()
fetch_jackson_databind()
{
libversion_jackson_databind=2.12.0
lib_jackson_databind=jackson-databind-${libversion_jackson_databind}.jar
if [[ ! -e libs/$lib_jackson_databind ]]
then
@@ -29,11 +28,16 @@ fetch_jackson_databind()
fi
}
libversion_jackson_databind=2.12.0
sharedrawweb_git_url="ssh://philippe@www4.artisanlogiciel.net:2023/home/philippe/artisanlogiciel/code/sharedrawweb"
libversion_artgaphic=0.2.0
lib_artgaphic=artgaphics-${libversion_artgaphic}.jar
if [[ ! -d ../sharedrawweb ]]
then
log_error "expected a sharedrawweb project parent ( for exports ). Please clone related project."
sharedrawweb_git_url="ssh://philippe@www4.artisanlogiciel.net:2023/home/philippe/artisanlogiciel/code/sharedrawweb"
log_info "cd ..; git clone sharedrawweb_git_url"
log_info "cd ..; git clone $sharedrawweb_git_url"
fi
if [[ ! -d libs ]]
@@ -41,11 +45,15 @@ then
mkdir libs
fi
libversion_artgaphic=0.2.0
lib_artgaphic=artgaphics-${libversion_artgaphic}.jar
if [[ ! -e libs/$lib_artgaphic ]]
then
ln -s ../../sharedrawweb/dist/lib/$lib_artgaphic libs/
lib_artgaphic_source_file=../../sharedrawweb/dist/lib/$lib_artgaphic
if [[ -f $lib_artgaphic_source_file ]]
then
ln -s $lib_artgaphic_source_file libs/
else
log_error "Missing $lib_artgaphic_source_file. It is require to build it sharedrawweb project first"
fi
fi
if [[ -n $use_jackson ]]