mirror of
https://github.com/textmate/textmate.git
synced 2026-02-14 16:34:57 -05:00
20 lines
714 B
Bash
Executable File
20 lines
714 B
Bash
Executable File
#!/bin/sh
|
|
set -u
|
|
|
|
builddir="${builddir:-$HOME/build/TextMate}"
|
|
bl="$builddir/Applications/bl/bl"
|
|
TBZ_DST="Applications/TextMate/resources/DefaultBundles.tbz"
|
|
BUNDLES_DST="$(mktemp -dt bundles)"
|
|
BZIP2_FLAG="-j"
|
|
|
|
if which -s pbzip2; then
|
|
BZIP2_FLAG="--use-compress-prog=pbzip2"
|
|
fi
|
|
|
|
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"
|
|
|
|
rm -rf "$BUNDLES_DST"
|