Closed erick0z closed 7 years ago
This PR looks like it's going to be very useful. However, these update_*.sh
scripts are almost identical. I suggest refactoring a little further so that the 3 scripts can be "stubs" and call functions in a lib.sh
or something. The stubs could then:
source lib.sh
Make calls like this:
clean $runtime_files
set_versions "$cc_shim_version" "$cc_shim_hash"
checkout_repo "$OBS_PROXY_REPO" ...
@jodh-intel, As you suggested, I've split some functions into a new scripts/pkglib.sh
. The remaining bits in each setup script are just properties needed for each component (like project names and static files, etc). Can you review this PR?
@erick0z this commit has the "do not merge" label is still the case?
this series of commits refactor the setup script allowing new features, needed for some use cases and adding a better user experience.
Fixes #166