:

     if(test $# -eq 0 || (test $1 != "c" && test $1 != "f") ) then 
         echo ERROR. One parameter \( c or f\) is expected 
         exit 1
     fi

     ext=$1
     shift

#     ls *.$ext 1>/dev/null 2>/dev/null
#     if(test $? -ne 0) then
#        echo WARNING: \*.$ext sources are absent\; Compilation bypassed    
#     else
        $COMPHEP/nCompil_$ext
        if(test $? -ne 0)then 
           echo Error in compilation
           echo Press the Enter key to continue
           read qq 
           exit 1 
        fi
#     fi

     if(test -r n_comphep_$ext) then
       rm n_comphep_$ext
       echo WARNING: old n_comphep is deleted
     fi
     $COMPHEP/ld_$ext $* 
  
     if (test $? -ne 0) then  
           echo Error in  linking, n_comphep_$ext is not created.
           echo Press the Enter key to continue
           read qq 
           exit 1
     else
       echo OK n_comphep_$ext is created 
     fi 
