diff options
author | michelou <michelou@epfl.ch> | 2005-09-09 15:40:36 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2005-09-09 15:40:36 +0000 |
commit | 2bcd0daa548bf8ec6ae7e8a321eb959b42a52a04 (patch) | |
tree | 07873fd1c0af846250e087233477b2e5b99114d0 /setenv-nsc.xml | |
parent | 441a24642bf66cb660ccd19446ec9d2abae81b1e (diff) | |
download | scala-2bcd0daa548bf8ec6ae7e8a321eb959b42a52a04.tar.gz scala-2bcd0daa548bf8ec6ae7e8a321eb959b42a52a04.tar.bz2 scala-2bcd0daa548bf8ec6ae7e8a321eb959b42a52a04.zip |
- batch file for build nsc on Windows.
Diffstat (limited to 'setenv-nsc.xml')
-rw-r--r-- | setenv-nsc.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/setenv-nsc.xml b/setenv-nsc.xml new file mode 100644 index 0000000000..a22471fbd2 --- /dev/null +++ b/setenv-nsc.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<project name="scala.nsc" default="setenv"> + + <target name="setenv"> + + <property file="build-nsc.properties.${platform}" prefix="nsc." /> + + <echoproperties prefix="nsc." format="xml" destfile="/tmp/env.xml" /> + + <!-- generate "env.sh" (Unix) --> + + <xslt in="/tmp/env.xml" out="/tmp/env.sh" style="setenv-sh.xsl" /> + <copy file="/tmp/env.sh" tofile="env.sh"> + <filterchain> + <tokenfilter> + <ignoreblank /> + </tokenfilter> + </filterchain> + </copy> + + <!-- generate "env.bat" (Windows) --> + + <xslt in="/tmp/env.xml" out="/tmp/env.bat" style="setenv-bat.xsl" /> + <copy file="/tmp/env.bat" tofile="env.bat"> + <filterchain> + <tokenfilter> + <ignoreblank /> + </tokenfilter> + </filterchain> + </copy> + + </target> + +</project> + |