summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-05-15 10:21:26 -0700
committerPaul Phillips <paulp@improving.org>2012-05-15 11:12:40 -0700
commit317a1056cd8062331964d1bc65f1bfd945538551 (patch)
treed3682713ea5fd99579eb7240ec587cdc92bf2fed /tools
parent8a3ed4cc955dd85f37cc148265e920435b009a29 (diff)
downloadscala-317a1056cd8062331964d1bc65f1bfd945538551.tar.gz
scala-317a1056cd8062331964d1bc65f1bfd945538551.tar.bz2
scala-317a1056cd8062331964d1bc65f1bfd945538551.zip
Removing extraneous files.
Culling accumulated unnecessary code.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/dump-class6
-rwxr-xr-xtools/flag-usages.sh67
-rwxr-xr-xtools/profile_scala17
-rwxr-xr-xtools/profile_scalac25
-rwxr-xr-xtools/proxy-report4
-rwxr-xr-xtools/scalawhich4
-rwxr-xr-xtools/scmp4
-rwxr-xr-xtools/tokens4
-rwxr-xr-xtools/truncate7
9 files changed, 0 insertions, 138 deletions
diff --git a/tools/dump-class b/tools/dump-class
deleted file mode 100755
index 0b4f2a73fa..0000000000
--- a/tools/dump-class
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-#
-
-classpath=$($(dirname $BASH_SOURCE)/quickcp)
-
-java -cp "$classpath" scala.tools.nsc.MainGenericRunner -usejavacp scala.tools.cmd.program.DumpClass "$@" \ No newline at end of file
diff --git a/tools/flag-usages.sh b/tools/flag-usages.sh
deleted file mode 100755
index 82696bd1da..0000000000
--- a/tools/flag-usages.sh
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/usr/bin/env bash
-#
-# find-flag-usages
-# Paul Phillips <paulp@typesafe.com>
-#
-# Looks through the scala source tree for direct references to flag names.
-
-set -e # Good idea in almost all scripts: causes script to exit on any error.
-
-# Would be better not to hardcode this.
-flags='\b(ABSOVERRIDE|ABSTRACT|ACCESSOR|BRIDGE|BYNAMEPARAM|CAPTURED|CASE|CASEACCESSOR|CONTRAVARIANT|COVARIANT|DEFAULTINIT|DEFAULTPARAM|DEFERRED|EXISTENTIAL|EXPANDEDNAME|FINAL|IMPLCLASS|IMPLICIT|INCONSTRUCTOR|INTERFACE|JAVA|LABEL|LAZY|LIFTED|LOCAL|LOCKED|METHOD|MIXEDIN|MODULE|MODULEVAR|MUTABLE|OVERLOADED|OVERRIDE|PACKAGE|PARAM|PARAMACCESSOR|PRESUPER|PRIVATE|PROTECTED|SEALED|SPECIALIZED|STABLE|STATIC|SUPERACCESSOR|SYNTHETIC|TRAIT|TRIEDCOOKING|VARARGS|VBRIDGE)\b'
-
-# $() runs a command in a subshell. This is calculating the root of the
-# repository by looking relative to the location of the script.
-rootdir=$(cd $(dirname $0) ; pwd)/..
-
-# A bash function. Can be used like a command.
-usage () {
- # A here string. Allows for blocks of text without lots of quoting.
- # Variable interpolation still takes place, e.g. $(basename $0).
- cat <<EOM
-Usage: $(basename $0) [-achs]
- -a show all flag usages
- -c count flag usages per file
- -h show this message
- -s count total flag usages
-EOM
-}
-
-# Checking for no arguments or missing requirements.
-if [[ $# -eq 0 ]]; then
- usage
- exit 1
-elif [[ ! $(which ack) ]]; then # no ack
- echo "Error: cannot find required program ack."
- exit 1
-fi
-
-# Using pushd/popd for directory changes is a way to make moving
-# the current directory around somewhat more composable.
-pushd "$rootdir" >/dev/null
-
-# The leading : in :achs suppresses some errors. Each letter is a valid
-# option. If an option takes an argument, a colon follows it, e.g.
-# it would be :ach:s if -h took an argument.
-while getopts :achs opt; do
- case $opt in
- a) ack "$flags" src ;;
- c) ack --files-with-matches -c "$flags" src ;;
- h) usage ;;
- s) ack --no-filename -o "$flags" src | sort | uniq -c | sort -gr ;;
- :) echo "Option -$OPTARG requires an argument." >&2 ;; # this case is called for a missing option argument
- *) echo "Unrecognized argument $OPTARG" ;; # this is the catch-all implying an unknown option
- esac
-done
-
-# This removes all the options from $@, as getopts doesn't touch it.
-# After this, "$@" contains the non-option arguments.
-shift $((OPTIND-1))
-
-# In this program we don't expect any.
-if [[ $# -ne 0 ]]; then
- echo "This program does not take arguments."
-fi
-
-popd >/dev/null
-exit 0
diff --git a/tools/profile_scala b/tools/profile_scala
deleted file mode 100755
index 037fc327bd..0000000000
--- a/tools/profile_scala
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-#
-
-# Uses quick by default
-CLASSPATH=`tools/quickcp`
-
-AGENT=${YOURKIT_PATH:-/Applications/YourKit.app/bin/mac/libyjpagent.jnilib}
-
-java $JAVA_OPTS \
- -classpath $CLASSPATH \
- -agentpath:$AGENT=$YNP_STARTUP_OPTIONS \
- scala.tools.nsc.MainGenericRunner -usejavacp \
- -i <(cat <<EOF
-lazy val profiler = new scala.tools.util.YourkitProfiling { }
-import profiler._
-EOF
-) "$@"
diff --git a/tools/profile_scalac b/tools/profile_scalac
deleted file mode 100755
index f29b5b6fa4..0000000000
--- a/tools/profile_scalac
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-#
-# To influence behavior, you can set:
-#
-# YOURKIT_PATH
-# YOURKIT_PROFILE_PHASES
-# YNP_STARTUP_OPTIONS
-#
-
-# Start cpu sampling immediately
-DEFAULT_OPTS="sampling,onexit=snapshot"
-
-# Uses quick by default
-CLASSPATH=`tools/quickcp`
-
-AGENT=${YOURKIT_PATH:-/Applications/YourKit.app/bin/mac/libyjpagent.jnilib}
-OPTS=${YNP_STARTUP_OPTIONS:-$DEFAULT_OPTS}
-PHASES=${YOURKIT_PROFILE_PHASES:-all}
-
-java $JAVA_OPTS \
- -classpath $CLASSPATH \
- -agentpath:$AGENT=$OPTS \
- scala.tools.nsc.Main -usejavacp \
- -Yprofile:$PHASES \
- "$@"
diff --git a/tools/proxy-report b/tools/proxy-report
deleted file mode 100755
index 589803d6ea..0000000000
--- a/tools/proxy-report
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/usr/bin/env bash
-#
-
-$(dirname $BASH_SOURCE)/../build/pack/bin/scala scala.tools.nsc.util.ProxyReportRunner "$@" \ No newline at end of file
diff --git a/tools/scalawhich b/tools/scalawhich
deleted file mode 100755
index 6a4b1788a8..0000000000
--- a/tools/scalawhich
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-#
-
-scala scala.tools.util.Which $*
diff --git a/tools/scmp b/tools/scmp
deleted file mode 100755
index f6acea5ab1..0000000000
--- a/tools/scmp
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-#
-
-scala scala.tools.cmd.program.Scmp "$@"
diff --git a/tools/tokens b/tools/tokens
deleted file mode 100755
index b910fb29cc..0000000000
--- a/tools/tokens
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-#
-
-scala scala.tools.cmd.program.Tokens "$@"
diff --git a/tools/truncate b/tools/truncate
deleted file mode 100755
index b7f410e25d..0000000000
--- a/tools/truncate
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/bash
-
-find . -type f -not -path "*.svn*" -name "*.scala" -exec sed -i "" -e 's/$ *Id.*$/$Id$/g' {} \;
-find . -type f -not -path "*.svn*" -name "*.java" -exec sed -i "" -e 's/$ *Id.*$/$Id$/g' {} \;
-find . -type f -not -path "*.svn*" -name "*.cs" -exec sed -i "" -e 's/$ *Id.*$/$Id$/g' {} \;
-find . -type f -not -path "*.svn*" -name "*.js" -exec sed -i "" -e 's/$ *Id.*$/$Id$/g' {} \;
-find . -type f -not -path "*.svn*" -name "*.scala.disabled" -exec sed -i "" -e 's/$ *Id.*$/$Id$/g' {} \;