|
Lines 76-92
Link Here
|
| 76 |
cd .. |
76 |
cd .. |
| 77 |
|
77 |
|
| 78 |
package: |
78 |
package: |
| 79 |
rm -rf packaging |
79 |
# Note about the packing process. Only files that should appear in the SDK should be added here. Runtime files should be added after creating agntctrl.base.$(BUILD_PLATFORM).zip |
| 80 |
mkdir -p packaging/bin |
80 |
mkdir -p packaging/bin |
| 81 |
mkdir -p packaging/lib |
81 |
mkdir -p packaging/lib |
|
|
82 |
|
| 83 |
if [ -e packaging_md/plugins ]; then cp -r packaging_md/plugins packaging; \ |
| 84 |
fi; |
| 85 |
|
| 82 |
if [ -e ${CBE_SDK_HOME}/lib/libcbe.so ]; then cp ${CBE_SDK_HOME}/lib/libcbe.so packaging/lib; \ |
86 |
if [ -e ${CBE_SDK_HOME}/lib/libcbe.so ]; then cp ${CBE_SDK_HOME}/lib/libcbe.so packaging/lib; \ |
| 83 |
fi; |
87 |
fi; |
| 84 |
if [ -e ${TEMP_LICENSE_HOME}/epl-v10.html ]; then cp ${TEMP_LICENSE_HOME}/epl-v10.html packaging; \ |
|
|
| 85 |
fi; |
| 86 |
if [ -e ${TEMP_LICENSE_HOME}/notice.html ]; then cp ${TEMP_LICENSE_HOME}/notice.html packaging; \ |
| 87 |
fi; |
| 88 |
|
88 |
|
| 89 |
# Some Solaris systems are unable to copy symbolic links, to work arround this, the files are zipped up and unzipped into the correct location. |
89 |
# Some Solaris systems are unable to copy symbolic links, to work around this, the files are zipped up and unzipped into the correct location. |
| 90 |
ifeq ($(UNAME), SunOS) |
90 |
ifeq ($(UNAME), SunOS) |
| 91 |
zip -qjy tmp.zip lib/lib* |
91 |
zip -qjy tmp.zip lib/lib* |
| 92 |
unzip -q tmp.zip -d packaging/lib |
92 |
unzip -q tmp.zip -d packaging/lib |
|
Lines 113-125
Link Here
|
| 113 |
if [ -e packaging/lib/libperflin.so ]; then rm -f packaging/lib/libperflin.*; fi; |
113 |
if [ -e packaging/lib/libperflin.so ]; then rm -f packaging/lib/libperflin.*; fi; |
| 114 |
if [ -e packaging/lib/librac.so ]; then rm -f packaging/lib/librac.*; fi; |
114 |
if [ -e packaging/lib/librac.so ]; then rm -f packaging/lib/librac.*; fi; |
| 115 |
|
115 |
|
|
|
116 |
# Create agntctrl.base.zip which will become the SDK after adding include and samples folders |
| 117 |
# Certain files will have to be excluded as they should only be in the runtime but had to be added before creating the runtime. |
| 116 |
rm -f agntctrl.base.$(BUILD_PLATFORM).zip |
118 |
rm -f agntctrl.base.$(BUILD_PLATFORM).zip |
| 117 |
cd packaging; \ |
119 |
cd packaging; \ |
| 118 |
zip -r9y ../agntctrl.base.$(BUILD_PLATFORM).zip *; \ |
120 |
zip -r9y ../agntctrl.base.$(BUILD_PLATFORM).zip * -x bin/*.jar lib/*.jar /plugins/* /swt_licenses/* lib/libswt*; \ |
| 119 |
cd .. |
121 |
cd .. |
| 120 |
|
122 |
|
| 121 |
rm -rf packaging |
123 |
# Files that will appear only in the runtime and not the SDK can now be added. |
| 122 |
mkdir -p packaging/bin |
124 |
# Copy about files into packaged zips. |
|
|
125 |
cp packaging_md/linux/getting_started.html packaging |
| 126 |
cp packaging_md/linux/book.css packaging |
| 127 |
cp -r packaging_md/Resources packaging |
| 128 |
cp -r packaging_md/security packaging |
| 123 |
|
129 |
|
| 124 |
# Some Solaris systems are unable to copy symbolic links, to work arround this, the files are zipped up and unzipped into the correct location. |
130 |
# Some Solaris systems are unable to copy symbolic links, to work arround this, the files are zipped up and unzipped into the correct location. |
| 125 |
ifeq ($(UNAME), SunOS) |
131 |
ifeq ($(UNAME), SunOS) |
|
Lines 139-146
Link Here
|
| 139 |
|
145 |
|
| 140 |
rm -f packaging/bin/ACStart-aix.sh packaging/bin/ACStop-aix.sh |
146 |
rm -f packaging/bin/ACStart-aix.sh packaging/bin/ACStop-aix.sh |
| 141 |
|
147 |
|
| 142 |
# TODO: localize the packaging process by performing symlinking and other final packaging steps here |
148 |
# Create the symbolic links in the bin directory for RA* versions of the AC* files |
| 143 |
|
149 |
# Links are created in the current directory then moved due since "cd packaging/bin; ln -s ./ACStart.sh RAStart.sh" doesn't create the links in packaging/bin for some reason. |
|
|
150 |
cp packaging/bin/ACServer packaging/bin/RAServer |
| 151 |
ln -s ./ACStart.sh RAStart.sh |
| 152 |
ln -s ./ACStop.sh RAStop.sh |
| 153 |
mv RAS* packaging/bin |
| 154 |
|
| 155 |
# Add the SetConfig.sh to bin |
| 156 |
cp packaging_md/linux/bin/SetConfig.sh packaging/bin |
| 157 |
|
| 158 |
# Remove swt libraries and licenses from non ia32 platforms |
| 159 |
ifneq ($(BUILD_PLATFORM), linux_ia32) |
| 160 |
rm -rf packaging/swt_licenses packaging/lib/libswt* |
| 161 |
endif |
| 162 |
|
| 144 |
cp agntctrl.base.$(BUILD_PLATFORM).zip agntctrl.$(BUILD_PLATFORM).zip |
163 |
cp agntctrl.base.$(BUILD_PLATFORM).zip agntctrl.$(BUILD_PLATFORM).zip |
| 145 |
cd packaging; \ |
164 |
cd packaging; \ |
| 146 |
zip -ur9y ../agntctrl.$(BUILD_PLATFORM).zip *; \ |
165 |
zip -ur9y ../agntctrl.$(BUILD_PLATFORM).zip *; \ |