-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add function install() #4
Comments
You can find an example here: https://github.com/ufechner7/Plotting/blob/main/bin/install |
Here, I'd prefer Julia function, i.e., |
Yes, Julia is cross platform, thats better... Some example code from another project of me: function cp_examples()
PATH = "examples"
src_path = joinpath(dirname(pathof(@__MODULE__)), "..", PATH)
copy_files("examples", readdir(src_path))
end
function copy_files(relpath, files)
if ! isdir(relpath)
mkdir(relpath)
end
src_path = joinpath(dirname(pathof(@__MODULE__)), "..", relpath)
for file in files
cp(joinpath(src_path, file), joinpath(relpath, file), force=true)
chmod(joinpath(relpath, file), 0o774)
end
files
end |
I've drafted a PR. Btw, the |
I also drafted a PR, but you were faster and a bit better... |
Add a function that copies the required script at the suggested location.
Should be trivial for Linux.
The text was updated successfully, but these errors were encountered: