#!/bin/sh
### $local/com/startup/CREATE_SCRIPTS
###
### create startup scripts for poplog located at $1
### Assumes $poplocal has already been set
### This is normally run in the startup directory by installation
### scripts (e.g. SETUPDIRS, run by INSTALL_POPLOG
## Aaron Sloman
## 2 Nov 2003

echo "making script for sh ksh and bash users"
cat poplog1.sh   > poplog.sh
echo "poplogroot=$1"     >> poplog.sh
echo "export poplogroot" >> poplog.sh
cat poplog2.sh   >> poplog.sh

chmod 755 poplog.sh

echo ""
echo ""

echo "making script for csh and tcsh users"
cat poplog1   > poplog
echo "setenv poplogroot $1"     >> poplog
cat poplog2   >> poplog

chmod 755 poplog
