security/nss/tests/jss_dll_version.sh

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rwxr-xr-x

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 #!/bin/sh
michael@0 2
michael@0 3 # version controll for DLLs
michael@0 4 # ToDo: make version parameter or find version from first occurance of 3.x
michael@0 5 # make the 3 a variable..., include the header
michael@0 6
michael@0 7 for w in `find . -name "libjss3.s[ol]"`
michael@0 8 do
michael@0 9 NOWHAT=FALSE
michael@0 10 NOIDENT=FALSE
michael@0 11 echo $w
michael@0 12 what $w | grep JSS || NOWHAT=TRUE
michael@0 13 ident $w | grep JSS || NOIDENT=TRUE
michael@0 14 if [ $NOWHAT = TRUE ]
michael@0 15 then
michael@0 16 echo "ERROR what $w does not contain JSS"
michael@0 17 fi
michael@0 18 if [ $NOIDENT = TRUE ]
michael@0 19 then
michael@0 20 echo "ERROR ident $w does not contain JSS"
michael@0 21 fi
michael@0 22 done

mercurial