File: makelinks

package info (click to toggle)
mpich 1.2.5.3-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 53,880 kB
  • ctags: 44,904
  • sloc: ansic: 260,029; cpp: 91,556; sh: 42,421; java: 33,448; makefile: 8,959; fortran: 4,601; tcl: 3,548; f90: 3,517; perl: 2,251; asm: 999; csh: 856
file content (51 lines) | stat: -rwxr-xr-x 4,463 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#! /bin/sh
# Note that we must REMOVE links that are not writable, since the SYSV version
# of ln will otherwise ask for a y/no response.  The -f option means different
# things in the SYSV and non-SYSV systems, so we can't use that.
if [ ! -s ./examples/basic/upshot ] ; then (cd ./examples/basic/ ; /bin/rm -f upshot ; ln -s ../../bin/upshot  upshot >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./examples/perftest/aclocal.m4 ] ; then (cd ./examples/perftest/ ; /bin/rm -f aclocal.m4 ; ln -s ../../aclocal.m4  aclocal.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./examples/test/aclocal.m4 ] ; then (cd ./examples/test/ ; /bin/rm -f aclocal.m4 ; ln -s ../../aclocal.m4  aclocal.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./include/mpeexten.h ] ; then (cd ./include/ ; /bin/rm -f mpeexten.h ; ln -s ../mpe/mpeexten.h  mpeexten.h >/dev/null 2>&1 ; ) ; fi
if [ -d mpe ] ; then
if [ ! -s ./mpe/point.h ] ; then (cd ./mpe/ ; /bin/rm -f point.h ; ln -s profiling/lib/point.h  point.h >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/profiling/examples/upshot ] ; then (cd ./mpe/profiling/examples/ ; /bin/rm -f upshot ; ln -s ../../../bin/upshot  upshot >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/profiling/nupshot/aclocal.m4 ] ; then (cd ./mpe/profiling/nupshot/ ; /bin/rm -f aclocal.m4 ; ln -s ../../aclocal.m4  aclocal.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/profiling/nupshot/logfiles ] ; then (cd ./mpe/profiling/nupshot/ ; /bin/rm -f logfiles ; ln -s ../upshot/logfiles  logfiles >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/profiling/nupshot/protofix.h ] ; then (cd ./mpe/profiling/nupshot/ ; /bin/rm -f protofix.h ; ln -s ../../../include/protofix.h  protofix.h >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/profiling/upshot/bin/aclocal.m4 ] ; then (cd ./mpe/profiling/upshot/bin/ ; /bin/rm -f aclocal.m4 ; ln -s ../../../aclocal.m4  aclocal.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/profiling/wrappergen/aclocal.m4 ] ; then (cd ./mpe/profiling/wrappergen/ ; /bin/rm -f aclocal.m4 ; ln -s ../../aclocal.m4  aclocal.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/requests.h ] ; then (cd ./mpe/ ; /bin/rm -f requests.h ; ln -s profiling/lib/requests.h  requests.h >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/aclocal.m4 ] ; then (cd ./mpe/ ; /bin/rm -f aclocal.m4 ; ln -s ../aclocal.m4  aclocal.m4 >/dev/null 2>&1 ; ) ; fi
fi

if [ -d mpid/ch2 ] ; then 
if [ ! -s ./mpid/ch2/tr2.h ] ; then (cd ./mpid/ch2/ ; /bin/rm -f tr2.h ; ln -s ../util/tr2.h  tr2.h >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpid/ch2/sbcnst2.h ] ; then (cd ./mpid/ch2/ ; /bin/rm -f sbcnst2.h ; ln -s ../util/sbcnst2.h  sbcnst2.h >/dev/null 2>&1 ; ) ; fi
fi

if [ -d ./mpid/ch_meiko ] ; then
if [ ! -s ./mpid/ch_meiko/dm.h ] ; then (cd ./mpid/ch_meiko/ ; /bin/rm -f dm.h ; ln -s dmmeiko.h  dm.h >/dev/null 2>&1 ; ) ; fi
fi

#if [ ! -s ./mpid/ch_nc/dm.h ] ; then (cd ./mpid/ch_nc/ ; /bin/rm -f dm.h ; ln -s dmn3.h  dm.h >/dev/null 2>&1 ; ) ; fi

if [ -d ./mpid/ch_p4 ] ; then
if [ ! -s ./mpid/ch_p4/p4/aclocal.m4 ] ; then (cd ./mpid/ch_p4/p4/ ; /bin/rm -f aclocal.m4 ; ln -s ../../../aclocal.m4  aclocal.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpid/ch_p4/p4/alog/protofix.h ] ; then (cd ./mpid/ch_p4/p4/alog/ ; /bin/rm -f protofix.h ; ln -s ../../../../include/protofix.h  protofix.h >/dev/null 2>&1 ; ) ; fi
fi

if [ ! -s ./src/env/dbxerr.c ] ; then (cd ./src/env/ ; /bin/rm -f dbxerr.c ; ln -s ../../mpe/dbxerr.c  dbxerr.c >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./src/env/mpehname.c ] ; then (cd ./src/env/ ; /bin/rm -f mpehname.c ; ln -s ../../mpe/mpehname.c  mpehname.c >/dev/null 2>&1 ; ) ; fi

# Two-level deep
for dir in examples/perftest examples/test ; do
    if [ ! -s $dir/aclocal_tcl.m4 ] ; then
        rm -f $dir/aclocal_tcl.m4
	(cd $dir ; ln -s ../../aclocal_tcl.m4 aclocal_tcl.m4 >/dev/null 2>&1 )
    fi
done

if [ ! -s ./mpe/profiling/nupshot/aclocal_tcl.m4 ] ; then (cd ./mpe/profiling/nupshot/ ; /bin/rm -f aclocal_tcl.m4 ; ln -s ../../aclocal_tcl.m4  aclocal_tcl.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/profiling/upshot/bin/aclocal_tcl.m4 ] ; then (cd ./mpe/profiling/upshot/bin/ ; /bin/rm -f aclocal_tcl.m4 ; ln -s ../../../aclocal_tcl.m4  aclocal_tcl.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/profiling/wrappergen/aclocal_tcl.m4 ] ; then (cd ./mpe/profiling/wrappergen/ ; /bin/rm -f aclocal_tcl.m4 ; ln -s ../../aclocal_tcl.m4  aclocal_tcl.m4 >/dev/null 2>&1 ; ) ; fi
if [ ! -s ./mpe/aclocal_tcl.m4 ] ; then (cd ./mpe/ ; /bin/rm -f aclocal_tcl.m4 ; ln -s ../aclocal_tcl.m4  aclocal_tcl.m4 >/dev/null 2>&1 ; ) ; fi