Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 | #OS=`uname -s` |
michael@0 | 8 | #DSO_SUFFIX=so |
michael@0 | 9 | #if [ "$OS" = "HP-UX" ]; then |
michael@0 | 10 | #DSO_SUFFIX=sl |
michael@0 | 11 | #fi |
michael@0 | 12 | #what libnss3.$DSO_SUFFIX | grep NSS |
michael@0 | 13 | #what libsmime3.$DSO_SUFFIX | grep NSS |
michael@0 | 14 | #what libssl3.$DSO_SUFFIX | grep NSS |
michael@0 | 15 | #ident libnss3.$DSO_SUFFIX | grep NSS |
michael@0 | 16 | #ident libsmime3.$DSO_SUFFIX | grep NSS |
michael@0 | 17 | #ident libssl3.$DSO_SUFFIX | grep NSS |
michael@0 | 18 | |
michael@0 | 19 | for w in `find . -name "libnss3.s[ol]" ; find . -name "libsmime3.s[ol]"; find . -name "libssl3.s[ol]"` |
michael@0 | 20 | do |
michael@0 | 21 | NOWHAT=FALSE |
michael@0 | 22 | NOIDENT=FALSE |
michael@0 | 23 | echo $w |
michael@0 | 24 | what $w | grep NSS || NOWHAT=TRUE |
michael@0 | 25 | ident $w | grep NSS || NOIDENT=TRUE |
michael@0 | 26 | if [ $NOWHAT = TRUE ] |
michael@0 | 27 | then |
michael@0 | 28 | echo "ERROR what $w does not contain NSS" |
michael@0 | 29 | fi |
michael@0 | 30 | if [ $NOIDENT = TRUE ] |
michael@0 | 31 | then |
michael@0 | 32 | echo "ERROR ident $w does not contain NSS" |
michael@0 | 33 | fi |
michael@0 | 34 | done |
michael@0 | 35 | #for w in `find . -name "libnss3.s[ol]" ; find . -name "libsmime3.s[ol]"; find . |
michael@0 | 36 | #-name "libssl3.s[ol]"` |
michael@0 | 37 | #do |
michael@0 | 38 | #NOWHAT=FALSE |
michael@0 | 39 | #NOIDENT=FALSE |
michael@0 | 40 | #echo $w |
michael@0 | 41 | #what $w | grep NSS || NOWHAT=TRUE |
michael@0 | 42 | #ident $w | grep NSS || NOIDENT=TRUE |
michael@0 | 43 | #if [ $NOWHAT = TRUE -a $NOIDENT = TRUE ] |
michael@0 | 44 | #then |
michael@0 | 45 | #echo "WARNING what and ident $w does not contain NSS" |
michael@0 | 46 | #strings $w | grep NSS | grep '3.2' || echo "ERROR strings does |
michael@0 | 47 | #not either..." |
michael@0 | 48 | #fi |
michael@0 | 49 | #done |
michael@0 | 50 |