mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-07 23:59:22 +03:00
858f58da97
This mirrors the CSON to JSONS compilation step. Closes #440
36 lines
609 B
Bash
Executable File
36 lines
609 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
cd "$(dirname $0)/.."
|
|
|
|
DIRS="src static vendor"
|
|
|
|
find_files() {
|
|
find ${DIRS} -type file -name ${1}
|
|
}
|
|
|
|
file_list() {
|
|
while read file; do
|
|
echo " '${file}',"
|
|
done
|
|
}
|
|
|
|
cat > sources.gypi <<EOF
|
|
{
|
|
'variables': {
|
|
'compiled_sources_dir': '<(INTERMEDIATE_DIR)/atom-resources',
|
|
'compiled_sources_dir_xcode': '\${INTERMEDIATE_DIR}/atom-resources',
|
|
'coffee_sources': [
|
|
$(find_files '*.coffee' | file_list)
|
|
],
|
|
'cson_sources': [
|
|
$(find_files '*.cson' | file_list)
|
|
],
|
|
'less_sources': [
|
|
$(find src static -type file -name '*.less' | file_list)
|
|
],
|
|
},
|
|
}
|
|
EOF
|