#! /bin/sh # # $Id: packbuild.in,v 1.5 2000/11/18 19:54:03 mphillips Exp $ # # # This script is not intended to be run directly; it's used # internally by the 'build' script. See 'build' for details. # ( echo "#! /bin/sh" echo "##############################################################" echo "# Geomview build output" echo "# generated by `whoami` on `hostname` at `date`" echo "##############################################################" echo "first_param=\"\$1\"" if test -f 'configure.out' ; then echo "if test -f 'configure.out' && test \"\$first_param\" != \"-c\"; then" echo " echo 'x -' SKIPPING 'configure.out' '(file already exists)'" echo "else" echo " echo 'x -' extracting 'configure.out' '(text)'" echo " sed 's/^X//' << 'SHAR_EOF' > 'configure.out'" sed 's/^/X/' < configure.out echo "" echo "SHAR_EOF" size=`ls -l configure.out` echo "echo \" remote: $size\"" echo "size=\`ls -l configure.out\`" echo "echo \" local: \$size\"" echo "fi" else echo "echo 'm -' MISSING 'configure.out' '(file was not present when packbuild ran)'" fi if test -f 'config.log' ; then echo "if test -f 'config.log' && test \"\$first_param\" != \"-c\"; then" echo " echo 'x -' SKIPPING 'config.log' '(file already exists)'" echo "else" echo " echo 'x -' extracting 'config.log' '(text)'" echo " sed 's/^X//' << 'SHAR_EOF' > 'config.log'" sed 's/^/X/' < config.log echo "" echo "SHAR_EOF" size=`ls -l config.log` echo "echo \" remote: $size\"" echo "size=\`ls -l config.log\`" echo "echo \" local: \$size\"" echo "fi" else echo "echo 'm -' MISSING 'config.log' '(file was not present when packbuild ran)'" fi if test -f 'config.cache' ; then echo "if test -f 'config.cache' && test \"\$first_param\" != \"-c\"; then" echo " echo 'x -' SKIPPING 'config.cache' '(file already exists)'" echo "else" echo " echo 'x -' extracting 'config.cache' '(text)'" echo " sed 's/^X//' << 'SHAR_EOF' > 'config.cache'" sed 's/^/X/' < config.cache echo "" echo "SHAR_EOF" size=`ls -l config.cache` echo "echo \" remote: $size\"" echo "size=\`ls -l config.cache\`" echo "echo \" local: \$size\"" echo "fi" else echo "echo 'm -' MISSING 'config.cache' '(file was not present when packbuild ran)'" fi if test -f 'config.status' ; then echo "if test -f 'config.status' && test \"\$first_param\" != \"-c\"; then" echo " echo 'x -' SKIPPING 'config.status' '(file already exists)'" echo "else" echo " echo 'x -' extracting 'config.status' '(text)'" echo " sed 's/^X//' << 'SHAR_EOF' > 'config.status'" sed 's/^/X/' < config.status echo "" echo "SHAR_EOF" size=`ls -l config.status` echo "echo \" remote: $size\"" echo "size=\`ls -l config.status\`" echo "echo \" local: \$size\"" echo "fi" else echo "echo 'm -' MISSING 'config.status' '(file was not present when packbuild ran)'" fi if test -f 'make.out' ; then echo "if test -f 'make.out' && test \"\$first_param\" != \"-c\"; then" echo " echo 'x -' SKIPPING 'make.out' '(file already exists)'" echo "else" echo " echo 'x -' extracting 'make.out' '(text)'" echo " sed 's/^X//' << 'SHAR_EOF' > 'make.out'" sed 's/^/X/' < make.out echo "" echo "SHAR_EOF" size=`ls -l make.out` echo "echo \" remote: $size\"" echo "size=\`ls -l make.out\`" echo "echo \" local: \$size\"" echo "fi" else echo "echo 'm -' MISSING 'make.out' '(file was not present when packbuild ran)'" fi if test -f 'export.out' ; then echo "if test -f 'export.out' && test \"\$first_param\" != \"-c\"; then" echo " echo 'x -' SKIPPING 'export.out' '(file already exists)'" echo "else" echo " echo 'x -' extracting 'export.out' '(text)'" echo " sed 's/^X//' << 'SHAR_EOF' > 'export.out'" sed 's/^/X/' < export.out echo "" echo "SHAR_EOF" size=`ls -l export.out` echo "echo \" remote: $size\"" echo "size=\`ls -l export.out\`" echo "echo \" local: \$size\"" echo "fi" else echo "echo 'm -' MISSING 'export.out' '(file was not present when packbuild ran)'" fi if test -f 'build' ; then echo "if test -f 'build' && test \"\$first_param\" != \"-c\"; then" echo " echo 'x -' SKIPPING 'build' '(file already exists)'" echo "else" echo " echo 'x -' extracting 'build' '(text)'" echo " sed 's/^X//' << 'SHAR_EOF' > 'build'" sed 's/^/X/' < build echo "" echo "SHAR_EOF" size=`ls -l build` echo "echo \" remote: $size\"" echo "size=\`ls -l build\`" echo "echo \" local: \$size\"" echo "fi" else echo "echo 'm -' MISSING 'build' '(file was not present when packbuild ran)'" fi if test -f 'packbuild' ; then echo "if test -f 'packbuild' && test \"\$first_param\" != \"-c\"; then" echo " echo 'x -' SKIPPING 'packbuild' '(file already exists)'" echo "else" echo " echo 'x -' extracting 'packbuild' '(text)'" echo " sed 's/^X//' << 'SHAR_EOF' > 'packbuild'" sed 's/^/X/' < packbuild echo "" echo "SHAR_EOF" size=`ls -l packbuild` echo "echo \" remote: $size\"" echo "size=\`ls -l packbuild\`" echo "echo \" local: \$size\"" echo "fi" else echo "echo 'm -' MISSING 'packbuild' '(file was not present when packbuild ran)'" fi ) > build.out echo "wrote build.out"