mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Remove unused scripts
This commit is contained in:
@@ -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"
|
||||
@@ -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}"
|
||||
@@ -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}"
|
||||
@@ -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)
|
||||
@@ -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}"
|
||||
@@ -1,29 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname $0)/.."
|
||||
|
||||
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 src static vendor -type file -name '*.coffee' | file_list)
|
||||
],
|
||||
'cson_sources': [
|
||||
$(find src static themes vendor -type file -name '*.cson' | file_list)
|
||||
],
|
||||
'less_sources': [
|
||||
$(find src static themes -type file -name '*.less' | file_list)
|
||||
],
|
||||
},
|
||||
}
|
||||
EOF
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION_PATH="$BUILT_PRODUCTS_DIR/Atom.app/Contents/Resources/version"
|
||||
echo -n $1 > $VERSION_PATH
|
||||
@@ -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 $*
|
||||
}
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user