Skip to content

Commit

Permalink
ON-13196: onload_mkdist --force to overwrite tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolledg-amd committed Nov 4, 2024
1 parent e74fbbc commit 8786dba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/onload_mkdist
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,16 @@ distfiles_d="$TOP/src/onload/distfiles"
try [ -d "$distfiles_d" ]

releasedir="$product-$version"
[ -d "$releasedir" ] && fail "ERROR: $releasedir already exists"
[ -f "$releasedir.tgz" ] && fail "ERROR: $releasedir.tgz already exists"
[ -d "$releasedir" ] && fail "ERROR: $releasedir/ already exists"
[ -f "$releasedir.tgz" ] && ! $force && fail "ERROR: $releasedir.tgz already exists"
try mkdir --mode=755 "$releasedir"
try cd "$releasedir"

warn_releasedir() {
log "WARNING: $releasedir/ not cleaned up"
}
trap warn_releasedir INT

# Copy lots of sources.
docopy src/lib citools ciul ciapp efhw efrm efthrm cplane
docopy src/lib onload_ext kernel_utils
Expand Down

0 comments on commit 8786dba

Please sign in to comment.