<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#! /bin/csh
# clp.csh
# CLIP Cshellscript equal to CLP.BAT
# Assumption: clip has been installed in directory ~/clip
source clp_env.dat

# test existance of environment vars CLIP_SRC &amp; CLIP_TRG
if ( $?CLIP_SRC == 0  ||  $?CLIP_TRG == 0 ) then
   echo "..... Please define SOURCE and TARGET directories ....."
   echo "..... You can use  clip_env.csh  for this purpose ....."
   exit
endif

#  :create_INI_file
echo "..... CLiP the sourcefiles that are given as arguments ....."
echo "..... Report file is CLIP.RPT                          ....."

if (-f CLIP.INI) then
	unalias rm	 
	rm CLIP.INI
endif


echo This file contains data that is needed to run CLiP  &gt; CLIP.INI
echo And is generated by CLiP_MENU                      &gt;&gt; CLIP.INI
echo Modifying this file at own risk.                   &gt;&gt; CLIP.INI
echo Using CLiP_MENU is definitely recommended.         &gt;&gt; CLIP.INI
echo ""                                                 &gt;&gt; CLIP.INI
echo INTERACTIVE_MODE                                   &gt;&gt; CLIP.INI
echo NO                                                 &gt;&gt; CLIP.INI
echo BOTH                                               &gt;&gt; CLIP.INI
echo "(*      "                                         &gt;&gt; CLIP.INI
echo "*)      "                                         &gt;&gt; CLIP.INI
echo "*       "                                         &gt;&gt; CLIP.INI
echo ENDOF                                              &gt;&gt; CLIP.INI
echo "#       "                                         &gt;&gt; CLIP.INI
echo OMITTED                                            &gt;&gt; CLIP.INI
echo ------------ REPORT FILE -----------               &gt;&gt; CLIP.INI
echo clip.rpt                                           &gt;&gt; CLIP.INI
echo ------------ INPUT FILES -----------               &gt;&gt; CLIP.INI
if ( .$1 != . ) echo $CLIP_SRC/$1 			&gt;&gt; CLIP.INI
if ( .$2 != . ) echo $CLIP_SRC/$2 			&gt;&gt; CLIP.INI
if ( .$3 != . ) echo $CLIP_SRC/$3 			&gt;&gt; CLIP.INI
if ( .$4 != . ) echo $CLIP_SRC/$4 			&gt;&gt; CLIP.INI
if ( .$5 != . ) echo $CLIP_SRC/$5 			&gt;&gt; CLIP.INI
if ( .$6 != . ) echo $CLIP_SRC/$6 			&gt;&gt; CLIP.INI
if ( .$7 != . ) echo $CLIP_SRC/$7 			&gt;&gt; CLIP.INI
if ( .$8 != . ) echo $CLIP_SRC/$8 			&gt;&gt; CLIP.INI
if ( .$9 != . ) echo $CLIP_SRC/$9			&gt;&gt; CLIP.INI
echo ------------ MODULES ---------------               &gt;&gt; CLIP.INI
echo ------------ MODULE DIRECTORY ------               &gt;&gt; CLIP.INI
echo $CLIP_TRG"/"                                       &gt;&gt; CLIP.INI
echo ------------ END OF INI FILE -------               &gt;&gt; CLIP.INI

set CLIP_DIR = ~/clip
$CLIP_DIR/clip

# end of Cshellscript +++++++++++++++++++++++++++++++++++++++++++++++
</pre></body></html>