mirror of
https://github.com/rsms/inter.git
synced 2024-11-17 07:47:33 +01:00
tooling: fixes race condition when building zip and zip_extras at the same time
This commit is contained in:
parent
252f151213
commit
4638da6350
1 changed files with 5 additions and 6 deletions
|
@ -38,18 +38,17 @@ fi
|
|||
|
||||
# tmp dir
|
||||
ZIPDIR=build/tmp/zip
|
||||
FONTDIR=build/fonts
|
||||
if $OPT_EXTRAS; then
|
||||
ZIPDIR=build/tmp/zip-extras
|
||||
fi
|
||||
|
||||
# convert relative path to absolute if needed
|
||||
OUTFILE_ABS=$OUTFILE
|
||||
if [[ "$OUTFILE_ABS" != /* ]]; then
|
||||
OUTFILE_ABS=$PWD/$OUTFILE_ABS
|
||||
OUTFILE_ABS="$PWD/$OUTFILE_ABS"
|
||||
fi
|
||||
|
||||
# cleanup any previous build
|
||||
rm -rf "$ZIPDIR" build/tmp/a.zip
|
||||
|
||||
# create directories
|
||||
rm -rf "$ZIPDIR"
|
||||
mkdir -p "$(dirname "$OUTFILE_ABS")" "$ZIPDIR"
|
||||
|
||||
cp LICENSE.txt "$ZIPDIR/LICENSE.txt"
|
||||
|
|
Loading…
Reference in a new issue