Skip to content

Commit

Permalink
make r will clone repo without .jl extension
Browse files Browse the repository at this point in the history
Now make r will clone dependent project repos without the .jl extension
by default. The unnecessary complexity of detection of .julia/dev path
has been removed. This is to address ProjectTorreyPines/SOLPS2imas.jl#33
  • Loading branch information
anchal-physics committed Apr 2, 2024
1 parent 167fc8b commit b1cab8d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ env_with_cloned_repo r:
-dvc pull
@echo "Creating Julia environment by creating local clones of dependent repositories"
@echo "Cloning the repositories and generating Manifest.toml"
-dn=$(shell dirname $(shell pwd)); \
if [[ "$${dn:(-10)}" == ".julia/dev" ]]; then ext="" ; else ext=".jl";fi; \
git clone "git@github.com:ProjectTorreyPines/IMASDD.jl.git" ../IMASDD$${ext}; \
git clone "git@github.com:ProjectTorreyPines/GGDUtils.jl.git" ../GGDUtils$${ext}; \
git clone "git@github.com:ProjectTorreyPines/SOLPS2IMAS.jl.git" ../SOLPS2IMAS$${ext}; \
julia --project=. -e 'using Pkg; Pkg.rm(["IMASDD", "GGDUtils", "SOLPS2IMAS", "EFIT"]); Pkg.develop(path="../IMASDD'$${ext}'"); Pkg.develop(path="../GGDUtils'$${ext}'"); Pkg.develop(path="../SOLPS2IMAS'$${ext}'"); Pkg.add(url="git@github.com:JuliaFusion/EFIT.jl.git", rev="master"); Pkg.instantiate()'
-git clone "git@github.com:ProjectTorreyPines/IMASDD.jl.git" ../IMASDD; \
git clone "git@github.com:ProjectTorreyPines/GGDUtils.jl.git" ../GGDUtils; \
git clone "git@github.com:ProjectTorreyPines/SOLPS2IMAS.jl.git" ../SOLPS2IMAS; \
julia --project=. -e 'using Pkg; Pkg.rm(["IMASDD", "GGDUtils", "SOLPS2IMAS", "EFIT"]); Pkg.develop(path="../IMASDD"); Pkg.develop(path="../GGDUtils"); Pkg.develop(path="../SOLPS2IMAS"); Pkg.add(url="git@github.com:JuliaFusion/EFIT.jl.git", rev="master"); Pkg.instantiate()'

env_with_git_url u:
@echo "Pulling sample files using dvc"
Expand Down

0 comments on commit b1cab8d

Please sign in to comment.