mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
We were using gnutar to avoid the extended header keywords that bsdtar add to the archive (for non-ASCII file names) as those will cause older versions of gnutar (like the one included with 10.8 and earlier) to give warnings/errors when extracting the archive. Issue #1180
22 lines
746 B
Bash
Executable File
22 lines
746 B
Bash
Executable File
#!/bin/sh
|
|
set -u
|
|
|
|
TBZ_DST=$1
|
|
|
|
BZIP2_FLAG="-j"
|
|
if which -s pbzip2; then
|
|
BZIP2_FLAG="--use-compress-prog=pbzip2"
|
|
fi
|
|
|
|
BUNDLES_DST="$(/usr/bin/mktemp -dt bundles)"
|
|
trap 'rm -rf "$BUNDLES_DST"' EXIT
|
|
|
|
builddir="${builddir:-$HOME/build/TextMate}"
|
|
bl="$builddir/Applications/bl/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 && \
|
|
/usr/bin/tar -cf "$TBZ_DST~" "$BZIP2_FLAG" -C "$BUNDLES_DST" "Managed" && \
|
|
mv "$TBZ_DST~" "$TBZ_DST"
|