# Script to prepare the MacPort/Linux dependent files for Linux or Local compilation
#   substitute.macport.sh does the equivalent for MacPort construction
#
sed 's|@PREFIX@/bin/gsort|sort|g; s/@CPP@/cpp/g; s/@CC@/gcc/g; s/@CXX@/g++/g; s/@FC@/gfortran/g; s/@PYTHON@/python/g ' define-system.sh.orig > define-system.sh
sed 's/@CPPFLAGS@/ /g; s/@LDFLAGS@/ /g; s/@FCFLAGS@/ /g; s/@CCFLAGS@/ /g; s/@CPP@/cpp/g; s/@PYTHON@/python/g' Makefile.def.orig > Makefile.def
cp imager-env.sh.orig imager-env.sh
cp Makefile.build.orig Makefile.build
#sed 's/@PYTHON@/python/g' Makefile.python.orig > Makefile.python
#
# Compare
diff -bB define-system.sh ../admin
diff -bB imager-env.sh ../admin
diff Makefile.def ../admin
diff Makefile.build ../admin
#
# Move
mv define-system.sh ../admin
mv imager-env.sh ../admin
mv Makefile.def ../admin
mv Makefile.build ../admin
#
echo "Files configured for Local compilation"
  
