Sean Dague | 1b6b531 | 2013-07-31 06:46:34 -0400 | [diff] [blame] | 1 | # lib/oslo |
| 2 | # |
| 3 | # Functions to install oslo libraries from git |
| 4 | # |
| 5 | # We need this to handle the fact that projects would like to use |
| 6 | # pre-released versions of oslo libraries. |
| 7 | |
| 8 | # Dependencies: |
| 9 | # ``functions`` file |
| 10 | |
| 11 | # ``stack.sh`` calls the entry points in this order: |
| 12 | # |
| 13 | # install_oslo |
| 14 | |
| 15 | # Save trace setting |
| 16 | XTRACE=$(set +o | grep xtrace) |
| 17 | set +o xtrace |
| 18 | |
| 19 | |
| 20 | # Defaults |
| 21 | # -------- |
| 22 | OSLOCFG_DIR=$DEST/oslo.config |
| 23 | OSLOMSG_DIR=$DEST/oslo.messaging |
| 24 | |
| 25 | # Entry Points |
| 26 | # ------------ |
| 27 | |
| 28 | # install_oslo() - Collect source and prepare |
| 29 | function install_oslo() { |
| 30 | git_clone $OSLOCFG_REPO $OSLOCFG_DIR $OSLOCFG_BRANCH |
| 31 | setup_develop $OSLOCFG_DIR |
| 32 | |
| 33 | git_clone $OSLOMSG_REPO $OSLOMSG_DIR $OSLOMSG_BRANCH |
| 34 | setup_develop $OSLOMSG_DIR |
| 35 | } |
| 36 | |
| 37 | # Restore xtrace |
| 38 | $XTRACE |
| 39 | |
| 40 | # Local variables: |
| 41 | # mode: shell-script |
| 42 | # End: |