summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-02-24 23:17:30 +0000
committerPaul Phillips <paulp@improving.org>2010-02-24 23:17:30 +0000
commit43b68ece9773a551ce8044ad25b7ad35a70545af (patch)
treed244822bc11ad8665f2ecea018de47012d75f244 /build.xml
parentcd5525a9898da03241f978eb3c7fda633d0d0536 (diff)
downloadscala-43b68ece9773a551ce8044ad25b7ad35a70545af.tar.gz
scala-43b68ece9773a551ce8044ad25b7ad35a70545af.tar.bz2
scala-43b68ece9773a551ce8044ad25b7ad35a70545af.zip
Bash completion! The file is automatically crea...
Bash completion! The file is automatically created as part of the build process and placed in $pack/etc. % scala -Xprint -Xprint-icode -Xprint-pos -Xprint-types -Xprint: % scala -Xprint: all flatten mixin tailcalls cleanup icode namer terminal closelim inliner packageobjects typer constructors jvm parser uncurry dce lambdalift pickler erasure lazyvals refchecks explicitouter liftcode superaccessors % scala -g: line none notailcalls source vars % scala -Ystruct-dispatch: invoke-dynamic mono-cache no-cache poly-cache Review by community.
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index c88affd5e4..4a5e08a9a4 100644
--- a/build.xml
+++ b/build.xml
@@ -873,8 +873,14 @@ PACKED QUICK BUILD (PACK)
<chmod perm="ugo+rx" file="${build-pack.dir}/bin/scalap"/>
<touch file="${build-pack.dir}/bin.complete" verbose="no"/>
</target>
+
+ <target name="pack.etc" depends="pack.bin" unless="pack.bin.available" >
+ <exec executable="${build-pack.dir}/bin/scala" output="${build-pack.dir}/etc/scala_completion.sh" failifexecutionfails="false" >
+ <arg line="scala.tools.util.BashCompletion" />
+ </exec>
+ </target>
- <target name="pack.done" depends="pack.bin">
+ <target name="pack.done" depends="pack.etc">
<path id="pack.classpath">
<pathelement location="${build-pack.dir}/lib/scala-library.jar"/>
<pathelement location="${build-pack.dir}/lib/scala-compiler.jar"/>