mksymlinks 3.63 KB
Newer Older
1 2
#! /bin/sh

3
O_OPTIONS=OFF
4 5
. `dirname $0`/header

6
if [ $O_DEBUG = ON ] ; then
7 8 9 10 11
        Debug "NTDIST $NTDIST"
        Debug "UXDIST $UXDIST"
        Debug "TESTSCRIPTDIR $TESTSCRIPTDIR"
fi

12
if [ -d "$NSS_VER_DIR" ] ; then
13
    cd $NSS_VER_DIR
14
else
15
    glob_usage "cant cd to $NSS_VER_DIR Exiting"
16 17
fi

18
if [ -d "$NTDIST" ] ; then
19
    cd $NTDIST
20 21 22 23 24 25 26 27 28
    if [  ! -h WINNT5.0_DBG.OBJ -a ! -d WINNT5.0_DBG.OBJ ] ; then 
        ln -s WINNT4.0_DBG.OBJ WINNT5.0_DBG.OBJ
    fi
    if [  ! -h WINNT5.0_DBG.OBJD -a ! -d WINNT5.0_DBG.OBJD ] ; then 
        ln -s WINNT4.0_DBG.OBJD WINNT5.0_DBG.OBJD
    fi
    if [  ! -h WINNT5.0_OPT.OBJ -a ! -d WINNT5.0_OPT.OBJ ] ; then 
        ln -s WINNT4.0_OPT.OBJ WINNT5.0_OPT.OBJ
    fi
29 30 31 32 33 34 35 36 37
    if [  ! -h WINNT5.1_DBG.OBJ -a ! -d WINNT5.1_DBG.OBJ ] ; then 
        ln -s WINNT4.0_DBG.OBJ WINNT5.1_DBG.OBJ
    fi
    if [  ! -h WINNT5.1_DBG.OBJD -a ! -d WINNT5.1_DBG.OBJD ] ; then 
        ln -s WINNT4.0_DBG.OBJD WINNT5.1_DBG.OBJD
    fi
    if [  ! -h WINNT5.1_OPT.OBJ -a ! -d WINNT5.1_OPT.OBJ ] ; then 
        ln -s WINNT4.0_OPT.OBJ WINNT5.1_OPT.OBJ
    fi
38
    
39 40 41
    if [ $O_DEBUG = ON ] ; then
        tell
    fi
42
else
43 44 45
    if [ $O_DEBUG = ON ] ; then
        Debug "WARNING!!! cant cd to $NTDIST "
    fi
46 47 48 49
fi

if [ -d "$UXDIST" ]
then
50
    cd $UXDIST
51
else
52
    glob_usage "Error!!! cant cd to $UXDIST "
53 54 55 56
fi

ErrorFlag=0

57 58 59 60 61 62 63 64 65 66 67 68
#if [  ! -h OSF1V5.1_DBG.OBJ -a ! -d OSF1V5.1_DBG.OBJ ] ; then 
    #ln -s OSF1V4.0D_DBG.OBJ OSF1V5.1_DBG.OBJ || ErrorFlag=1
#fi
#if [  ! -h OSF1V5.1_OPT.OBJ -a ! -d OSF1V5.1_OPT.OBJ ] ; then 
    #ln -s OSF1V4.0D_OPT.OBJ OSF1V5.1_OPT.OBJ || ErrorFlag=1
#fi
#if [  ! -h OSF1V5.0_DBG.OBJ -a ! -d OSF1V5.0_DBG.OBJ ] ; then 
    #ln -s OSF1V4.0D_DBG.OBJ OSF1V5.0_DBG.OBJ || ErrorFlag=1
#fi
#if [  ! -h OSF1V5.0_OPT.OBJ -a ! -d OSF1V5.0_OPT.OBJ ] ; then 
    #ln -s OSF1V4.0D_OPT.OBJ OSF1V5.0_OPT.OBJ || ErrorFlag=1
#fi
69 70
if [  ! -h SunOS5.9_64_DBG.OBJ  -a ! -d  SunOS5.9_64_DBG.OBJ ] ; then 
    ln -s SunOS5.8_64_DBG.OBJ SunOS5.9_64_DBG.OBJ || ErrorFlag=1
71
fi
72 73
if [  ! -h SunOS5.9_64_OPT.OBJ  -a ! -d  SunOS5.9_64_OPT.OBJ ] ; then 
    ln -s SunOS5.8_64_OPT.OBJ SunOS5.9_64_OPT.OBJ || ErrorFlag=1
74
fi
75 76
if [  ! -h SunOS5.9_DBG.OBJ  -a ! -d  SunOS5.9_DBG.OBJ ] ; then 
    ln -s SunOS5.8_DBG.OBJ SunOS5.9_DBG.OBJ || ErrorFlag=1
77
fi
78 79
if [  ! -h SunOS5.9_OPT.OBJ  -a ! -d  SunOS5.9_OPT.OBJ ] ; then 
    ln -s SunOS5.8_OPT.OBJ SunOS5.9_OPT.OBJ || ErrorFlag=1
80
fi
81 82 83 84
#sonmi - still leaving the section in there so 3.3 and 3.2 will not break
#since 5.8 is the masterbuild it should never be executed
#additionally: only creat link if the slave build is present, but 
#master is not
85 86 87 88 89 90 91 92 93 94
#if [  ! -h SunOS5.8_DBG.OBJ -a ! -d  SunOS5.8_DBG.OBJ ]  ; then 
    #if [ -d SunOS5.6_DBG.OBJ ] ; then
        #ln -s SunOS5.6_DBG.OBJ SunOS5.8_DBG.OBJ || ErrorFlag=1
    #fi
#fi
#if [  ! -h SunOS5.8_OPT.OBJ -a ! -d  SunOS5.8_OPT.OBJ ] ; then 
    #if [ -d SunOS5.6_OPT.OBJ ] ; then
        #ln -s SunOS5.6_OPT.OBJ SunOS5.8_OPT.OBJ || ErrorFlag=1
    #fi
#fi
95
#if [ ! -h Linux2.4_x86_glibc_PTH_DBG.OBJ -a ! -d Linux2.4_x86_glibc_PTH_DBG.OBJ]
96 97 98
#then
    #ln -s Linux2.2_x86_glibc_PTH_DBG.OBJ Linux2.4_x86_glibc_PTH_DBG.OBJ || ErrorFlag=1
#fi
99
#if [ ! -h Linux2.4_x86_glibc_PTH_OPT.OBJ -a ! -d Linux2.4_x86_glibc_PTH_OPT.OBJ]
100 101 102
#then
    #ln -s Linux2.2_x86_glibc_PTH_OPT.OBJ Linux2.4_x86_glibc_PTH_OPT.OBJ || ErrorFlag=1
#fi
103

104
if [  ! -h SunOS5.9_i86pc_DBG.OBJ  -a ! -d SunOS5.9_i86pc_DBG.OBJ ] ; then 
105 106
    ln -s SunOS5.8_i86pc_DBG.OBJ SunOS5.9_i86pc_DBG.OBJ || ErrorFlag=1
fi
107
if [  ! -h SunOS5.9_i86pc_OPT.OBJ  -a ! -d SunOS5.9_i86pc_OPT.OBJ ] ; then 
108 109 110
    ln -s SunOS5.8_i86pc_OPT.OBJ SunOS5.9_i86pc_OPT.OBJ || ErrorFlag=1
fi

111 112 113
if [ $O_DEBUG = ON ] ; then
    tell
fi
114 115

exit $ErrorFlag #no cleanup here, no tempfiles