summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-09-15 19:44:37 -0700
committerPaul Phillips <paulp@improving.org>2012-09-20 09:57:00 -0700
commite4e8578c5cf433648fa5428bfb2ad2ce8d347439 (patch)
tree2a5a1ab8b15c55a72f072846e44a7cefc145a3a6 /tools
parent3136e53e0ce4d73e1d2b3e8d043fff7892b2f439 (diff)
downloadscala-e4e8578c5cf433648fa5428bfb2ad2ce8d347439.tar.gz
scala-e4e8578c5cf433648fa5428bfb2ad2ce8d347439.tar.bz2
scala-e4e8578c5cf433648fa5428bfb2ad2ce8d347439.zip
New .gitattributes file.
This should assist in keeping line endings straight. It is designed to enforce LF endings everywhere except for files specifically for windows.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/class-dump6
-rwxr-xr-xtools/jar-dump4
2 files changed, 10 insertions, 0 deletions
diff --git a/tools/class-dump b/tools/class-dump
new file mode 100755
index 0000000000..06a7e5acbc
--- /dev/null
+++ b/tools/class-dump
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+
+JAVAP_OPTS="-private"
+
+[[ -n "$1" ]] && ( cd "$(dirname "$1")" && javap $JAVAP_OPTS "$(basename "${1%%.class}")" )
diff --git a/tools/jar-dump b/tools/jar-dump
new file mode 100755
index 0000000000..166441b330
--- /dev/null
+++ b/tools/jar-dump
@@ -0,0 +1,4 @@
+#!/bin/sh
+#
+
+jar tf "$1" | sort