#! /bin/csh
###Sign a .jar file
### usage:  signArchive.csh yourIDName File.jar
### produces:  signedFile.jar

set yourName = $1 
set file = $2    ## in the form file.jar

## Create the archive do
##jar cvf file.jar  f1.class f2.gif ...

# Step A.   Sign the archive, using the parameters given in sign_directive_$yourName. 

javakey -gs sign_directive_$yourName $file

# Step B   Move the signed archive to a file suffixed in .jar. 

mv $file.sig signed$file

# Step C.   Show the contents of the signed archive. 

echo " "
echo "Contents of the archive are: "
jar tvf signed$file
