@@ -4,8 +4,6 @@ if [[ $(basename "$(pwd)") == "bin" ]]; then
44 cd ..
55fi
66
7- repo_root=$( pwd)
8-
97julia_major=$( julia --startup-file=no -e ' print("$(VERSION.major).$(VERSION.minor)")' )
108manifest_name=" Manifest-v${julia_major} .toml"
119default_manifest=" ${manifest_name} .default"
@@ -42,24 +40,27 @@ for project_dir in "${projects[@]}"; do
4240 delete_manifests " $project_dir "
4341done
4442
45- cd bin
46- ./create_sys_image --update
47- cd " $repo_root "
48-
4943if [[ $julia_major == " 1.12" ]]; then
5044 julia --startup-file=no --project -e ' using Pkg; Pkg.update()'
5145 julia --startup-file=no --project=examples -e ' using Pkg; Pkg.update()'
5246 julia --startup-file=no --project=test -e ' using Pkg; Pkg.update()'
47+ else
48+ julia --startup-file=no --project -e ' using Pkg; Pkg.instantiate()'
49+ julia --startup-file=no --project=examples -e ' using Pkg; Pkg.instantiate()'
50+ julia --startup-file=no --project=test -e ' using Pkg; Pkg.instantiate()'
5351fi
5452
5553for project_dir in " ${projects[@]} " ; do
5654 rename_manifest " $project_dir "
5755 require_manifest " $project_dir "
58- copy_default_manifest " $project_dir "
56+ if [[ " $project_dir " == " ." ]]; then
57+ copy_default_manifest " $project_dir "
58+ fi
5959done
6060
6161# TODO run tests
6262
6363rm -rf ~ /.julia/compiled/v${julia_major} /KiteControllers/
64- echo " Updated ${default_manifest} files for Julia ${julia_major} in root, examples, and test!"
64+ echo " Updated ${manifest_name} files for Julia ${julia_major} in root, examples, and test!"
65+ echo " Updated ${default_manifest} in root only."
6566echo " Make sure to run the tests before committing the new version!"
0 commit comments