mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Only build ‘bl’ if not already built
Also ensure the tbz archive is created atomically.
This commit is contained in:
@@ -11,9 +11,10 @@ if which -s pbzip2; then
|
||||
BZIP2_FLAG="--use-compress-prog=pbzip2"
|
||||
fi
|
||||
|
||||
ninja "$bl" && \
|
||||
{ [ -x "$bl" ] || ninja "$bl"; } && \
|
||||
mkdir -p "$BUNDLES_DST/Managed" && \
|
||||
"$bl" -C "$BUNDLES_DST/Managed" install Apache Bundle\ Development Bundle\ Support C CSS Diff Git HTML Hyperlink\ Helper JavaScript JSON Mail Make Markdown Math Mercurial Objective-C PHP Property\ List Python Ruby SCM Shell\ Script Source SQL Subversion Text TextMate Themes TODO XML && \
|
||||
gnutar -cf "$TBZ_DST" "$BZIP2_FLAG" -C "$BUNDLES_DST" "Managed"
|
||||
gnutar -cf "$TBZ_DST~" "$BZIP2_FLAG" -C "$BUNDLES_DST" "Managed" && \
|
||||
mv "$TBZ_DST~" "$TBZ_DST"
|
||||
|
||||
rm -rf "$BUNDLES_DST"
|
||||
|
||||
Reference in New Issue
Block a user