diff options
author | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-18 18:33:03 +0000 |
---|---|---|
committer | Gilles Dubochet <gilles.dubochet@epfl.ch> | 2005-12-18 18:33:03 +0000 |
commit | d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a (patch) | |
tree | dfc6f7f497e58ea3321e6f687b11313d2afa86b5 /support | |
parent | 0e82079908655682e5140ad521cef0572cb6d2a4 (diff) | |
download | scala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.tar.gz scala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.tar.bz2 scala-d3819b93ab8b2de3d5cc35c33b8258ccdb5a931a.zip |
Removed old Scalac code in sources and various ...
Removed old Scalac code in sources and various other obsolete elements.
Diffstat (limited to 'support')
30 files changed, 0 insertions, 2065 deletions
diff --git a/support/make/csc.mk b/support/make/csc.mk deleted file mode 100644 index bfdfad7cd6..0000000000 --- a/support/make/csc.mk +++ /dev/null @@ -1,105 +0,0 @@ -############################################################-*-Makefile-*-#### -# CSC - Compile C# Files -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make csc [target=<target>] {<VARIABLE>=<value>} -# -############################################################################## -# Variables -# -# CSC_COMPILER = compiler name, for example CSC -# $(CSC_COMPILER) = compiler command -# $(CSC_COMPILER)_FLAGS = compiler-specific compilation flags -# CSC_FLAGS += compilation flags -# CSC_OUTPUTFILE = name of the generated assembly file -# CSC_REFERENCE = list of referenced assenblies -# CSC_ENCODING = character encoding used by source files -# CSC_SOURCE = version of source code -# CSC_TARGET = compilation target (exe, winexe, library, module) -# CSC_DEFINE = defines the symbols listed by the semicolon -# separated list -# CSC_FILES += files to compile -# -# All variables may have target specific values which override the -# normal value. Those values are specified by variables whose name is -# prefixed with the target name. For example, to override the value of -# the variable SC_CLASSPATH with target LIBRARY, one may define the -# variable LIBRARY_SC_CLASSPATH. -# -############################################################################## -# Examples -# -# Compile file "sources/scala/AnyVal.cs" -# -# make csc CSC_FILES=sources/scala/AnyVal.cs -# -# -# Compile the whole runtime -# -# make csc target=LIBRARY -# -# -# A Makefile rule that compiles all modified files from the runtime -# -# .latest-library : $(LIBRARY_CSC_FILES) -# @$(MAKE) csc target=LIBRARY LIBRARY_CSC_FILES='$?' -# touch $@ -# -############################################################################## - -############################################################################## -# Defaults - -CSC_COMPILER ?= $(MSIL_PLATFORM)_CSC -CYGWIN_PATH ?= $(1) -CYGWIN_FILE ?= $(1) -MONO_CSC ?= mcs -MSCLR_CSC ?= csc - -############################################################################## -# Values - -csc_COMPILER = $(call CSC_LOOKUP,CSC_COMPILER) -csc_compiler = $(call CSC_LOOKUP,$(csc_COMPILER)) -csc_compiler_flags = $(call CSC_LOOKUP,$(csc_COMPILER)_FLAGS) -csc_FLAGS = $(call CSC_LOOKUP,CSC_FLAGS) -csc_LIBDIR = $(call CSC_LOOKUP,CSC_LIBDIR) -csc_REFERENCE = $(call CSC_LOOKUP,CSC_REFERENCE) -csc_OUTPUTFILE = $(call CSC_LOOKUP,CSC_OUTPUTFILE) -csc_ENCODING = $(call CSC_LOOKUP,CSC_ENCODING) -csc_TARGET = $(call CSC_LOOKUP,CSC_TARGET) -csc_DEFINE = $(call CSC_LOOKUP,CSC_DEFINE) -csc_FILES = $(call CSC_LOOKUP,CSC_FILES) - -############################################################################## -# Command - -csc += $(csc_compiler) -csc += $(csc_compiler_flags) -csc += $(csc_FLAGS) -csc += $(csc_LIBDIR:%=/lib:$(call CYGWIN_PATH,%)) -csc += $(csc_REFERENCE:%=/r:$(call CYGWIN_PATH,%)) -csc += $(csc_OUTPUTFILE:%=/out:$(call CYGWIN_FILE,%)) -csc += $(csc_ENCODING:%=/codepage:%) -csc += $(csc_TARGET:%=/target:%) -csc += $(csc_DEFINE:%=/define:%) -csc += $(csc_FILES:%=$(call CYGWIN_FILE,'%')) - -############################################################################## -# Functions - -CSC_LOOKUP = $(if $($(target)_$(1)),$($(target)_$(1)),$($(1))) - -############################################################################## -# Rules - -csc: - $(strip $(csc)) - -.PHONY : csc - -############################################################################## diff --git a/support/make/cygwin.mk b/support/make/cygwin.mk deleted file mode 100644 index 2fc301ea09..0000000000 --- a/support/make/cygwin.mk +++ /dev/null @@ -1,32 +0,0 @@ -############################################################-*-Makefile-*-#### -# CYGWIN - Cygwin Support -############################################################################## -# $Id$ - -############################################################################## -# Exports -# -# CYGWIN_TEST : a variable that is non-empty under cygwin -# CYGWIN_PATH : a function that converts file paths -# CYGWIN_FILE : a function that converts file names -# -############################################################################## - -############################################################################## -# Defaults - -UNAME ?= uname -CYGPATH ?= cygpath - -############################################################################## -# Values - -CYGWIN_TEST = $(filter CYGWIN%,$(shell $(UNAME))) - -############################################################################## -# Functions - -CYGWIN_PATH = $(if $(CYGWIN_TEST),`$(CYGPATH) -w -p $(1)`,$(1)) -CYGWIN_FILE = $(if $(CYGWIN_TEST),`$(CYGPATH) -w $(1)`,$(1)) - -############################################################################## diff --git a/support/make/default.mk b/support/make/default.mk deleted file mode 100644 index dcc8bc7bfa..0000000000 --- a/support/make/default.mk +++ /dev/null @@ -1,43 +0,0 @@ -############################################################-*-Makefile-*-#### -# DEFAULT - Default Rules -############################################################################## -# $Id$ - -############################################################################## -# Defaults - -FIND ?= find -RM ?= rm - -############################################################################## -# Commands - -all : default -force : default.force -fastclean : default.fastclean -clean : default.clean -distclean : default.distclean - -default : - -default.force : fastclean - -default.fastclean : - -default.clean : fastclean - -default.distclean : clean - $(FIND) . '(' -name '*~' -o -name core ')' -exec $(RM) '{}' ';' - -.PHONY : all -.PHONY : force -.PHONY : fastclean -.PHONY : clean -.PHONY : distclean -.PHONY : default -.PHONY : default.force -.PHONY : default.fastclean -.PHONY : default.clean -.PHONY : default.distclean - -############################################################################## diff --git a/support/make/exec.mk b/support/make/exec.mk deleted file mode 100644 index b0f9c518a1..0000000000 --- a/support/make/exec.mk +++ /dev/null @@ -1,42 +0,0 @@ -############################################################-*-Makefile-*-#### -# EXEC - Execute Command -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make exec CMD=<command> -# -############################################################################## -# Examples -# -# Print names of all source files: -# -# make exec CMD='echo $(PROJECT_SOURCES)' -# -# -# Execute a java program with the project classpath: -# -# make exec CMD='java -cp $(PROJECT_CLASSPATH) scalac.Main' -# -############################################################################## - -############################################################################## -# Variables - -EXEC_CMD ?= $(CMD) - -############################################################################## -# Rules - -exec : - @if [ -z '$(EXEC_CMD)' ]; then \ - $(ECHO) "Usage: $(MAKE) $@ CMD=<command>"; \ - exit 1; \ - fi - @$(EXEC_CMD) - -.PHONY : exec - -############################################################################## diff --git a/support/make/grep.mk b/support/make/grep.mk deleted file mode 100644 index d8c9c66498..0000000000 --- a/support/make/grep.mk +++ /dev/null @@ -1,51 +0,0 @@ -############################################################-*-Makefile-*-#### -# GREP - Search Regular Expressions -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make grep [FLAGS=<flags>] REGEX=<regex> [FILES=<files>] -# -############################################################################## -# Examples -# -# Search for "runtime" in all source files: -# -# make grep REGEX=runtime -# -# -# Search for "runtime" in the compiler source files: -# -# make grep REGEX=runtime FILES='$(COMPILER_SOURCES)' -# -############################################################################## - -############################################################################## -# Defaults - -GREP ?= grep - -############################################################################## -# Variables - -GREP_BINARY ?= $(GREP) -GREP_FLAGS ?= $(FLAGS) -GREP_REGEX ?= $(REGEX) -GREP_FILES ?= $(if $(FILES),$(FILES),$(PROJECT_SOURCES)) - -############################################################################## -# Rules - -grep : - @if [ -z '$(GREP_REGEX)' ]; then \ - echo "Usage:" \ - "$(MAKE) $@ [FLAGS=<flags>] REGEX=<regex> [FILES=<files>]";\ - exit 1; \ - fi - @$(GREP_BINARY) $(GREP_FLAGS) '$(GREP_REGEX)' $(GREP_FILES:%='%') - -.PHONY : grep - -############################################################################## diff --git a/support/make/ilasm.mk b/support/make/ilasm.mk deleted file mode 100644 index 47a5116ea4..0000000000 --- a/support/make/ilasm.mk +++ /dev/null @@ -1,93 +0,0 @@ -############################################################-*-Makefile-*-#### -# ILASM - MSIL Assembler -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make ilasm [target=<target>] {<VARIABLE>=<value>} -# -############################################################################## -# Variables -# -# ILASM_ASSEMBLER = assembler name, for example ILASM -# $(ILASM_ASSEMBLER) = assembler command -# $(ILASM_ASSEMBLER)_FLAGS = assembler-specific compilation flags -# ILASM_FLAGS += compilation flags -# ILASM_OUTPUTFILE = name of the output assembly file -# ILASM_KEYFILE = key file -# ILASM_FILES += files to compile -# -# All variables may have target specific values which override the -# normal value. Those values are specified by variables whose name is -# prefixed with the target name. For example, to override the value of -# the variable SC_CLASSPATH with target LIBRARY, one may define the -# variable LIBRARY_SC_CLASSPATH. -# -############################################################################## -# Examples -# -# Compile file "scala.il" -# -# make ilasm ILASM_FILES=scala.il -# -# -############################################################################## - -############################################################################## -# Defaults - -ILASM_ASSEMBLER ?= $(MSIL_PLATFORM)_ILASM -CYGWIN_PATH ?= $(1) -CYGWIN_FILE ?= $(1) -MONO_ILASM ?= ilasm -MSCLR_ILASM ?= ilasm - -############################################################################## -# Values - -ilasm_ASSEMBLER = $(call ILASM_LOOKUP,ILASM_ASSEMBLER) -ilasm_assembler = $(call ILASM_LOOKUP,$(ilasm_ASSEMBLER)) -ilasm_assembler_flags = $(call ILASM_LOOKUP,$(ilasm_ASSEMBLER)_FLAGS) -ilasm_FLAGS = $(call ILASM_LOOKUP,ILASM_FLAGS) -ilasm_OUTPUTFILE = $(call ILASM_LOOKUP,ILASM_OUTPUTFILE) -ilasm_KEYFILE = $(call ILASM_LOOKUP,ILASM_KEYFILE) -ilasm_FILES = $(call ILASM_LOOKUP,ILASM_FILES) - - -############################################################################## - -MONO_ILASM_OUT_FLAG = /output: -MONO_ILASM_KEY_FLAG = /key: - -MSCLR_ILASM_OUT_FLAG = /out= -MSCLR_ILASM_KEY_FLAG = /key= - -ILASM_OUT_FLAG = $($(MSIL_PLATFORM)_ILASM_OUT_FLAG) -ILASM_KEY_FLAG = $($(MSIL_PLATFORM)_ILASM_KEY_FLAG) - -############################################################################## -# Command - -ilasm += $(ilasm_assembler) -ilasm += $(ilasm_assembler_flags) -ilasm += $(ilasm_FLAGS) -ilasm += $(ilasm_OUTPUTFILE:%=$(ILASM_OUT_FLAG)$(call CYGWIN_FILE,%)) -ilasm += $(ilasm_KEYFILE:%=$(ILASM_KEY_FLAG)$(call CYGWIN_FILE,%)) -ilasm += $(ilasm_FILES:%=$(call CYGWIN_FILE,'%')) - -############################################################################## -# Functions - -ILASM_LOOKUP = $(if $($(target)_$(1)),$($(target)_$(1)),$($(1))) - -############################################################################## -# Rules - -ilasm : - $(strip $(ilasm)) - -.PHONY : ilasm - -############################################################################## diff --git a/support/make/ildasm.mk b/support/make/ildasm.mk deleted file mode 100644 index 1fc85b7d1b..0000000000 --- a/support/make/ildasm.mk +++ /dev/null @@ -1,85 +0,0 @@ -############################################################-*-Makefile-*-#### -# ILDASM - MSIL Disassembler -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make idlasm [target=<target>] {<VARIABLE>=<value>} -# -############################################################################## -# Variables -# -# ILDASM_ASSEMBLER = assembler name, for example ILDASM -# $(ILDASM_ASSEMBLER) = assembler command -# $(ILDASM_ASSEMBLER)_FLAGS = assembler-specific compilation flags -# ILDASM_FLAGS += compilation flags -# ILDASM_OUTPUTFILE = name of the output assembly file -# ILDASM_FILES += files to compile -# -# All variables may have target specific values which override the -# normal value. Those values are specified by variables whose name is -# prefixed with the target name. For example, to override the value of -# the variable SC_CLASSPATH with target LIBRARY, one may define the -# variable LIBRARY_SC_CLASSPATH. -# -############################################################################## -# Examples -# -# Disassembly file "lib/scala.dll" -# -# make ildasm ILDASM_FILES=lib/scala.dll -# -# -############################################################################## - -############################################################################## -# Defaults - -ILDASM_DISASSEMBLER ?= $(MSIL_PLATFORM)_ILDASM -CYGWIN_PATH ?= $(1) -CYGWIN_FILE ?= $(1) -MONO_ILDASM ?= monodis -MSCLR_ILDASM ?= ildasm - -############################################################################## -# Values - -ildasm_DISASSEMBLER = $(call ILDASM_LOOKUP,ILDASM_DISASSEMBLER) -ildasm_disassembler = $(call ILDASM_LOOKUP,$(ildasm_DISASSEMBLER)) -ildasm_disassembler_flags = $(call ILDASM_LOOKUP,$(ildasm_DISASSEMBLER)_FLAGS) -ildasm_FLAGS = $(call ILDASM_LOOKUP,ILDASM_FLAGS) -ildasm_OUTPUTFILE = $(call ILDASM_LOOKUP,ILDASM_OUTPUTFILE) -ildasm_FILES = $(call ILDASM_LOOKUP,ILDASM_FILES) - -############################################################################## - -MONO_ILDASM_OUT_FLAG = --output= -MSCLR_ILDASM_OUT_FLAG = /out= - -ILDASM_OUT_FLAG = $($(MSIL_PLATFORM)_ILDASM_OUT_FLAG) - -############################################################################## -# Command - -ildasm += $(ildasm_disassembler) -ildasm += $(ildasm_disassembler_flags) -ildasm += $(ildasm_FLAGS) -ildasm += $(ildasm_OUTPUTFILE:%=$(ILDASM_OUT_FLAG)$(call CYGWIN_FILE,%)) -ildasm += $(ildasm_FILES:%=$(call CYGWIN_FILE,'%')) - -############################################################################## -# Functions - -ILDASM_LOOKUP = $(if $($(target)_$(1)),$($(target)_$(1)),$($(1))) - -############################################################################## -# Rules - -ildasm : - $(strip $(ildasm)) - -.PHONY : ildasm - -############################################################################## diff --git a/support/make/jar.mk b/support/make/jar.mk deleted file mode 100644 index 97e4785a82..0000000000 --- a/support/make/jar.mk +++ /dev/null @@ -1,81 +0,0 @@ -############################################################-*-Makefile-*-#### -# JAR - Build Java Archive -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make jar [target=<target>] {<VARIABLE>=<value>} -# -############################################################################## -# Variables -# -# JAR = archive command -# JAR_FLAGS += archive flags -# JAR_ARCHIVE = archive file -# JAR_MANIFEST = manifest file -# JAR_INPUTDIR = directory containing the files to archive -# JAR_FILES += paths (relative to INPUTDIR) of the files to archive -# -# All variables may have target specific values which override the -# normal value. Those values are specified by variables whose name is -# prefixed with the target name. For example, to override the value of -# the variable JAR_ARCHIVE with target PROJECT, one may define the -# variable PROJECT_JAR_ARCHIVE -# -############################################################################## -# Examples -# -# Build the PROJECT java archive -# -# make jar target=PROJECT -# -# -# Build a java archive containing all files in ./classes -# -# make jar JAR_ARCHIVE=test.jar JAR_INPUTDIR=./classes JAR_FILES=. -# -############################################################################## - -############################################################################## -# Defaults - -CYGWIN_PATH ?= $(1) -CYGWIN_FILE ?= $(1) -JAR ?= jar - -############################################################################## -# Values - -jar = $(call JAR_LOOKUP,JAR) -jar_FLAGS = $(call JAR_LOOKUP,JAR_FLAGS) -jar_ARCHIVE = $(call JAR_LOOKUP,JAR_ARCHIVE) -jar_MANIFEST = $(call JAR_LOOKUP,JAR_MANIFEST) -jar_INPUTDIR = $(call JAR_LOOKUP,JAR_INPUTDIR) -jar_inputdir = $(jar_INPUTDIR:%=-C $(call CYGWIN_FILE,%)) -jar_FILES = $(call JAR_LOOKUP,JAR_FILES) - -############################################################################## -# Command - -jar += c$(jar_FLAGS)f$(jar_MANIFEST:%=m) -jar += $(jar_ARCHIVE:%=$(call CYGWIN_FILE,%)) -jar += $(jar_MANIFEST:%=$(call CYGWIN_FILE,%)) -jar += $(jar_FILES:%=$(jar_inputdir) $(call CYGWIN_FILE,%)) - -############################################################################## -# Functions - -JAR_LOOKUP = $(if $($(target)_$(1)),$($(target)_$(1)),$($(1))) - -############################################################################## -# Rules - -jar: - @[ -d "$(dir $(jar_ARCHIVE))" ] || $(MKDIR) -p "$(dir $(jar_ARCHIVE))" - $(strip $(jar)) || ( $(RM) $(jar_ARCHIVE) && exit 1 ) - -.PHONY : jar - -############################################################################## diff --git a/support/make/jc.mk b/support/make/jc.mk deleted file mode 100644 index 2021fb81ad..0000000000 --- a/support/make/jc.mk +++ /dev/null @@ -1,113 +0,0 @@ -############################################################-*-Makefile-*-#### -# JC - Compile Java Files -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make jc [target=<target>] {<VARIABLE>=<value>} -# -############################################################################## -# Variables -# -# JC_PREPEND = e.g. '@' to silently run the compiler -# JC_COMPILER = compiler name, for example JAVAC -# $(JC_COMPILER) = compiler command -# $(JC_COMPILER)_FLAGS = compiler-specific compilation flags -# JC_FLAGS += compilation flags -# JC_CLASSPATH = location of user class files -# JC_SOURCEPATH = location of input source files -# JC_BOOTCLASSPATH = location of bootstrap class files -# JC_EXTDIRS = location of installed extensions -# JC_OUTPUTDIR = directory where to place generated class files -# JC_ENCODING = character encoding used by source files -# JC_SOURCE = version of source code -# JC_TARGET = version of target bytecode -# JC_FILES += files to compile -# -# All variables may have target specific values which override the -# normal value. Those values are specified by variables whose name is -# prefixed with the target name. For example, to override the value of -# the variable JC_CLASSPATH with target COMPILER, one may define the -# variable COMPILER_JC_CLASSPATH. -# -############################################################################## -# Examples -# -# Compile file "sources/scalac/Main.java" -# -# make jc JC_FILES=sources/scalac/Main.java -# -# -# Compile the whole runtime -# -# make jc target=RUNTIME -# -# -# A Makefile rule that compiles all modified files from the runtime -# -# .latest-runtime : $(RUNTIME_JC_FILES) -# @$(MAKE) jc target=RUNTIME RUNTIME_JC_FILES='$?' -# touch $@ -# -############################################################################## - -############################################################################## -# Defaults - -JC_COMPILER ?= JAVAC -CYGWIN_PATH ?= $(1) -CYGWIN_FILE ?= $(1) -JAVAC ?= javac - -############################################################################## -# Values - -jc_PREPEND = $(call JC_LOOKUP,JC_PREPEND) -jc_COMPILER = $(call JC_LOOKUP,JC_COMPILER) -jc_compiler = $(call JC_LOOKUP,$(jc_COMPILER)) -jc_compiler_flags = $(call JC_LOOKUP,$(jc_COMPILER)_FLAGS) -jc_FLAGS = $(call JC_LOOKUP,JC_FLAGS) -jc_CLASSPATH = $(call JC_LOOKUP,JC_CLASSPATH) -jc_SOURCEPATH = $(call JC_LOOKUP,JC_SOURCEPATH) -jc_BOOTCLASSPATH = $(call JC_LOOKUP,JC_BOOTCLASSPATH) -jc_EXTDIRS = $(call JC_LOOKUP,JC_EXTDIRS) -jc_OUTPUTDIR = $(call JC_LOOKUP,JC_OUTPUTDIR) -jc_ENCODING = $(call JC_LOOKUP,JC_ENCODING) -jc_SOURCE = $(call JC_LOOKUP,JC_SOURCE) -jc_TARGET = $(call JC_LOOKUP,JC_TARGET) -jc_FILES = $(call JC_LOOKUP,JC_FILES) - -############################################################################## -# Command - -jc += $(jc_PREPEND) -jc += $(jc_compiler) -jc += $(jc_compiler_flags) -jc += $(jc_FLAGS) -jc += $(jc_CLASSPATH:%=-classpath $(call CYGWIN_PATH,%)) -jc += $(jc_SOURCEPATH:%=-sourcepath $(call CYGWIN_PATH,%)) -jc += $(jc_BOOTCLASSPATH:%=-bootclasspath $(call CYGWIN_PATH,%)) -jc += $(jc_EXTDIRS:%=-extdirs $(call CYGWIN_PATH,%)) -jc += $(jc_OUTPUTDIR:%=-d $(call CYGWIN_FILE,%)) -jc += $(jc_ENCODING:%=-encoding %) -jc += $(jc_SOURCE:%=-source %) -jc += $(jc_TARGET:%=-target %) -jc += $(jc_FILES:%=$(call CYGWIN_FILE,'%')) - -############################################################################## -# Functions - -JC_LOOKUP = $(if $($(target)_$(1)),$($(target)_$(1)),$($(1))) - -############################################################################## -# Rules - -jc : - @[ -d "$(jc_OUTPUTDIR)" ] || $(MKDIR) -p "$(jc_OUTPUTDIR)" - $(strip $(jc)) - -.PHONY : jc - -############################################################################## diff --git a/support/make/latex.mk b/support/make/latex.mk deleted file mode 100644 index 43b5007422..0000000000 --- a/support/make/latex.mk +++ /dev/null @@ -1,92 +0,0 @@ -############################################################-*-Makefile-*-#### -# LATEX - Compile Latex Files -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make latex[.div|.ps|.pdf|.clean|.distclean] -# make <*.[dvi|ps|pdf]> -# -############################################################################## -# Variables -# -# LATEX_TARGETS += list of documents to generate -# LATEX_SOURCES += list of documents required to generate targets -# -############################################################################## -# Examples -# -# Generate all latex-produced documents -# -# make latex -# -# -# Generate all latex-produced PostScript documents -# -# make latex -# -# -# Generate reference in pdf format -# -# make reference.pdf -# -############################################################################## - -############################################################################## -# Defaults - -TEXINPUTS ?= .: -BIBINPUTS ?= . -LATEXMK ?= latexmk -TOUCH ?= touch - -############################################################################## -# Environment - -export TEXINPUTS -export BIBINPUTS - -############################################################################## -# Commands - -all : latex -clean : latex.clean -distclean : latex.distclean - -latex : $(LATEX_TARGETS) -latex.dvi : $(filter %.dvi,$(LATEX_TARGETS)) -latex.ps : $(filter %.ps ,$(LATEX_TARGETS)) -latex.pdf : $(filter %.pdf,$(LATEX_TARGETS)) - -latex.clean : - $(LATEXMK) -c - -latex.distclean : - $(LATEXMK) -C - -.PHONY : latex -.PHONY : latex.dvi -.PHONY : latex.ps -.PHONY : latex.pdf -.PHONY : latex.clean -.PHONY : latex.distclean - -############################################################################## -# Rules - -%.dvi : %.tex $(LATEX_SOURCES) - $(LATEXMK) $(LATEXMK_FLAGS) -g $< - -%.ps : %.dvi - $(LATEXMK) $(LATEXMK_FLAGS) -ps $*.tex - -%.pdf : %.tex $(LATEX_SOURCES) - $(LATEXMK) $(LATEXMK_FLAGS) -g -pdf $< - -.PRECIOUS : %.dvi -.PRECIOUS : %.ps -.PRECIOUS : %.pdf - -############################################################################## diff --git a/support/make/rmic.mk b/support/make/rmic.mk deleted file mode 100644 index dd0233e610..0000000000 --- a/support/make/rmic.mk +++ /dev/null @@ -1,96 +0,0 @@ -############################################################-*-Makefile-*-#### -# RMIC - Generate Stubs for Java Class Files -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make rmic [target=<target>] {<VARIABLE>=<value>} -# -############################################################################## -# Variables -# -# RMIC_COMPILER = compiler name, for example RMIC -# $(RMIC_COMPILER) = compiler command -# $(RMIC_COMPILER)_FLAGS = compiler-specific compilation flags -# RMIC_FLAGS += compilation flags -# RMIC_CLASSPATH = location of user class files -# RMIC_BOOTCLASSPATH = location of bootstrap class files -# RMIC_EXTDIRS = location of installed extensions -# RMIC_OUTPUTDIR = directory where to place generated class files -# RMIC_CLASSES += files to compile -# -# All variables may have target specific values which override the -# normal value. Those values are specified by variables whose name is -# prefixed with the target name. For example, to override the value of -# the variable RMIC_CLASSPATH with target COMPILER, one may define the -# variable COMPILER_RMIC_CLASSPATH. -# -############################################################################## -# Examples -# -# Compile file "objects/main/lib/scala/scala/runtime/distributed/ChannelImpl" -# -# make rmic RMIC_CLASSES=objects/main/lib/scala/scala/runtime/distributed/ChannelImpl -# -# -# Compile the whole runtime -# -# make rmic target=RUNTIME -# -# -# A Makefile rule that compiles all modified files from the runtime -# -# .latest-runtime : $(RUNTIME_RMIC_CLASSES) -# @$(MAKE) rmic target=RUNTIME RUNTIME_RMIC_CLASSES='$?' -# touch $@ -# -############################################################################## - -############################################################################## -# Defaults - -RMIC_COMPILER ?= RMIC -CYGWIN_PATH ?= $(1) -CYGWIN_FILE ?= $(1) -RMIC ?= rmic - -############################################################################## -# Values - -rmic_COMPILER = $(call RMIC_LOOKUP,RMIC_COMPILER) -rmic_compiler = $(call RMIC_LOOKUP,$(rmic_COMPILER)) -rmic_FLAGS = $(call RMIC_LOOKUP,RMIC_FLAGS) -rmic_CLASSPATH = $(call RMIC_LOOKUP,RMIC_CLASSPATH) -rmic_BOOTCLASSPATH = $(call RMIC_LOOKUP,RMIC_BOOTCLASSPATH) -rmic_EXTDIRS = $(call RMIC_LOOKUP,RMIC_EXTDIRS) -rmic_OUTPUTDIR = $(call RMIC_LOOKUP,RMIC_OUTPUTDIR) -rmic_CLASSES = $(call RMIC_LOOKUP,RMIC_CLASSES) - -############################################################################## -# Command - -rmic += $(rmic_compiler) -rmic += $(rmic_FLAGS) -rmic += $(rmic_CLASSPATH:%=-classpath $(call CYGWIN_PATH,%)) -rmic += $(rmic_BOOTCLASSPATH:%=-bootclasspath $(call CYGWIN_PATH,%)) -rmic += $(rmic_EXTDIRS:%=-extdirs $(call CYGWIN_PATH,%)) -rmic += $(rmic_OUTPUTDIR:%=-d $(call CYGWIN_FILE,%)) -rmic += $(rmic_CLASSES) - -############################################################################## -# Functions - -RMIC_LOOKUP = $(if $($(target)_$(1)),$($(target)_$(1)),$($(1))) - -############################################################################## -# Rules - -rmic : - @[ -d "$(rmic_OUTPUTDIR)" ] || $(MKDIR) -p "$(rmic_OUTPUTDIR)" - $(strip $(rmic)) - -.PHONY : rmic - -############################################################################## diff --git a/support/make/sc.mk b/support/make/sc.mk deleted file mode 100644 index 55eac3064e..0000000000 --- a/support/make/sc.mk +++ /dev/null @@ -1,110 +0,0 @@ -############################################################-*-Makefile-*-#### -# SC - Compile Scala Files -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make sc [target=<target>] {<VARIABLE>=<value>} -# -############################################################################## -# Variables -# -# SC_COMPILER = compiler name, for example SCALAC -# $(SC_COMPILER) = compiler command -# $(SC_COMPILER)_FLAGS = compiler-specific compilation flags -# SC_FLAGS += compilation flags -# SC_CLASSPATH = location of user class files -# SC_SOURCEPATH = location of input source files -# SC_BOOTCLASSPATH = location of bootstrap class files -# SC_EXTDIRS = location of installed extensions -# SC_OUTPUTDIR = directory where to place generated class files -# SC_ENCODING = character encoding used by source files -# SC_SOURCE = version of source code -# SC_TARGET = version of target bytecode -# SC_FILES += files to compile -# -# All variables may have target specific values which override the -# normal value. Those values are specified by variables whose name is -# prefixed with the target name. For example, to override the value of -# the variable SC_CLASSPATH with target LIBRARY, one may define the -# variable LIBRARY_SC_CLASSPATH. -# -############################################################################## -# Examples -# -# Compile file "sources/scala/Predef.scala" -# -# make sc SC_FILES=sources/scala/Predef.scala -# -# -# Compile the whole runtime -# -# make sc target=LIBRARY -# -# -# A Makefile rule that compiles all modified files from the runtime -# -# .latest-library : $(LIBRARY_SC_FILES) -# @$(MAKE) sc target=LIBRARY LIBRARY_SC_FILES='$?' -# touch $@ -# -############################################################################## - -############################################################################## -# Defaults - -SC_COMPILER ?= SCALAC -CYGWIN_PATH ?= $(1) -CYGWIN_FILE ?= $(1) -SCALAC ?= scalac - -############################################################################## -# Values - -sc_COMPILER = $(call SC_LOOKUP,SC_COMPILER) -sc_compiler = $(call SC_LOOKUP,$(sc_COMPILER)) -sc_compiler_flags = $(call SC_LOOKUP,$(sc_COMPILER)_FLAGS) -sc_FLAGS = $(call SC_LOOKUP,SC_FLAGS) -sc_CLASSPATH = $(call SC_LOOKUP,SC_CLASSPATH) -sc_SOURCEPATH = $(call SC_LOOKUP,SC_SOURCEPATH) -sc_BOOTCLASSPATH = $(call SC_LOOKUP,SC_BOOTCLASSPATH) -sc_EXTDIRS = $(call SC_LOOKUP,SC_EXTDIRS) -sc_OUTPUTDIR = $(call SC_LOOKUP,SC_OUTPUTDIR) -sc_ENCODING = $(call SC_LOOKUP,SC_ENCODING) -sc_SOURCE = $(call SC_LOOKUP,SC_SOURCE) -sc_TARGET = $(call SC_LOOKUP,SC_TARGET) -sc_FILES = $(call SC_LOOKUP,SC_FILES) - -############################################################################## -# Command - -sc += $(sc_compiler) -sc += $(sc_compiler_flags) -sc += $(sc_FLAGS) -sc += $(sc_CLASSPATH:%=-classpath $(call CYGWIN_PATH,%)) -sc += $(sc_SOURCEPATH:%=-sourcepath $(call CYGWIN_PATH,%)) -sc += $(sc_BOOTCLASSPATH:%=-bootclasspath $(call CYGWIN_PATH,%)) -sc += $(sc_EXTDIRS:%=-extdirs $(call CYGWIN_PATH,%)) -sc += $(sc_OUTPUTDIR:%=-d $(call CYGWIN_FILE,%)) -sc += $(sc_ENCODING:%=-encoding %) -sc += $(sc_SOURCE:%=-source %) -sc += $(sc_TARGET:%=-target:%) -sc += $(sc_FILES:%=$(call CYGWIN_FILE,'%')) - -############################################################################## -# Functions - -SC_LOOKUP = $(if $($(target)_$(1)),$($(target)_$(1)),$($(1))) - -############################################################################## -# Rules - -sc : - @[ -d "$(sc_OUTPUTDIR)" ] || $(MKDIR) -p "$(sc_OUTPUTDIR)" - $(strip $(sc)) - -.PHONY : sc - -############################################################################## diff --git a/support/make/scalatex.mk b/support/make/scalatex.mk deleted file mode 100644 index 01bd2b186f..0000000000 --- a/support/make/scalatex.mk +++ /dev/null @@ -1,67 +0,0 @@ -############################################################-*-Makefile-*-#### -# SCALATEX - Evaluate Embedded Scala Scripts -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make scalatex[.clean|.distclean] -# make <*.tex> -# -############################################################################## -# Examples -# -# Generate all .tex files produced by processing a .scala.tex file -# -# make scalatex -# -# -# Generate tutorial.tex by processing tutorial.scala.tex -# -# make tutorial.tex -# -############################################################################## - -############################################################################## -# Defaults - -SCSH ?= scsh - -############################################################################## -# Values - -scalatex_ENV ?= CLASSPATH=$(PROJECT_CLASSPATH) -scalatex_SCRIPT ?= $(PROJECT_SUPPORTDIR)/latex/scalatex.scm - -############################################################################## -# Commands - -all : scalatex -clean : scalatex.clean -distclean : scalatex.distclean - -scalatex : $(patsubst %.scala.tex,%.tex,$(wildcard *.scala.tex)) - -scalatex.clean : - -scalatex.distclean : - @for file in *.scala.tex; do \ - [ "$$file" = "*.scala.tex" ] || ( \ - echo $(RM) "$${file%.scala.tex}.tex"; \ - $(RM) "$${file%.scala.tex}.tex" ); \ - done - -.PHONY : scalatex -.PHONY : scalatex.clean -.PHONY : scalatex.distclean - -############################################################################## -# Rules - -%.tex : %.scala.tex - $(scalatex_ENV) $(SCSH) -e main -s $(scalatex_SCRIPT) $< $@ - -.PRECIOUS : %.tex - -############################################################################## diff --git a/support/make/sdc.mk b/support/make/sdc.mk deleted file mode 100644 index b65a91aa22..0000000000 --- a/support/make/sdc.mk +++ /dev/null @@ -1,111 +0,0 @@ -############################################################-*-Makefile-*-#### -# SDC - Compile Scala Documentation Files -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make sdc [target=<target>] {<VARIABLE>=<value>} -# -############################################################################## -# Variables -# -# SDC_COMPILER = compiler name, for example SCALADOC -# $(SDC_COMPILER) = compiler command -# $(SDC_COMPILER)_FLAGS = compiler-specific compilation flags -# SDC_FLAGS += compilation flags -# SDC_CLASSPATH = location of user class files -# SDC_SOURCEPATH = location of input source files -# SDC_BOOTCLASSPATH = location of bootstrap class files -# SDC_EXTDIRS = location of installed extensions -# SDC_OUTPUTDIR = directory where to place generated class files -# SDC_ENCODING = character encoding used by source files -# SDC_SOURCE = version of source code -# SDC_TARGET = version of target bytecode -# SDC_FILES += files to compile -# -# All variables may have target specific values which override the -# normal value. Those values are specified by variables whose name is -# prefixed with the target name. For example, to override the value of -# the variable SDC_CLASSPATH with target LIBRARY, one may define the -# variable LIBRARY_SDC_CLASSPATH. -# -############################################################################## -# Examples -# -# Compile file "sources/scala/Predef.scala" -# -# make sdc SDC_FILES=sources/scala/Predef.scala -# -# -# Compile the whole runtime -# -# make sdc target=LIBRARY -# -# -# A Makefile rule that compiles all modified files from the runtime -# -# .latest-library : $(LIBRARY_SDC_FILES) -# @$(MAKE) sdc target=LIBRARY LIBRARY_SDC_FILES='$?' -# touch $@ -# -############################################################################## - -############################################################################## -# Defaults - -SDC_COMPILER ?= SCALADOC -CYGWIN_PATH ?= $(1) -CYGWIN_FILE ?= $(1) -SCALADOC ?= scaladoc - -############################################################################## -# Values - -sdc_COMPILER = $(call SDC_LOOKUP,SDC_COMPILER) -sdc_compiler = $(call SDC_LOOKUP,$(sdc_COMPILER)) -sdc_compiler_flags = $(call SDC_LOOKUP,$(sdc_COMPILER)_FLAGS) -sdc_FLAGS = $(call SDC_LOOKUP,SDC_FLAGS) -sdc_CLASSPATH = $(call SDC_LOOKUP,SDC_CLASSPATH) -sdc_SOURCEPATH = $(call SDC_LOOKUP,SDC_SOURCEPATH) -sdc_BOOTCLASSPATH = $(call SDC_LOOKUP,SDC_BOOTCLASSPATH) -sdc_EXTDIRS = $(call SDC_LOOKUP,SDC_EXTDIRS) -sdc_OUTPUTDIR = $(call SDC_LOOKUP,SDC_OUTPUTDIR) -sdc_ENCODING = $(call SDC_LOOKUP,SDC_ENCODING) -sdc_SOURCE = $(call SDC_LOOKUP,SDC_SOURCE) -sdc_TARGET = $(call SDC_LOOKUP,SDC_TARGET) -sdc_FILES = $(call SDC_LOOKUP,SDC_FILES) - -############################################################################## -# Command - -sdc += $(sdc_compiler) -sdc += $(sdc_compiler_flags) -sdc += $(sdc_FLAGS) -sdc += $(sdc_CLASSPATH:%=-classpath $(call CYGWIN_PATH,%)) -sdc += $(sdc_SOURCEPATH:%=-sourcepath $(call CYGWIN_PATH,%)) -sdc += $(sdc_BOOTCLASSPATH:%=-bootclasspath $(call CYGWIN_PATH,%)) -sdc += $(sdc_EXTDIRS:%=-extdirs $(call CYGWIN_PATH,%)) -sdc += $(sdc_OUTPUTDIR:%=-d $(call CYGWIN_FILE,%)) -sdc += $(sdc_ENCODING:%=-encoding %) -sdc += $(sdc_SOURCE:%=-source %) -sdc += $(sdc_TARGET:%=-target %) -sdc += $(sdc_FILES:%=$(call CYGWIN_FILE,'%')) -sdc += -- scala - -############################################################################## -# Functions - -SDC_LOOKUP = $(if $($(target)_$(1)),$($(target)_$(1)),$($(1))) - -############################################################################## -# Rules - -sdc : - @[ -d "$(sdc_OUTPUTDIR)" ] || $(MKDIR) -p "$(sdc_OUTPUTDIR)" - $(strip $(sdc)) - -.PHONY : sdc - -############################################################################## diff --git a/support/make/verbfilter.mk b/support/make/verbfilter.mk deleted file mode 100644 index 984313b30b..0000000000 --- a/support/make/verbfilter.mk +++ /dev/null @@ -1,80 +0,0 @@ -############################################################-*-Makefile-*-#### -# VERBFILTER - Verbfilter Latex Files -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make verbfilter[.clean|.distclean] -# make [VERBFILTER=<verbfilter-source-file>] <*.tex> -# -############################################################################## -# Variables -# -# VERBFILTER = Verb filter source file -# -############################################################################## -# Examples -# -# Generate all .tex files produced by verbfiltering a .verb.tex file -# -# make verbfilter -# -# -# Generate reference.tex by verbfiltering reference.verb.tex with the -# specified verbfilter -# -# make VERBFILTER=../../support/latex/verbfilterScala reference.tex -# -############################################################################## - -############################################################################## -# Defaults - -JAVA ?= java -JAVAC ?= javac -VERBFILTER ?= $(PROJECT_SUPPORTDIR)/latex/verbfilterScala.java - -############################################################################## -# Values - -verbfilter = $(VERBFILTER:%.java=%) -verbfilter_CLASS = $(PROJECT_OUTPUTDIR)/$(verbfilter).class - -############################################################################## -# Commands - -all : verbfilter -clean : verbfilter.clean -distclean : verbfilter.distclean - -verbfilter : $(patsubst %.verb.tex,%.tex,$(wildcard *.verb.tex)) - -verbfilter.clean : - -verbfilter.distclean : - @for file in *.verb.tex; do \ - [ "$$file" = "*.verb.tex" ] || ( \ - echo $(RM) "$${file%.verb.tex}.tex"; \ - $(RM) "$${file%.verb.tex}.tex" ); \ - done - $(RM) $(verbfilter_CLASS) - -.PHONY : verbfilter -.PHONY : verbfilter.clean -.PHONY : verbfilter.distclean - -############################################################################## -# Rules - -%.tex : %.verb.tex $(verbfilter_CLASS) - $(JAVA) -cp $(dir $(verbfilter_CLASS)) $(notdir $(verbfilter)) $< $@ - -$(verbfilter_CLASS) : $(VERBFILTER) - $(JAVAC) $? - -.PRECIOUS : %.tex -.PRECIOUS : $(verbfilter_CLASS) - -############################################################################## diff --git a/support/make/wc.mk b/support/make/wc.mk deleted file mode 100644 index e273544f48..0000000000 --- a/support/make/wc.mk +++ /dev/null @@ -1,45 +0,0 @@ -############################################################-*-Makefile-*-#### -# WC - Count Bytes, Words and Lines -############################################################################## -# $Id$ - -############################################################################## -# Usage -# -# make wc [FLAGS=<flags>] [FILES=<files>] -# -############################################################################## -# Examples -# -# Count lines in all source files: -# -# make wc -# -# -# Count lines in the compiler source files: -# -# make wc FILES='$(COMPILER_SOURCES)' -# -############################################################################## - -############################################################################## -# Defaults - -WC ?= wc - -############################################################################## -# Variables - -WC_BINARY ?= $(WC) -WC_FLAGS ?= $(FLAGS) -WC_FILES ?= $(if $(FILES),$(FILES),$(PROJECT_SOURCES)) - -############################################################################## -# Rules - -wc : - @$(WC_BINARY) $(WC_FLAGS) $(WC_FILES:%='%') - -.PHONY : wc - -############################################################################## diff --git a/support/nightly-build/scala-nightly-test.scm b/support/nightly-build/scala-nightly-test.scm deleted file mode 100755 index 9928601ac6..0000000000 --- a/support/nightly-build/scala-nightly-test.scm +++ /dev/null @@ -1,130 +0,0 @@ -#!/bin/sh -exec scsh -e main -s "$0" "$@" -!# - -;; Script to perform the nightly test/build of Scala. -;; -;; Always make sure that the latest version of this file is copied to -;; ~scalatest/bin/scala-nightly-test.scm -;; -;; $Id$ - -;; Makefile.private to use for the build. -(define private-makefile "Makefile.private") -(define source-private-makefile - (expand-file-name (string-append "~scalatest/support/" private-makefile))) - -;; CVS repository containing the Scala compiler. -(define scala-cvs-repository-dir - (expand-file-name "~cvslamp/repositories/scala")) -;; CVS module containing the compiler. -(define scala-cvs-module-name "scala") - -;; E-mail address to which the failure notification should be sent. -(define notify-email "scala-devel@groupes.epfl.ch") -; (define notify-email "Michel.Schinz@epfl.ch") ; DEBUG - -;; Directory in which the distribution should be built. -(define nightly-build-dir - (expand-file-name "~linuxsoft/archives/scala/nightly")) - -;; End of configuration section. - -(define (main cmd-line) - (let ((prog (car cmd-line)) - (args (cdr cmd-line))) - (if (= 1 (length args)) - (scala-test (first args)) - (display-usage-and-exit prog)))) - -(define (display-usage-and-exit prog) - (format #t "Usage: ~a <result-dir>\n" prog) - (exit 1)) - -(define (get-public-link file) - (temp-file-iterate (lambda (link) (create-symlink file link) link) - (expand-file-name "~/public_html/log-~a.txt"))) - -(define (get-checkout-dir base-dir date) - (expand-file-name (format-date "~Y-~m-~d" date) base-dir)) - -(define (start-section title) - (format #t "\n* ~a\n\n" title)) - -(define (scala-test base-dir) - (let* ((checkout-dir (get-checkout-dir base-dir (date))) - (log-file (expand-file-name "log" checkout-dir))) - (create-directory checkout-dir) - (call-with-output-file log-file - (lambda (log-port) - (with-current-output-port log-port - (with-current-error-port log-port - (stdports->stdio) - (with-cwd checkout-dir - (if (not (call-with-current-continuation scala-do-test)) - (let ((link (get-public-link log-file))) - (send-warning-mail log-file - (file-name-nondirectory link))))))))))) - -(define (scala-do-test return) - (dynamic-wind - (lambda () - (display "In Emacs, read this file in -*- Outline -*- mode\n") - (start-section "Starting time") - (display (format-date "~Y-~m-~d ~H:~M ~Z\n" (date)))) - (lambda () - (let ((fail-if-error (lambda (code) (if (not (zero? code)) - (return #f))))) - (start-section "Checking out Scala module") - (fail-if-error (run (cvs -d ,scala-cvs-repository-dir - checkout - -P - ,scala-cvs-module-name))) - (with-cwd scala-cvs-module-name - (start-section "Creating link(s)") - (create-symlink source-private-makefile private-makefile) - (start-section "Compiling Scala compiler") - (fail-if-error (run (make))) - (start-section "Testing Scala compiler (1)") - (fail-if-error (run (make test))) - (start-section "Testing Scala compiler (2)") - (fail-if-error - (run (./objects/main/bin/scalatest --color=none - --show-log))) - (start-section "Creating nightly distribution") - (run (rm -rf ,nightly-build-dir)) - (create-directory nightly-build-dir) - (fail-if-error (run (make distrib) (< /dev/null))) - #t))) - (lambda () - (start-section "Ending time") - (display (format-date "~Y-~m-~d ~H:~M ~Z\n" (date)))))) - -(define (send-warning-mail log-file-name link-name) - (send-mail - notify-email - `(("Subject" . "Failure of nightly scala test") - ("To" . ,notify-email) - ("Reply-To" . ,notify-email)) - (string-append - "Tonight's automatic Scala test failed. More details can be found\n" - "in file "log-file-name"\n" - "which is available through the following URL:\n\n" - " http://lamp.epfl.ch/~scalatest/"link-name))) - -(define (send-mail to headers body) - (let ((mail-port (make-string-output-port))) - (for-each (lambda (name/contents) - (format mail-port "~a: ~a\n" - (car name/contents) - (cdr name/contents))) - headers) - (newline mail-port) - (write-string body mail-port) - (newline mail-port) - (run (sendmail "-i" ,to) - (<< ,(string-output-port-output mail-port))))) - -;;; Local Variables: -;;; mode:scheme -;;; End: diff --git a/support/scripts/cvs-move-directory b/support/scripts/cvs-move-directory deleted file mode 100755 index 44742ef9d1..0000000000 --- a/support/scripts/cvs-move-directory +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -########################################################-*-Shell-script-*-#### -# CVS-Move-Directory Command -############################################################################## -# $Id$ - -source $0.sh; -${0##*/} "$@"; - -############################################################################## diff --git a/support/scripts/cvs-move-directory.sh b/support/scripts/cvs-move-directory.sh deleted file mode 100644 index 4f4b8b6be4..0000000000 --- a/support/scripts/cvs-move-directory.sh +++ /dev/null @@ -1,89 +0,0 @@ -########################################################-*-Shell-script-*-#### -# CVS-Move-Directory Function -############################################################################## -# $Id$ - -source ${0%/*}/stdlib.sh; - -############################################################################## -# cvs-move-directory - -function cvs-move-directory-usage() { - echo "Usage: $program <source-directory> <destination-directory>"; -} - -function cvs-move-directory-args() { - case "$1" in - -? | -h | --help ) $program-usage; exit 0;; - --verbose ) verbose=true; return 1;; - --version ) echo "$program (bash script) $version";exit 0;; - -* ) args-option-unknown "$@";; - * ) args-append-array args "$@";; - esac; -} - -function cvs-move-directory-update-repository() { - [ $# = 2 -a -d "$1" -a -d "$1/CVS" ] || abort "internal error"; - local directory="$1"; shift 1; - local repository="$1"; shift 1; - - runO "$directory/CVS/Repository" echo "$repository"; - - local name; - for name in `ls -A "$directory"`; do - local file="$directory/$name"; - if [ -d "$file" -a -d "$file/CVS" ]; then - cvs-move-directory-update-repository "$file" "$repository/$name"; - fi; - done; -} - -function cvs-move-directory() { - local program="$FUNCNAME"; - local version='$Revision$'; - local -a args; - args-loop "$@"; - - # get source and destination directories - [ ${#args[@]} == 2 ] || { $program-usage 1>&2; exit 1; }; - local src_dir="${args[0]}"; - local dst_dir="${args[1]}"; - - if [ ! -d "$src_dir" ]; then - abort "could not find source directory '$src_dir'"; - fi; - if [ ! -d "$src_dir/CVS" ]; then - abort "source directory '$src_dir' is not cvs-controlled"; - fi; - if [ -d "$dst_dir" ]; then - abort "destination directory '$dst_dir' exists already"; - fi; - - local src_name=`basename "$src_dir"`; - local dst_name=`basename "$dst_dir"`; - local src_parent=`dirname "$src_dir"`; - local dst_parent=`dirname "$dst_dir"`; - local src_entries="$src_parent/CVS/Entries"; - local dst_entries="$dst_parent/CVS/Entries"; - local dst_repository="$dst_parent/CVS/Repository"; - - if [ ! -f "$src_entries" ]; then - abort "could not find source entry file '$src_entries'"; - fi; - if [ ! -f "$dst_entries" ]; then - abort "could not find destination entry file '$dst_entries'"; - fi; - if [ ! -f "$dst_repository" ]; then - abort "could not find destination repository file '$dst_repository'"; - fi; - - run mv "$src_dir" "$dst_dir"; - runO "$src_entries~" grep -v "D/$src_name////" "$src_entries"; - run mv "$src_entries~" "$src_entries"; - runOO "$dst_entries" echo "D/$dst_name////"; - - cvs-move-directory-update-repository "$dst_dir" \ - `head -1 $dst_repository`/"$dst_name"; -} - -############################################################################## diff --git a/support/scripts/cvs-remove-directory b/support/scripts/cvs-remove-directory deleted file mode 100755 index a56c9e8263..0000000000 --- a/support/scripts/cvs-remove-directory +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -########################################################-*-Shell-script-*-#### -# CVS-Remove-Directory Command -############################################################################## -# $Id$ - -source $0.sh; -${0##*/} "$@"; - -############################################################################## diff --git a/support/scripts/cvs-remove-directory.sh b/support/scripts/cvs-remove-directory.sh deleted file mode 100644 index db46589b1f..0000000000 --- a/support/scripts/cvs-remove-directory.sh +++ /dev/null @@ -1,54 +0,0 @@ -########################################################-*-Shell-script-*-#### -# CVS-Remove-Directory Function -############################################################################## -# $Id$ - -source ${0%/*}/stdlib.sh; - -############################################################################## -# cvs-move-directory - -function cvs-remove-directory-usage() { - echo "Usage: $program <source-directory>"; -} - -function cvs-remove-directory-args() { - case "$1" in - -? | -h | --help ) $program-usage; exit 0;; - --verbose ) verbose=true; return 1;; - --version ) echo "$program (bash script) $version";exit 0;; - -* ) args-option-unknown "$@";; - * ) args-append-array args "$@";; - esac; -} - -function cvs-remove-directory() { - local program="$FUNCNAME"; - local version='$Revision$'; - local -a args; - args-loop "$@"; - - # get source and destination directories - [ ${#args[@]} == 1 ] || { $program-usage 1>&2; exit 1; }; - local src_dir="${args[0]}"; - - if [ ! -d "$src_dir" ]; then - abort "could not find source directory '$src_dir'"; - fi; - if [ ! -d "$src_dir/CVS" ]; then - abort "source directory '$src_dir' is not cvs-controlled"; - fi; - - local src_name=`basename "$src_dir"`; - local src_parent=`dirname "$src_dir"`; - local src_entries="$src_parent/CVS/Entries"; - - if [ ! -f "$src_entries" ]; then - abort "could not find source entry file '$src_entries'"; - fi; - - runO "$src_entries~" grep -v "D/$src_name////" "$src_entries"; - run mv "$src_entries~" "$src_entries"; -} - -############################################################################## diff --git a/support/scripts/install b/support/scripts/install deleted file mode 100755 index e0f19ad9d3..0000000000 --- a/support/scripts/install +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -########################################################-*-Shell-script-*-#### -# Install Command -############################################################################## -# $Id$ - -source ${0%/*}/install.sh; -install "$@" - -############################################################################## diff --git a/support/scripts/install.sh b/support/scripts/install.sh deleted file mode 100644 index fb26219b51..0000000000 --- a/support/scripts/install.sh +++ /dev/null @@ -1,131 +0,0 @@ -########################################################-*-Shell-script-*-#### -# Install Function -############################################################################## -# $Id$ - -source ${0%/*}/stdlib.sh; - -############################################################################## -# install - -function install-args() { - case "$1" in - --version ) echo "install (bash script) $version"; exit 0;; - -d ) directory="true"; return 1;; - --directory ) directory="true"; return 1;; - -D ) leading="true"; return 1;; - -o ) args-option-value owner "$@";; - --owner=* ) args-inline-value owner "$@";; - -g ) args-option-value group "$@";; - --group=* ) args-inline-value group "$@";; - -m ) args-option-value mode "$@";; - --mode=* ) args-inline-value mode "$@";; - -p ) preserve="true"; return 1;; - --preserve-timestamps ) preserve="true"; return 1;; - -* ) args-option-unknown "$@";; - * ) args-append-array files "$@";; - esac; -} - -function install-attr() { - local file="$1"; - if [ -n "$mode" ]; then - run chmod "$mode" "$file"; - fi; - if [ -n "$owner" -a -n "$group" ]; then - run chown "$owner:$group" "$file"; - elif [ -n "$owner" ]; then - run chown "$owner" "$file"; - elif [ -n "$group" ]; then - run chown ":$group" "$file"; - fi; -} - -function install-mkdir() { - local dstpath="$1"; shift 1; - if [ "$dstpath" != "." ]; then - run mkdir -p "$dstpath"; - fi; -} - -function install-copy() { - local srcfile="$1"; shift 1; - local dstfile="$1"; shift 1; - run cp "$srcfile" "$dstfile"; - if [ "$preserve" == "true" ]; then - touch -r "$srcfile" "$dstfile"; - fi; - install-attr "$dstfile"; -} - -function install-dirs() { - while [ $# -gt 0 ]; do - local dstpath="$1"; shift 1; - install-mkdir "$dstpath"; - install-attr "$dstpath"; - done; -} - -function install-file() { - local srcfile="$1"; shift 1; - local dstfile="$1"; shift 1; - local dstpath="`dirname "$dstfile"`"; - if [ "$leading" == "true" ]; then - install-mkdir "$dstpath"; - fi; - install-copy "$srcfile" "$dstfile"; -} - -function install-files() { - local dstpath="$1"; shift 1; - while [ $# -gt 0 ]; do - local srcfile="$1"; shift 1; - local dstfile="$dstpath/`basename "$srcfile"`"; - install-copy "$srcfile" "$dstfile"; - done; -} - -function install() { - local program="$FUNCNAME"; - local version='$Revision$'; - local directory="false"; - local leading="false"; - local owner=""; - local group=""; - local mode=""; - local preserve="false"; - local -a files; - - args-loop "$@"; - - local count="${#files[@]}"; - if [ $count -lt 1 ]; then - if [ "$directory" == "true" ]; then - abort "missing target directory"; - else - abort "missing source file"; - fi; - fi; - - if [ "$directory" == "true" ]; then - install-dirs "${files[@]}"; - else - if [ $count -lt 2 ]; then - abort "missing destination"; - fi; - - local last="${files[$(($count-1))]}"; - if [ -d "$last" ]; then - unset files[$(($count-1))]; - install-files "$last" "${files[@]}"; - elif [ $count -eq 2 ]; then - install-file "${files[@]}"; - else - local text1="installing multiple files, but last"; - local text2="argument, '$last' is not a directory"; - abort "$text1 $text2"; - fi; - fi; -} - -############################################################################## diff --git a/support/scripts/mirror b/support/scripts/mirror deleted file mode 100755 index 179582d1de..0000000000 --- a/support/scripts/mirror +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -########################################################-*-Shell-script-*-#### -# Mirror Command -############################################################################## -# $Id$ - -source ${0%/*}/mirror.sh; -mirror "$@" - -############################################################################## diff --git a/support/scripts/mirror.sh b/support/scripts/mirror.sh deleted file mode 100644 index 64848ed538..0000000000 --- a/support/scripts/mirror.sh +++ /dev/null @@ -1,82 +0,0 @@ -########################################################-*-Shell-script-*-#### -# Mirror Function -############################################################################## -# $Id$ - -source ${0%/*}/install.sh; - -############################################################################## -# mirror - -# usage: mirror [-C prefix] [install-options] [files] dstdir -# first cds into <prefix>, then mirrors <files> into <dstdir> - -function mirror-args() { - case "$1" in - --version ) echo "install (bash script) $version"; exit 0;; - -C ) args-option-value prefix "$@";; - -o ) args-option-value owner "$@";; - --owner=* ) args-inline-value owner "$@";; - -g ) args-option-value group "$@";; - --group=* ) args-inline-value group "$@";; - -m ) args-option-value mode "$@";; - --mode=* ) args-inline-value mode "$@";; - -p ) preserve="true"; return 1;; - --preserve-timestamps ) preserve="true"; return 1;; - -* ) args-option-unknown "$@";; - * ) args-append-array files "$@";; - esac; -} - -function mirror-files() { - local prefix="$1"; shift 1; - local dstpath="$1"; shift 1; - while [ $# -gt 0 ]; do - local srcfile="$1"; shift 1; - local dstfile="$dstpath/$srcfile"; - install "${instargs[@]}" "$prefix/$srcfile" "$dstfile"; - done; -} - -function mirror() { - local program="$FUNCNAME"; - local version='$Revision$'; - local prefix="."; - local owner=""; - local group=""; - local mode=""; - local preserve="false"; - local -a files; - - args-loop "$@"; - - if [ ! -d "$prefix" ]; then - abort "could not find directory '$prefix'"; - fi; - - local count="${#files[@]}"; - if [ $count -lt 1 ]; then - abort "missing target directory"; - fi; - - local -a instargs; - instargs[${#instargs[@]}]="-D"; - if [ -n "$owner" ]; then - instargs[${#instargs[@]}]="--owner=$owner"; - fi; - if [ -n "$group" ]; then - instargs[${#instargs[@]}]="--group=$group"; - fi; - if [ -n "$mode" ]; then - instargs[${#instargs[@]}]="--mode=$mode"; - fi; - if [ "$preserve" == "true" ]; then - instargs[${#instargs[@]}]="--preserve-timestamps"; - fi; - - local dstpath="${files[$(($count-1))]}"; - unset files[$(($count-1))]; - mirror-files "$prefix" "$dstpath" "${files[@]}"; -} - -############################################################################## diff --git a/support/scripts/stdlib.sh b/support/scripts/stdlib.sh deleted file mode 100644 index fed03dae2b..0000000000 --- a/support/scripts/stdlib.sh +++ /dev/null @@ -1,94 +0,0 @@ -########################################################-*-Shell-script-*-#### -# Bash Standard Library -############################################################################## -# $Id$ - -function print() { - while [ $# -gt 0 ]; do - echo "$1"; - shift 1; - done -} - -function abort() { - print "${program:-$0}: ""$@" 1>&2; - exit 1; -} - -function warning() { - print "${program:-$0}: warning: ""$@" 1>&2; -} - -function run_() { - "$@" || exit $?; -} - -function run() { - [ "$verbose" = "true" ] && echo "$@"; - run_ "$@"; -} - -function runO() { - local stdout="$1"; shift 1; - [ "$verbose" = "true" ] && echo "$@" "1>" "$stdout"; - run_ "$@" 1> "$stdout"; -} - -function runOO() { - local stdout="$1"; shift 1; - [ "$verbose" = "true" ] && echo "$@" "1>>" "$stdout"; - run_ "$@" 1>> "$stdout"; -} - -############################################################################## - -# usage: args-loop <script> "$@" -# process all arguments -function args-loop() { - while [ $# -gt 0 ]; do - $program-args "$@"; - shift $?; - done; -} - -# usage: args-option-unknown "$@" -# <option> ... => abort "unknown option <option>"; -function args-option-unknown() { - abort "unknown option $1"; -} - -# usage: args-unknown "$@" -# <argument> ... => abort "don't know what to do with argument <argument>"; -function args-unknown() { - abort "don't know what to do with argument '$1'"; -} - -# usage: args-append-array <array> "$@" -# <argument> ... => <array>[${#<array>[@]}]=<argument>; shift 1; -function args-append-array() { - local array="$1"; shift 1; - eval "$array[\${#$array[@]}]=\"\$1\""; - return 1; -} - -# usage: args-option-value <value> "$@" -# <option> <argument> ... => <value>=<argument>; shift 2; -function args-option-value() { - local value="$1"; shift 1; - if [ $# -lt 2 ]; then - abort "missing argument for option $1"; - fi; - eval "$value=\"\$2\""; - return 2; -} - -# usage: args-inline-value <value> "$@" -# <value-name>=<argument> ... => <value>=<argument>; shift 1; -function args-inline-value() { - local value="$1"; shift 1; - local prefix="$value"; - eval "$value=\"\${1#--$prefix=}\""; - return 1; -} - -############################################################################## diff --git a/support/scripts/version-manager b/support/scripts/version-manager deleted file mode 100755 index 7c4d8f3d38..0000000000 --- a/support/scripts/version-manager +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -########################################################-*-Shell-script-*-#### -# Version-Manager Command -############################################################################## -# $Id$ - -source $0.sh; -${0##*/} "$@"; - -############################################################################## diff --git a/support/scripts/version-manager.sh b/support/scripts/version-manager.sh deleted file mode 100644 index 9c7976872f..0000000000 --- a/support/scripts/version-manager.sh +++ /dev/null @@ -1,150 +0,0 @@ -########################################################-*-Shell-script-*-#### -# Version-Manager Function -############################################################################## -# $Id$ - -source ${0%/*}/stdlib.sh; - -############################################################################## -# version-manager - -function version-manager-usage() { - echo "Usage: $program <version-file> update"; - echo " $program <version-file> increment"; - echo " $program <version-file> set <version-value>"; -} - -function version-manager-args() { - case "$1" in - -? | -h | --help ) $program-usage; exit 0;; - --verbose ) verbose=true; return 1;; - --version ) echo "$program (bash script) $version";exit 0;; - -* ) args-option-unknown "$@";; - * ) args-append-array args "$@";; - esac; -} - -function version-manager-compose() { - [ $# = 5 ] || abort "internal error"; - local variable="$1"; shift 1; - local value="$1.$2.$3.$4"; shift 4; - eval "$variable=\"\$value\""; -} - -function version-manager-decompose() { - [ $# = 2 ] || abort "internal error"; - local array="$1"; shift 1; - local value="$1"; shift 1; - local v0=`expr "$value" : '\([0-9]*\)\.[0-9]*\.[0-9]*\.[0-9]*$'`; - local v1=`expr "$value" : '[0-9]*\.\([0-9]*\)\.[0-9]*\.[0-9]*$'`; - local v2=`expr "$value" : '[0-9]*\.[0-9]*\.\([0-9]*\)\.[0-9]*$'`; - local v3=`expr "$value" : '[0-9]*\.[0-9]*\.[0-9]*\.\([0-9]*\)$'`; - eval "$array[0]=\"\$v0\""; - eval "$array[1]=\"\$v1\""; - eval "$array[2]=\"\$v2\""; - eval "$array[3]=\"\$v3\""; -} - -function version-manager-check-syntax() { - [ $# = 1 ] || abort "internal error"; - local value="$1"; shift 1; - expr "$value" : '[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*$' 1> /dev/null 2>&1; -} - -function version-manager-check-order() { - [ $# = 8 ] || abort "internal error"; - local l0="$1"; local l1="$2"; local l2="$3"; local l3="$4"; shift 4; - local r0="$1"; local r1="$2"; local r2="$3"; local r3="$4"; shift 4; - [ $l0 -lt $r0 ] && return 0; [ $l0 -gt $r0 ] && return 1; - [ $l1 -lt $r1 ] && return 0; [ $l1 -gt $r1 ] && return 1; - [ $l2 -lt $r2 ] && return 0; [ $l2 -gt $r2 ] && return 1; - [ $l3 -lt $r3 ] && return 0; [ $l3 -gt $r3 ] && return 1; - return 1; -} - -function version-manager() { - local program="$FUNCNAME"; - local version='$Revision$'; - local -a args; - args-loop "$@"; - - # get file name and command name - [ ${#args[@]} -ge 2 ] || { $program-usage 1>&2; exit 1; } - local file="${args[0]}"; - local command="${args[1]}"; - - # check command name and argument count - case "$command" in - update ) local nargs=0;; - increment ) local nargs=0;; - set ) local nargs=1;; - * ) $program-usage 1>&2; exit 1;; - esac; - [ ${#args[@]} = $[$nargs+2] ] || { $program-usage 1>&2; exit 1; } - - # check new value syntax, if command is "set" - if [ "$command" = "set" ]; then - local new_value="${args[2]}"; - if ! $program-check-syntax "$new_value.0"; then - local -a error; - error[0]="version value '$new_value' does not conform"; - error[1]="to version syntax <int>.<int>.<int>"; - abort "${error[*]}"; - fi; - new_value="$new_value.0"; - fi; - - # check file existence - [ -f "$file" ] || abort "could not find file '$file'"; - - # update version file - run rm -f "$file"; - run cvs -Q update "$file"; - - # get old value - local old_value=`tail -1 "$file"`; - - # check old value syntax - if ! $program-check-syntax "$old_value"; then - local -a error; - error[0]="version value '$old_value' in file '$file' does not conform"; - error[1]="to version syntax <int>.<int>.<int>.<int>"; - abort "${error[*]}"; - fi; - - # terminate if command is "update" - [ "$command" = "update" ] && exit 0; - - # compute old and new arrays - local -a old_array; - local -a new_array; - $program-decompose old_array "$old_value"; - if [ "$command" = "increment" ]; then - $program-decompose new_array "$old_value"; - new_array[3]=$[${new_array[3]}+1]; - else - $program-decompose new_array "$new_value"; - fi; - - # check order of old and new values - if ! $program-check-order "${old_array[@]}" "${new_array[@]}"; then - abort "new version must be greater than '$old_value'"; - fi; - - # compute new value - local new_value; - $program-compose new_value "${new_array[@]}"; - - # rewrite version file - runO "$file~" sed -es@"$old_value"@"$new_value"@ "$file"; - run mv "$file~" "$file"; - - # commit version file - runO /dev/null cvs -Q commit -m "Set version to $new_value" "$file"; - - if [ "$command" = "set" ]; then - echo "Successfully changed version to $new_value"; - fi; -} - -############################################################################## diff --git a/support/windows/scala_wrapper-footer.bat b/support/windows/scala_wrapper-footer.bat deleted file mode 100755 index a9fd9b6605..0000000000 --- a/support/windows/scala_wrapper-footer.bat +++ /dev/null @@ -1,29 +0,0 @@ -
-if "%SCALA_HOME%" == "" goto error1
-if not exist "%SCALA_HOME%\VERSION-%VERSION%" goto error2
-
-set ARGS=
-
-:loop
-if '%1' == '' goto exec
-set ARGS=%ARGS% %1
-shift
-goto loop
-
-:exec
-%COMMAND% %ARGS%
-goto end
-
-:error1
-echo ERROR: environment variable SCALA_HOME is undefined. It should point to the directory containing the file "VERSION-%VERSION%".
-goto end
-
-:error2
-echo ERROR: environment variable SCALA_HOME points to the wrong directory "%SCALA_HOME%". It should point to the directory containing the file "VERSION-%VERSION%".
-goto end
-
-:end
-set VERSION=
-set COMMAND=
-
-if "%OS%"=="Windows_NT" @endlocal
diff --git a/support/windows/scala_wrapper-header.bat b/support/windows/scala_wrapper-header.bat deleted file mode 100755 index 7f70f30cb1..0000000000 --- a/support/windows/scala_wrapper-header.bat +++ /dev/null @@ -1,10 +0,0 @@ -@echo off
-
-rem Copyright (C) 2002-2005 LAMP/EPFL
-rem
-rem This is free software; see the distribution for copying conditions.
-rem There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
-rem PARTICULAR PURPOSE.
-
-if "%OS%"=="Windows_NT" @setlocal
-
|