awips2/nativeLib/dist.native/arrange_files.sh
steve.naples bd1539e397 ASM #16969 - NativeLib: Update 32bit versions of Java and Postgresql to latest versions.
Change-Id: I23a4dae2aef9bdf71848c1e9a3338e1bddc39205

Former-commit-id: 7f8716267f [formerly f53fb9c404] [formerly 7f8716267f [formerly f53fb9c404] [formerly bdbdc68b2a [formerly 28f92f6b49d286f7c470bda6184d12b7882bb768]]]
Former-commit-id: bdbdc68b2a
Former-commit-id: 4630ed499f [formerly b89b70f22d]
Former-commit-id: 61c4126aaf
2015-01-06 19:49:03 +00:00

36 lines
1.3 KiB
Bash
Executable file

#!/bin/bash
set -o errexit
#set -o xtrace
# recursively copies the given directory and then removes it
cprm() {
if [ -d $1 ]; then
mkdir -p $2
cp -fa $1/* $2
rm -fr $1
fi
}
cprm $tmp_location/bin $tmp_location/edex/bin
cprm $tmp_location/lib $tmp_location/edex/lib/native/linux32
cprm $tmp_location/awips $tmp_location
cprm $tmp_location/edex/lib/native/linux32/python2.5 $tmp_location/lib/python2.5/plat-linux2
hydro_base_dir=$tmp_location/awipsShare/hydroapps
cprm $tmp_location/hydroapps $hydro_base_dir
# in order for the ohd lib java gui interfaces to execute they must have
# access to the runso executable and ohd.util library. the following
# places them into a location easily accessibly through a single mount point
# to the hydroapps directory
mkdir -p $hydro_base_dir/bin
mkdir -p $hydro_base_dir/lib/native/linux32
cp $tmp_location/edex/bin/runso $hydro_base_dir/bin
ohd_util_libraries="libecpg_compat.so.3 libecpg_compat.so.3.5 libecpg.so.6 libecpg.so.6.5 library.ohd.util.so libjasper.so.1 libjasper.so.1.0.0 libjvm.so libpgtypes.so.3 libpgtypes.so.3.4 library.ohd.ofs.so library.ohd.pproc.so libgfortran.so.1 library.empty.motif.so library.ohd.whfs.so libpq.so libpq.so.5 libpq.so.5.6"
for lib in $ohd_util_libraries; do
cp -P $tmp_location/edex/lib/native/linux32/$lib $hydro_base_dir/lib/native/linux32
done