#!/bin/bash # BUILD PERL PATH=$PWD/PerlSrc/perl/bin:$PATH export PATH TEMPDIR=$PWD/tmp TMP=$PWD/tmp export TMP export TEMPDIR PERLBIN=$PWD/PerlSrc/perl/bin/perl # BUILD VCP if [ -d PerlModules/VCP-[0-9]* ] ; then if [ -d dist ] ; then echo "Building into $PWD/dist" else mkdir dist echo "Building into $PWD/dist" fi cd PerlModules version=`ls -d VCP-[0-9]* | sed -e 's/VCP/vcp/'` cd VCP-[0-9]* else echo "PerlModule/VCP-... is not installed, please create" echo "Run: (cd PerlModules; tar zxvf ../VCP-*.tar.gz)" exit 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 cp bin/vcp bin/vcp.dist patch bin/vcp ../../vcp.bin.vcp.patch make test make install # BUILD HTML TREE make vcp_html/index.html # BUILD EXE VCP # Restore dist version /bin/mv -f bin/vcp.dist bin/vcp # drop the -lib=lib so that it uses the installed version patch bin/build_vcp_executable.pl ../../vcp.bin.build_vcp_executable.pl.patch $PERLBIN bin/build_vcp_executable.pl # TEST EXE # ***TBD*** kername=`uname -r` /bin/rm -f ../../dist/$version-$kername.exe /bin/cp $PWD/vcp-bin ../../dist/$version-$kername.exe gzip ../../dist/$version-$kername.exe /bin/rm -rf ../../dist/html ../../dist/vcp_html 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. |