Commit 1b275c9a authored by Matteo Quintiliani's avatar Matteo Quintiliani

Start


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@902 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent 0f21f57d
ew_cygwin.bash:export GLOBALFLAGS="-D_CYGWIN -Dlinux -D__i386 -D_LINUX -D_INTEL -D_USE_SCHED -D_USE_PTHREADS -D_USE_TERMIOS -I${EW_HOME}/${EW_VERSION}/include"
ew_linux.bash:export GLOBALFLAGS="-m32 -Dlinux -D__i386 -D_LINUX -D_INTEL -D_USE_SCHED -D_USE_PTHREADS -D_USE_TERMIOS -I${EW_HOME}/${EW_VERSION}/include"
ew_macosx_intel.sh:export GLOBALFLAGS="-D_MACOSX -D_INTEL -D_USE_PTHREADS -D_USE_SCHED -I${EW_HOME}/${EW_VERSION}/include"
ew_macosx_ppc.sh:export GLOBALFLAGS="-D_MACOSX -D_SPARC -D_USE_PTHREADS -D_USE_SCHED -I${EW_HOME}/${EW_VERSION}/include"
ew_nt.cmd:set GLOBALFLAGS="/D_WINNT /D_INTEL /D_CRT_SECURE_NO_DEPRECATE /D_USE_32BIT_TIME_T"
ew_nt_ux.sh:export GLOBALFLAGS="-D_WINNT -D_INTEL -D_CRT_SECURE_NO_DEPRECATE -D_USE_32BIT_TIME_T -I${EW_HOME}/${EW_VERSION}/include"
ew_sol_intel.cmd:setenv GLOBALFLAGS "-D_INTEL -D_SOLARIS -I${EW_HOME}/${EW_VERSION}/include -I${SCHEMA_DIR}/src/include -I${SCHEMA_DIR}/src/include/internal -I${APPS_DIR}/src/include -I${ORACLE_HOME}/rdbms/demo"
ew_sol_sparc.cmd:setenv GLOBALFLAGS "-D_SPARC -D_SOLARIS -I${EW_HOME}/${EW_VERSION}/include -I${SCHEMA_DIR}/src/include -I${SCHEMA_DIR}/src/include/internal -I${APPS_DIR}/src/include -I${ORACLE_HOME}/rdbms/demo"
#!/bin/sh
#
# Syntax: ./make_dist_bin.sh ewos ewarch
#
# Examples:
# ./make_dist_bin.sh macosx intel
# ./make_dist_bin.sh sol sparc
#
EWSOURCE=earthworm_sources_nmxptool
LIBMSEEDSOURCE=libmseed-2.1.4
NMXPSOURCE=nmxptool-1.2.0
EW_HOME="`pwd`"
EW_VERSION="$EWSOURCE"
if [ -z "$2" ]; then
if [ -z "$1" ]; then
cat GLOBALFLAGS
echo ""
echo "make_dist_bin.sh OS ARCH"
echo ""
exit
else
PREFIX="ew_${1}"
fi
else
PREFIX="ew_${1}_${2}"
fi
grep "${PREFIX}\." GLOBALFLAGS
RET=$?
GLOBALFLAGS_PRE=`grep "${PREFIX}\." GLOBALFLAGS | sed -e "s/^[^:][^:]*:[^\"][^\"]*//" -e "s/\"//g"`
if [ $RET -eq 0 ]; then
EW_HOME_SUBS=`echo $EW_HOME | sed -e "s/\//|/g"`
EW_VERSION_SUBS=`echo $EW_VERSION | sed -e "s/\//|/g"`
GLOBALFLAGS=`echo $GLOBALFLAGS_PRE | sed -e "s/\\\${/X/g" -e "s/}/X/g" -e "s/XEW_HOMEX/${EW_HOME_SUBS}/g" -e "s/XEW_VERSIONX/${EW_VERSION_SUBS}/g" -e "s/|/\//g"`
echo "GLOBALFLAGS=\"$GLOBALFLAGS\""
ISOK=x
echo -n "GLOBALFLAGS is ok? [y / n] "
while [ $ISOK != "n" ] && [ $ISOK != "y" ]; do
read ISOK
echo ${ISOK}
done
if [ $ISOK != "y" ]; then
echo "Abort"
exit
fi
else
echo error
exit
fi
for FSOURCE in $EWSOURCE $LIBMSEEDSOURCE $NMXPSOURCE; do
gunzip < $FSOURCE.tar.gz | tar xvf -
done
cd libmseed
make
ranlib libmseed.a
CFLAGS="-O2 -Wall -pipe -I`pwd`"
LDFLAGS="-L`pwd`"
cd ..
cd $NMXPSOURCE
echo "./configure CFLAGS=\"${CFLAGS}\" LDFLAGS=\"${LDFLAGS}\" EW_HOME=\"${EW_HOME}\" EW_VERSION=\"${EW_VERSION}\" GLOBALFLAGS=\"${GLOBALFLAGS}\""
./configure CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" EW_HOME="${EW_HOME}" EW_VERSION="${EW_VERSION}" GLOBALFLAGS="${GLOBALFLAGS}"
make
make dist-bin
src/nmxptool -V
cp *-bin-*.gz ../dist-bin/
cd ..
rm -fr libmseed
for FSOURCE in $EWSOURCE $LIBMSEEDSOURCE $NMXPSOURCE; do
rm -fr $FSOURCE
done
scp dist-bin/* mtheo@kyuzo.int.ingv.it:/Users/mtheo/Desktop/soft/unix_sources/nmxptool/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment