-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path_testrun.sh
More file actions
executable file
·62 lines (46 loc) · 1.11 KB
/
_testrun.sh
File metadata and controls
executable file
·62 lines (46 loc) · 1.11 KB
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
52
53
54
55
56
57
58
59
60
61
62
#!/bin/sh
#
#
# Name: _TESTRUN SH
# Author: Rick Troth
# Date: 2000-Sep-12 (Tue)
#
#
UNAMES=`uname -s`
UNAMEP=`uname -m`
PREFIX="/bmc/auto/ftp/pub/cmsfs"
case "$UNAMES" in
AIX)
UNAMEP=`uname -M | awk '{print $2}'`
;;
Linux)
UNAMEP=`uname -m`
;;
SunOS)
UNAMES="Solaris"
UNAMEP=`uname -p`
;;
*)
echo "$0: unknown O/S '$UNAMES'"
exit 32
;;
esac
case "$UNAMEP" in
PPS)
UNAMEP="powerpc"
;;
i686|i586|i486)
UNAMEP=i386
;;
esac
if [ ! -d "$PREFIX"/"$UNAMES-$UNAMEP" ] ; then
mkdir "$PREFIX"/"$UNAMES-$UNAMEP"
mkdir "$PREFIX"/"$UNAMES-$UNAMEP"/bin
mkdir "$PREFIX"/"$UNAMES-$UNAMEP"/lib
fi
for F in $* ; do
new -k bin/$F "$PREFIX"/"$UNAMES-$UNAMEP"/bin/.
done
for F in *.a *.o ; do
new -k lib/$F "$PREFIX"/"$UNAMES-$UNAMEP"/lib/.
done