diff --git a/script/compile-coffee b/script/compile-coffee deleted file mode 100755 index 99bc3cc31..000000000 --- a/script/compile-coffee +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -set -e - -# Because of the way xcodebuild invokes external scripts we need to load -# The Setup's environment ourselves. If this isn't done, things like the -# node shim won't be able to find the stuff they need. - -node --version > /dev/null 2>&1 || { - if [ -e /opt/github/env.sh ]; then - source /opt/github/env.sh - else - # Try Constructicon's PATH. - export PATH="/usr/local/Cellar/node/0.8.21/bin:${PATH}" - fi -} - -INPUT_FILE="${1}" -OUTPUT_DIR=`dirname "$2"` - -node_modules/.bin/coffee -c -m -o "$OUTPUT_DIR" "$INPUT_FILE" diff --git a/script/compile-cson b/script/compile-cson deleted file mode 100755 index d2aff745f..000000000 --- a/script/compile-cson +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -set -e - -# Because of the way xcodebuild invokes external scripts we need to load -# The Setup's environment ourselves. If this isn't done, things like the -# node shim won't be able to find the stuff they need. - -node --version > /dev/null 2>&1 || { - if [ -e /opt/github/env.sh ]; then - source /opt/github/env.sh - else - # Try Constructicon's PATH. - export PATH="/usr/local/Cellar/node/0.8.21/bin:${PATH}" - fi -} - -INPUT_FILE="${1}" -OUTPUT_FILE="${2}" - -node_modules/.bin/csonc --root "${INPUT_FILE}" "${OUTPUT_FILE}" diff --git a/script/compile-less b/script/compile-less deleted file mode 100644 index 8d334d2da..000000000 --- a/script/compile-less +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/sh - -set -e - -# Because of the way xcodebuild invokes external scripts we need to load -# The Setup's environment ourselves. If this isn't done, things like the -# node shim won't be able to find the stuff they need. - -node --version > /dev/null 2>&1 || { - if [ -e /opt/github/env.sh ]; then - source /opt/github/env.sh - else - # Try Constructicon's PATH. - export PATH="/usr/local/Cellar/node/0.8.21/bin:${PATH}" - fi -} - -INPUT_FILE="${1}" -OUTPUT_FILE="${2}" - -node_modules/.bin/coffee script/compile-less.coffee -- "${INPUT_FILE}" "${OUTPUT_FILE}" diff --git a/script/compile-less.coffee b/script/compile-less.coffee deleted file mode 100644 index 3c883ee74..000000000 --- a/script/compile-less.coffee +++ /dev/null @@ -1,30 +0,0 @@ -less = require 'less' -fs = require 'fs' - -inputFile = process.argv[2] -unless inputFile?.length > 0 - console.error("Input file must be first argument") - process.exit(1) - -outputFile = process.argv[3] -unless outputFile?.length > 0 - console.error("Output file must be second argument") - process.exit(1) - -contents = fs.readFileSync(inputFile)?.toString() ? '' - -parser = new less.Parser - syncImport: true - paths: [fs.realpathSync("#{__dirname}/../static"), fs.realpathSync("#{__dirname}/../vendor")] - filename: inputFile - -logErrorAndExit = (e) -> - console.error("Error compiling less file '#{inputFile}':", e.message) - process.exit(1) - -parser.parse contents, (e, tree) -> - logErrorAndExit(e) if e - try - fs.writeFileSync(outputFile, tree.toCSS()) - catch e - logErrorAndExit(e) diff --git a/script/copy-files-to-bundle b/script/copy-files-to-bundle deleted file mode 100755 index 2ecc43b71..000000000 --- a/script/copy-files-to-bundle +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# This can only be run by xcode or xcodebuild! - -set -e - -COMPILED_SOURCES_DIR="${1}" -RESOURCES_PATH="${BUILT_PRODUCTS_DIR}/Atom.app/Contents/Resources" -APP_PATH="${RESOURCES_PATH}/app" - -# Copy non-coffee/cson/less files into bundle -rsync --archive --recursive \ - --exclude="src/**.coffee" \ - --exclude="src/**.cson" \ - --exclude="themes/**.cson" \ - --exclude="src/**.less" \ - --exclude="static/**.less" \ - --exclude="themes/**.less" \ - node_modules src static vendor spec benchmark themes dot-atom atom.sh package.json \ - "${COMPILED_SOURCES_DIR}/" "${APP_PATH}" - -# Copy Mac specific files to bundle -rsync --archive --recursive \ - --exclude="*.plist" \ - resources/mac/* "${RESOURCES_PATH}" diff --git a/script/generate-sources-gypi b/script/generate-sources-gypi deleted file mode 100755 index 8f43049da..000000000 --- a/script/generate-sources-gypi +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh - -set -e - -cd "$(dirname $0)/.." - -file_list() { - while read file; do - echo " '${file}'," - done -} - -cat > sources.gypi < $VERSION_PATH diff --git a/script/lib/polite-curl b/script/lib/polite-curl deleted file mode 100755 index dbf5ce4c4..000000000 --- a/script/lib/polite-curl +++ /dev/null @@ -1,14 +0,0 @@ -if [ -t 0 ] ; then # If stdout is a terminal - INTERACTIVE=1 -fi - -polite_curl() -{ - if [ $INTERACTIVE ] ; then - CURL_ARGS="--progress-bar" - else - CURL_ARGS="-fsS" - fi - - curl $CURL_ARGS $* -} diff --git a/script/update-info-plist b/script/update-info-plist deleted file mode 100755 index 9ab48e56b..000000000 --- a/script/update-info-plist +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -set -e - -BUILT_PRODUCTS_DIR=$1 -PLIST_PATH="$BUILT_PRODUCTS_DIR/Atom.app/Contents/Info.plist" -HELPER_PLIST_PATH="$BUILT_PRODUCTS_DIR/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/Info.plist" - -# Copy custom plist files -cp resources/mac/atom-Info.plist "$PLIST_PATH" -cp resources/mac/helper-Info.plist "$HELPER_PLIST_PATH" - -# Update version -VERSION=$(git rev-parse --short HEAD | tr -d "\n") -echo $VERSION > "$BUILT_PRODUCTS_DIR/Atom.app/Contents/Resources/version" -/usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString $VERSION" "$PLIST_PATH" -/usr/libexec/PlistBuddy -c "Set CFBundleVersion $VERSION" "$PLIST_PATH" -/usr/libexec/PlistBuddy -c "Set CFBundleShortVersionString $VERSION" "$HELPER_PLIST_PATH" -/usr/libexec/PlistBuddy -c "Set CFBundleVersion $VERSION" "$HELPER_PLIST_PATH" diff --git a/script/clean-merged-branches b/script/utils/clean-merged-branches similarity index 100% rename from script/clean-merged-branches rename to script/utils/clean-merged-branches diff --git a/script/clean-open-with-menu b/script/utils/clean-open-with-menu similarity index 100% rename from script/clean-open-with-menu rename to script/utils/clean-open-with-menu diff --git a/script/fix-author b/script/utils/fix-author similarity index 100% rename from script/fix-author rename to script/utils/fix-author diff --git a/script/translate-crash-log-addresses.coffee b/script/utils/translate-crash-log-addresses.coffee similarity index 100% rename from script/translate-crash-log-addresses.coffee rename to script/utils/translate-crash-log-addresses.coffee