archie/build.sh

137 lines
3.6 KiB
Bash
Raw Normal View History

2024-05-27 16:13:40 +02:00
#!/usr/tgcware/bin/bash
WORLD_ROOT=${PWD}
ARCHIE_ROOT="${WORLD_ROOT}/archie"
PROSPERO_ROOT="${WORLD_ROOT}/prospero"
BERKDB_ROOT="${WORLD_ROOT}/berkdb"
2024-05-27 16:40:40 +02:00
TCL_ROOT="${WORLD_ROOT}/tcl7.6"
2024-05-27 16:54:25 +02:00
TCLDP_ROOT="${WORLD_ROOT}/tcl-dp"
2024-05-27 16:40:40 +02:00
TK_ROOT="${WORLD_ROOT}/tk4.2"
2024-05-27 16:13:40 +02:00
SOLOS=$(uname -s)
SOLVER=$(uname -r)
SYSTYPE="${SOLOS}-${SOLVER}"
2024-05-27 21:24:26 +02:00
DEST_DIR="${WORLD_ROOT}/dist"
2024-05-27 16:13:40 +02:00
2024-05-27 16:20:51 +02:00
export ARCHIE_ROOT=${ARCHIE_ROOT}
export PROSPERO_ROOT=${PROSPERO_ROOT}
export BERKDB_ROOT=${BERKDB_ROOT}
export TCL_ROOT=${TCL_ROOT}
export TCLDP_ROOT=${TCLDP_ROOT}
export TK_ROOT=${TK_ROOT}
export SYSTYPE=${SYSTYPE}
2024-05-27 21:24:26 +02:00
export DEST_DIR=${DEST_DIR}
export PATH=${DEST_DIR}/bin:${PATH}
2024-05-27 16:13:40 +02:00
2024-05-27 21:24:26 +02:00
mkdir -p ${DEST_DIR}/{bin,pfs}
2024-05-27 16:13:40 +02:00
echo " Build Root : ${WORLD_ROOT}"
echo " Archie Root : ${ARCHIE_ROOT}"
echo " Prospero Root : ${PROSPERO_ROOT}"
echo " Berkeley DB Root: ${BERKDB_ROOT}"
echo " Tcl Root : ${TCL_ROOT}"
echo " Tcl DP Root : ${TCLDP_ROOT}"
echo " Tk Root : ${TK_ROOT}"
echo " System Type : ${SYSTYPE}"
2024-05-27 21:24:26 +02:00
echo " Dist Dir : ${DEST_DIR}"
2024-05-27 16:13:40 +02:00
2024-05-27 16:40:40 +02:00
echo ""
echo "===================================================================="
echo " Building ${TCL_ROOT}/unix"
echo "===================================================================="
echo ""
cd ${TCL_ROOT}/unix
2024-05-27 21:24:26 +02:00
./configure --prefix=${DEST_DIR}
2024-05-27 16:58:07 +02:00
make
2024-05-27 16:13:40 +02:00
make install
2024-05-27 16:18:20 +02:00
cd ${WORLD_ROOT}
2024-05-27 16:40:40 +02:00
echo ""
echo "===================================================================="
echo " Building ${TK_ROOT}/unix"
echo "===================================================================="
echo ""
cd ${TK_ROOT}/unix
2024-05-27 21:24:26 +02:00
./configure --prefix=${DEST_DIR}
2024-05-27 16:58:07 +02:00
make
2024-05-27 16:18:20 +02:00
make install
cd ${WORLD_ROOT}
2024-05-27 16:23:06 +02:00
2024-05-27 16:40:40 +02:00
echo ""
echo "===================================================================="
2024-05-27 16:54:25 +02:00
echo " Building ${TCLDP_ROOT}/unix"
2024-05-27 16:40:40 +02:00
echo "===================================================================="
echo ""
2024-05-27 16:54:25 +02:00
cd ${TCLDP_ROOT}/unix
2024-05-27 21:24:26 +02:00
./configure --prefix=${DEST_DIR}
2024-05-27 16:58:07 +02:00
make
2024-05-27 16:23:06 +02:00
cd ${WORLD_ROOT}
2024-05-27 16:40:40 +02:00
echo ""
echo "===================================================================="
echo " Building ${BERKDB_ROOT}/PORT/${SYSTYPE}"
echo "===================================================================="
echo ""
cd ${BERKDB_ROOT}/PORT/${SYSTYPE}
2024-05-27 16:50:06 +02:00
CC="gcc" make
2024-05-27 16:40:40 +02:00
cd ${WORLD_ROOT}
2024-05-27 17:35:34 +02:00
echo ""
echo "===================================================================="
echo " Prepare ${ARCHIE_ROOT}"
echo "===================================================================="
echo ""
cd ${ARCHIE_ROOT}
cp Makefile.in Makefile
make all_depend
cd ${WORLD_ROOT}
2024-05-27 19:10:32 +02:00
echo ""
echo "===================================================================="
echo " Build Archie libs for Prospero ${ARCHIE_ROOT}"
echo "===================================================================="
echo ""
cd ${ARCHIE_ROOT}/lib/libpsarchie/${SYSTYPE}
make
cd ${ARCHIE_ROOT}/lib/libparchie/${SYSTYPE}
make
cd ${ARCHIE_ROOT}/lib/startdb/${SYSTYPE}
make
cd ${ARCHIE_ROOT}/lib/archsearch/${SYSTYPE}
make
cd ${ARCHIE_ROOT}/lib/libarchie/${SYSTYPE}
make
cd ${ARCHIE_ROOT}/lib/archstridx/${SYSTYPE}
make
cd ${ARCHIE_ROOT}/lib/patrie/${SYSTYPE}
make
cd ${ARCHIE_ROOT}/webindex/lib/${SYSTYPE}
make
cd ${WORLD_ROOT}
echo ""
echo "===================================================================="
echo " Building ${PROSPERO_ROOT}"
echo "===================================================================="
echo ""
cd ${PROSPERO_ROOT}
ln -sf Makefile.config.${SYSTYPE} Makefile.config
2024-05-27 18:01:02 +02:00
cp Makefile.in Makefile
make all_depend
2024-05-27 17:47:03 +02:00
make all
make install DESTDIR=${DEST_DIR}
cd ${WORLD_ROOT}
2024-05-27 23:03:08 +02:00
echo ""
echo "===================================================================="
echo " Building ${ARCHIE_ROOT}"
echo "===================================================================="
echo ""
cd ${ARCHIE_ROOT}
make all_depend
make all
make install DESTDIR=${DEST_DIR}
cd ${WORLD_ROOT}