Committed by
Gerrit Code Review
Allowing suppression of onos*.zip generation form onos-package; mostly for speed in dev.
Change-Id: Id4f7484f0226abb8fadea881aed76ab23bcffc68
Showing
1 changed file
with
7 additions
and
2 deletions
... | @@ -82,6 +82,11 @@ echo $ONOS_VERSION > $ONOS_STAGE/VERSION | ... | @@ -82,6 +82,11 @@ echo $ONOS_VERSION > $ONOS_STAGE/VERSION |
82 | cd $ONOS_STAGE_ROOT | 82 | cd $ONOS_STAGE_ROOT |
83 | rm -f $ONOS_TAR $ONOS_ZIP | 83 | rm -f $ONOS_TAR $ONOS_ZIP |
84 | COPYFILE_DISABLE=1 tar zcf $ONOS_TAR $ONOS_BITS | 84 | COPYFILE_DISABLE=1 tar zcf $ONOS_TAR $ONOS_BITS |
85 | -which zip >/dev/null && zip -rq $ONOS_ZIP $ONOS_BITS | 85 | + |
86 | -which zip >/dev/null && ls -lh $ONOS_TAR $ONOS_ZIP || ls -lh $ONOS_TAR | 86 | +# Figure out whether we should build ONOS zip file and if so, build it. |
87 | +which zip >/dev/null && [ -z "$ONOS_TAR_ONLY" ] && buildZip=true || unset buildZip | ||
88 | +[ -n "$buildZip" ] && zip -rq $ONOS_ZIP $ONOS_BITS | ||
89 | + | ||
90 | +# Report on the archives that were built and clean-up | ||
91 | +[ -n "$buildZip" ] && ls -lh $ONOS_TAR $ONOS_ZIP || ls -lh $ONOS_TAR | ||
87 | rm -r $ONOS_STAGE | 92 | rm -r $ONOS_STAGE | ... | ... |
-
Please register or login to post a comment