Index: trunk/operations/Makefile.in
===================================================================
--- trunk/operations/Makefile.in	(revision 26068)
+++ trunk/operations/Makefile.in	(revision 26068)
@@ -0,0 +1,40 @@
+default: php
+help:
+	@echo "USAGE: make install"
+
+SRC     =       .
+DEST	=       @OPSDIR@
+
+INPUTS = \
+$(DEST)/detrend/input      \
+$(DEST)/publishing/input   \
+$(DEST)/registration/input \
+$(DEST)/replication/input  \
+$(DEST)/stdscience/input   \
+$(DEST)/summitcopy/input
+
+PTOLEMYRC = \
+$(DEST)/detrend/ptolemy.rc      \
+$(DEST)/publishing/ptolemy.rc   \
+$(DEST)/registration/ptolemy.rc \
+$(DEST)/replication/ptolemy.rc  \
+$(DEST)/stdscience/ptolemy.rc   \
+$(DEST)/summitcopy/ptolemy.rc
+
+install: $(INPUTS) $(PTOLEMYRC)
+
+# dependency rules #########################
+$(DEST)/%/input: $(SRC)/%/input
+	@if [ ! -d `dirname $@` ]; then mkdir -p `dirname $@`; fi
+	cp $(SRC)/$*/input $(DEST)/$*/input || exit
+
+$(DEST)/%/ptolemy.rc: $(SRC)/%/ptolemy.rc
+	@if [ ! -d `dirname $@` ]; then mkdir -p `dirname $@`; fi
+	cp $(SRC)/$*/ptolemy.rc $(DEST)/$*/ptolemy.rc || exit
+
+# utilities #################################################
+
+clean:	
+	rm -f `find . -name "*~"`
+	rm -f `find . -name "#*"`
+
Index: trunk/operations/configure
===================================================================
--- trunk/operations/configure	(revision 26068)
+++ trunk/operations/configure	(revision 26068)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+./configure.tcsh $*
Index: trunk/operations/configure.tcsh
===================================================================
--- trunk/operations/configure.tcsh	(revision 26068)
+++ trunk/operations/configure.tcsh	(revision 26068)
@@ -0,0 +1,66 @@
+#!/bin/csh -f
+
+# this is a very low-tech version of configure, not built by autoconf.
+
+# user needs to supply:
+# --opsdir : top-level of operations
+
+set opsdir  = ""
+
+set args    = ""
+
+while ("$1" != "") 
+ switch ("$1")
+   # we need to strip the --opt word and --opt=word versions
+   set word = `echo $1 | tr = ' '`
+   if ($#word == 1) shift
+   breaksw;
+  case --opsdir*
+   if ("$1" == "--opsdir") then
+     shift
+     set opsdir = $1
+   else
+     set opsdir = `echo $1 | tr = ' ' | awk '{print $2}'`
+   endif
+   breaksw;
+  case --help:
+   goto usage
+  case -*: 
+   echo ""
+   echo "Unknown option: $1"
+   goto usage
+  default:
+   set args=($args $1);
+   breaksw;
+ endsw
+ shift
+end
+if ($#args != 1) goto usage
+
+echo
+echo "opsdir: $opsdir"
+echo
+
+if ("$opsdir" == "") goto usage
+
+# convert Makefile.in to Makefile:
+if (-e Makefile) mv -f Makefile Makefile~
+cat Makefile.in | sed "s|@OPSDIR@|$opsdir|" > Makefile
+
+exit 0
+
+usage:
+if ($#args > 1) then
+  echo unrecognized options: $args
+endif
+
+cat <<EOF
+USAGE: configure [OPTION]
+
+set the installation operations directory with --opsdir
+
+Configuration:
+  -h, --help              display this help and exit
+
+EOF
+ exit 2;
