~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/security/nss/tests/dll_version.sh

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# version controll for DLLs
 
4
# ToDo: make version parameter or find version from first occurance of 3.x
 
5
# make the 3 a variable..., include the header
 
6
 
 
7
#OS=`uname -s`
 
8
#DSO_SUFFIX=so
 
9
#if [ "$OS" = "HP-UX" ]; then
 
10
    #DSO_SUFFIX=sl
 
11
#fi
 
12
#what libnss3.$DSO_SUFFIX | grep NSS
 
13
#what libsmime3.$DSO_SUFFIX | grep NSS
 
14
#what libssl3.$DSO_SUFFIX | grep NSS
 
15
#ident libnss3.$DSO_SUFFIX | grep NSS
 
16
#ident libsmime3.$DSO_SUFFIX | grep NSS
 
17
#ident libssl3.$DSO_SUFFIX | grep NSS
 
18
 
 
19
for w in `find . -name "libnss3.s[ol]" ; find . -name "libsmime3.s[ol]"; find .  -name "libssl3.s[ol]"`
 
20
do
 
21
        NOWHAT=FALSE
 
22
        NOIDENT=FALSE
 
23
        echo $w
 
24
        what $w | grep NSS || NOWHAT=TRUE
 
25
        ident $w | grep NSS || NOIDENT=TRUE
 
26
        if [ $NOWHAT = TRUE ]
 
27
        then
 
28
                echo "ERROR what $w does not contain NSS"
 
29
        fi
 
30
        if [ $NOIDENT = TRUE ]
 
31
        then
 
32
                echo "ERROR ident $w does not contain NSS"
 
33
        fi
 
34
done
 
35
#for w in `find . -name "libnss3.s[ol]" ; find . -name "libsmime3.s[ol]"; find .
 
36
#-name "libssl3.s[ol]"`
 
37
#do
 
38
        #NOWHAT=FALSE
 
39
        #NOIDENT=FALSE
 
40
        #echo $w
 
41
        #what $w | grep NSS || NOWHAT=TRUE
 
42
        #ident $w | grep NSS || NOIDENT=TRUE
 
43
        #if [ $NOWHAT = TRUE -a $NOIDENT = TRUE ]
 
44
        #then
 
45
                #echo "WARNING what and ident $w does not contain NSS"
 
46
                #strings $w  | grep NSS | grep '3.2' || echo "ERROR strings does
 
47
#not either..."
 
48
        #fi
 
49
#done
 
50