#!/bin/bash # BUILD PERL # USE THE CORRECT PERL BINARY AND TMP DIRS whichos=`uname` PATCHER=patch if [ "$whichos" = "SunOS" ]; then PATH=/usr/local/bin:/usr/ccs/bin:$PATH PATCHER=gpatch fi PATH=$PWD/PerlSrc/perl/bin:$PATH PERLBIN=$PWD/PerlSrc/perl/bin/perl export PATH TEMPDIR=$PWD/tmp TMP=$PWD/tmp export TMP export TEMPDIR # BUILD VCP if [ -f Tars/VCP-[0-9]*.tar.gz ] ; then cd PerlModules gzip -dc ../Tars/VCP-[0-9]*.tar.gz | tar xvf - #tar zxvf ../Tars/VCP-[0-9]*.tar.gz cd .. if [ -d dist ] ; then echo "Building into $PWD/dist" else mkdir dist echo "Building into $PWD/dist" fi elif [ -d PerlModules/VCP-[0-9]* ] ; then if [ -d dist ] ; then echo "Building into $PWD/dist" else mkdir dist echo "Building into $PWD/dist" fi else echo "PerlModule/VCP-... is not installed" echo " Either put VCP-...tar.gz into Tars" echo " or untar VCP-...tar.gz into PerlModules" exit fi cd PerlModules version=`ls -d VCP-[0-9]* | sed -e 's/VCP/vcp/' | sed -e 's=/==g'` cd VCP-[0-9]* if [ -f Makefile ] ; then make clean /bin/rm Makefile.old fi perl Makefile.PL make for f in bin/* t/*; do sed -e "s=#!/usr/local/bin/perl=#!$PERLBIN=" $f > $f.$$ /bin/mv -f $f.$$ $f done # Save dist version of vcp and remove module list code which breaks tests make test make install # BUILD HTML TREE make vcp_html/index.html # BUILD EXE VCP # Restore dist version # drop the -lib=lib so that it uses the installed version # $PATCHER -i ../../vcp.bin.build_vcp_executable.pl.patch bin/build_vcp_executable.pl $PERLBIN bin/build_vcp_executable.pl # TEST EXE # ***TBD*** kername=`uname -r` if [ -f ../../dist/$version-$kername.exe ] ; then /bin/rm -f ../../dist/$version-$kername.exe fi /bin/cp vcp-bin ../../dist/$version-$kername.exe gzip ../../dist/$version-$kername.exe if [ -d ../../dist/html ] ; then /bin/rm -rf ../../dist/html fi if [ -d ../../dist/vcp_html ] ; then /bin/rm -rf ../../dist/vcp_html fi tar cf - vcp_html | (cd ../../dist ; tar xf - ) /bin/mv ../../dist/vcp_html ../../dist/html echo "VCP Binary: $version-$kername.exe.gz"
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#9 | 5241 | alan_teague | Removing empty else clause | ||
#8 | 5237 | alan_teague | Revised build files to reflect updated modules and revised calls required for Solaris | ||
#7 | 4562 | alan_teague | Removed patch steps from VCP build for ver 1.0 | ||
#6 | 4435 | alan_teague | Binary build instructions for Solaris and Windows | ||
#5 | 4368 | alan_teague | Revised for Solaris, templates created for platform INSTALL instructions | ||
#4 | 4351 | alan_teague | Really making the change from tar zxvf to gzip -dc | tar xvf | ||
#3 | 4350 | alan_teague | Changed tar zxvf to be gzip -dc | tar xvf - | ||
#2 | 4344 | alan_teague |
Revised productization files updating to latest perl modules and normalizing scripts to work on both linux and bsd platforms. |
||
#1 | 4311 | alan_teague |
Initial versions of productization files and scripts. All are draft quality submitted for review. |