comparison agent/make/mkinstall @ 5818:9f9179e8f0cf

Merge
author amurillo
date Mon, 03 Mar 2014 17:48:02 -0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d8007c2fe5fd
1
2 # make the directories
3
4 SA_NAME=sa17
5 SA_TEST=$SA_NAME/test
6
7 mkdir $SA_NAME
8 mkdir $SA_NAME/solaris
9 mkdir $SA_NAME/solaris/amd64
10 mkdir $SA_NAME/solaris/sparc
11 mkdir $SA_NAME/solaris/sparcv9
12 mkdir $SA_NAME/solaris/i386
13 mkdir $SA_NAME/linux
14 mkdir $SA_NAME/linux/i386
15 mkdir $SA_NAME/linux/ia64
16 mkdir $SA_NAME/linux/amd64
17 mkdir $SA_NAME/win32
18 mkdir $SA_NAME/win32/i386
19 mkdir $SA_NAME/win32/ia64
20 mkdir $SA_NAME/win32/amd64
21 mkdir $SA_TEST
22
23 # make sa.jar
24 jar -cvf $SA_NAME/sa.jar -C ../build/classes .
25
26 # copy the native libraries
27
28 cp ../src/os/solaris/proc/amd64/libsaproc.so $SA_NAME/solaris/amd64
29 cp ../src/os/solaris/proc/sparc/libsaproc.so $SA_NAME/solaris/sparc
30 cp ../src/os/solaris/proc/sparcv9/libsaproc.so $SA_NAME/solaris/sparcv9
31 cp ../src/os/solaris/proc/i386/libsaproc.so $SA_NAME/solaris/i386
32 cp ../src/os/linux/i386/libsaproc.so $SA_NAME/linux/i386
33 cp ../src/os/linux/ia64/libsaproc.so $SA_NAME/linux/ia64
34 cp ../src/os/linux/amd64/libsaproc.so $SA_NAME/linux/amd64
35 cp ../src/os/win32/windbg/i386/sawindbg.dll $SA_NAME/win32/i386
36 cp ../src/os/win32/windbg/ia64/sawindbg.dll $SA_NAME/win32/ia64
37 cp ../src/os/win32/windbg/amd64/sawindbg.dll $SA_NAME/win32/amd64
38
39 # copy Unix (Solaris and Linux) shell scripts
40 cp saenv.sh $SA_NAME ; chmod 755 $SA_NAME/saenv.sh
41 cp saenv64.sh $SA_NAME ; chmod 755 $SA_NAME/saenv64.sh
42 cp clhsdbproc.sh $SA_NAME ; chmod 755 $SA_NAME/clhsdbproc.sh
43 cp clhsdbproc64.sh $SA_NAME ; chmod 755 $SA_NAME/clhsdbproc64.sh
44 cp dumpflagsproc.sh $SA_NAME ; chmod 755 $SA_NAME/dumpflagsproc.sh
45 cp dumpflagsproc64.sh $SA_NAME ; chmod 755 $SA_NAME/dumpflagsproc64.sh
46 cp dumpsyspropsproc.sh $SA_NAME ; chmod 755 $SA_NAME/dumpsyspropsproc.sh
47 cp dumpsyspropsproc64.sh $SA_NAME ; chmod 755 $SA_NAME/dumpsyspropsproc64.sh
48 cp finalizerinfoproc.sh $SA_NAME ; chmod 755 $SA_NAME/finalizerinfoproc.sh
49 cp finalizerinfoproc64.sh $SA_NAME ; chmod 755 $SA_NAME/finalizerinfoproc64.sh
50 cp heapdumpproc.sh $SA_NAME ; chmod 755 $SA_NAME/heapdumpproc.sh
51 cp heapdumpproc64.sh $SA_NAME ; chmod 755 $SA_NAME/heapdumpproc64.sh
52 cp heapsumproc.sh $SA_NAME ; chmod 755 $SA_NAME/heapsumproc.sh
53 cp heapsumproc64.sh $SA_NAME ; chmod 755 $SA_NAME/heapsumproc64.sh
54 cp hsdbproc.sh $SA_NAME ; chmod 755 $SA_NAME/hsdbproc.sh
55 cp hsdbproc64.sh $SA_NAME ; chmod 755 $SA_NAME/hsdbproc64.sh
56 cp jcoreproc.sh $SA_NAME ; chmod 755 $SA_NAME/jcoreproc.sh
57 cp jcoreproc64.sh $SA_NAME ; chmod 755 $SA_NAME/jcoreproc64.sh
58 cp jdbcore.sh $SA_NAME ; chmod 755 $SA_NAME/jdbcore.sh
59 cp jdbcore64.sh $SA_NAME ; chmod 755 $SA_NAME/jdbcore64.sh
60 cp jdbproc.sh $SA_NAME ; chmod 755 $SA_NAME/jdbproc.sh
61 cp jdbproc64.sh $SA_NAME ; chmod 755 $SA_NAME/jdbproc64.sh
62 cp jhistoproc.sh $SA_NAME ; chmod 755 $SA_NAME/jhistoproc.sh
63 cp jhistoproc64.sh $SA_NAME ; chmod 755 $SA_NAME/jhistoproc64.sh
64 cp jsdbproc.sh $SA_NAME ; chmod 755 $SA_NAME/jsdbproc.sh
65 cp jsdbproc64.sh $SA_NAME ; chmod 755 $SA_NAME/jsdbproc64.sh
66 cp jstackproc.sh $SA_NAME ; chmod 755 $SA_NAME/jstackproc.sh
67 cp jstackproc64.sh $SA_NAME ; chmod 755 $SA_NAME/jstackproc64.sh
68 cp permstatproc.sh $SA_NAME ; chmod 755 $SA_NAME/permstatproc.sh
69 cp permstatproc64.sh $SA_NAME ; chmod 755 $SA_NAME/permstatproc64.sh
70 cp pmapproc.sh $SA_NAME ; chmod 755 $SA_NAME/pmapproc.sh
71 cp pmapproc64.sh $SA_NAME ; chmod 755 $SA_NAME/pmapproc64.sh
72 cp pstackproc.sh $SA_NAME ; chmod 755 $SA_NAME/pstackproc.sh
73 cp pstackproc64.sh $SA_NAME ; chmod 755 $SA_NAME/pstackproc64.sh
74 cp soqlproc.sh $SA_NAME ; chmod 755 $SA_NAME/soqlproc.sh
75 cp soqlproc64.sh $SA_NAME ; chmod 755 $SA_NAME/soqlproc64.sh
76 cp start-debug-server $SA_NAME ; chmod 755 $SA_NAME/start-debug-server
77 cp start-debug-server-proc.sh $SA_NAME ; chmod 755 $SA_NAME/start-debug-server-proc.sh
78 cp start-debug-server-proc64.sh $SA_NAME ; chmod 755 $SA_NAME/start-debug-server-proc64.sh
79 cp start-rmiregistry.sh $SA_NAME ; chmod 755 $SA_NAME/start-rmiregistry.sh
80
81 # copy Windows batch files
82 cp saenv.bat $SA_NAME ; chmod 755 $SA_NAME/saenv.bat
83 cp saenv64.bat $SA_NAME ; chmod 755 $SA_NAME/saenv64.bat
84 cp clhsdbwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/clhsdbwindbg.bat
85 cp clhsdbwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/clhsdbwindbg64.bat
86 cp dumpflagswindbg.bat $SA_NAME ; chmod 755 $SA_NAME/dumpflagswindbg.bat
87 cp dumpflagswindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/dumpflagswindbg64.bat
88 cp dumpsyspropswindbg.bat $SA_NAME ; chmod 755 $SA_NAME/dumpsyspropswindbg.bat
89 cp dumpsyspropswindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/dumpsyspropswindbg64.bat
90 cp finalizerinfowindbg.bat $SA_NAME ; chmod 755 $SA_NAME/finalizerinfowindbg.bat
91 cp finalizerinfowindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/finalizerinfowindbg64.bat
92 cp heapdumpwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/heapdumpwindbg.bat
93 cp heapdumpwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/heapdumpwindbg64.bat
94 cp heapsumwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/heapsumwindbg.bat
95 cp heapsumwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/heapsumwindbg64.bat
96 cp hsdbwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/hsdbwindbg.bat
97 cp hsdbwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/hsdbwindbg64.bat
98 cp jcorewindbg.bat $SA_NAME ; chmod 755 $SA_NAME/jcorewindbg.bat
99 cp jcorewindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/jcorewindbg64.bat
100 cp jhistowindbg.bat $SA_NAME ; chmod 755 $SA_NAME/jhistowindbg.bat
101 cp jhistowindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/jhistowindbg64.bat
102 cp jsdbwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/jsdbwindbg.bat
103 cp jsdbwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/jsdbwindbg64.bat
104 cp jstackwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/jstackwindbg.bat
105 cp jstackwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/jstackwindbg64.bat
106 cp permstatwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/permstatwindbg.bat
107 cp permstatwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/permstatwindbg64.bat
108 cp pmapwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/pmapwindbg.bat
109 cp pmapwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/pmapwindbg64.bat
110 cp pstackwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/pstackwindbg.bat
111 cp pstackwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/pstackwindbg64.bat
112 cp soqlwindbg.bat $SA_NAME ; chmod 755 $SA_NAME/soqlwindbg.bat
113 cp soqlwindbg64.bat $SA_NAME ; chmod 755 $SA_NAME/soqlwindbg64.bat
114 cp start-debug-server-windbg.bat $SA_NAME ; chmod 755 $SA_NAME/start-debug-server-windbg.bat
115 cp start-debug-server-windbg64.bat $SA_NAME ; chmod 755 $SA_NAME/start-debug-server-windbg64.bat
116 cp start-rmiregistry.bat $SA_NAME ; chmod 755 $SA_NAME/start-rmiregistry.bat
117
118
119 # make the libproc test
120 cd ../test/libproc ; make; cd ../../make
121
122 # copy libproc test suite
123
124 cp ../test/libproc/README $SA_TEST/README-libproc
125 cp ../test/libproc/libproctest.sh $SA_TEST ; chmod 755 $SA_TEST/libproctest.sh
126 cp ../test/libproc/libproctest64.sh $SA_TEST ; chmod 755 $SA_TEST/libproctest64.sh
127 cp ../test/libproc/*.class $SA_TEST
128
129 # copy RMI security policy file
130 cp grantAll.policy $SA_NAME
131
132 # copy documentation
133 mkdir $SA_NAME/doc
134 cp ../doc/*.html $SA_NAME/doc
135 chmod 644 $SA_NAME/doc/*.html
136
137 # make lib dir and copy other jar files
138 mkdir $SA_NAME/lib
139 cp ../src/share/lib/*.jar $SA_NAME/lib
140
141 # tar and gzip
142 tar -cvf $SA_NAME.tar $SA_NAME
143 gzip $SA_NAME.tar
144
145 # cleanup
146 \rm -rf $SA_NAME