mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
Previously the rsync exclude rules required files to be two-levels deep to be excluded which would keep the window-bootstrap.coffee in the bundle since it was at the root of the src folder. Now if cson, less, or coffee files end up in src/ they will be correctly excluded from the bundle when synced.
16 lines
515 B
Bash
Executable File
16 lines
515 B
Bash
Executable File
#!/bin/sh
|
|
# This can only be run by xcode or xcodebuild!
|
|
|
|
set -e
|
|
|
|
COMPILED_SOURCES_DIR="${1}"
|
|
RESOUCES_PATH="$BUILT_PRODUCTS_DIR/$UNLOCALIZED_RESOURCES_FOLDER_PATH"
|
|
|
|
# Copy non-coffee files into bundle
|
|
rsync --archive --recursive \
|
|
--exclude="src/**.coffee" --exclude="src/**.cson" \
|
|
--exclude="src/**.less" --exclude="static/**.less" \
|
|
--exclude="node_modules/less" \
|
|
node_modules src static vendor spec benchmark themes dot-atom atom.sh \
|
|
"${COMPILED_SOURCES_DIR}/" "$RESOUCES_PATH"
|