#! /bin/csh -f
if ( $ echo Usage: genStrings tla_source header_dest
echo "The most common usage of this script is like so:"
echo "genStrings ../../../ ../utilLib/cssmErrorStrings.h"
exit(1)
endif
set TLA_SRC=$argv[1]
set DST=$argv[2]
set CSSM_SRC=$TLA_SRC/libsecurity_cssm/lib
if ( ! -e $CSSM_SRC ) then
echo "$CSSM_SRC not found. Try another tla directory."
echo "The most common usage of this script is like so:"
echo "genStrings ../../../ ../utilLib/cssmErrorStrings.h"
exit(1)
endif
set ERRFILE1=$CSSM_SRC/cssmerr.h
set ERRFILE2=$CSSM_SRC/cssmapple.h
./genErrorStrings $ERRFILE1 $ERRFILE2 > $DST || exit(1)
echo "=== Error strings generated in $DST. ==="