boinc/packages/generic/sea/make-sea.sh
Eric J. Korpela 4e60ef3003 - STILL WORK TO BE DONE TO GET locale STUFF INSTALLED PROPERLY!!!
- Update to libtool 1.5.24
- build environment:  Major automake changes that I've been warning about
  for some time.
- Now uses libtool to build libraries.
- Builds separate boinc_fcgi and sched_fcgi libraries for use with 
  FCGI server components.
- New macro "BOINC_CHECK_LIB_WITH" that executes a "AC_CHECK_LIB" on
  a library only if --with-libname[=DIR] is specified on the configure
  command line.  This is to allow inclusion of libraries when the 
  ssl, gtk, wxWidgets, or other configuration is incorrect for static
  libraries.
- Added a lot of "--with-*" for some libraries that might be required for
  static builds.
- The sea directory has been moved to packages/generic.  Changes to sea
  and the associated scripts might be required to better make use of the
  staging mechanism and shared libraries.
- Fixed includes of boinc_fcgi.h in many files.
- Fixed places where FCGI_FILE needs to be used implicitly.
- Fixed missing define of _SC_PAGESIZE on hosts that define only
  _SC_PAGE_SIZE.
- Moved build of boinc_cmd (and source file) from lib to client



svn path=/trunk/boinc/; revision=16904
2009-01-13 23:06:02 +00:00

42 lines
908 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 1 ] || [ $# -gt 3 ]; then
echo 'usage: make-sea.sh <archive.tar> [<filename>.sh] [<install-script>.sh]'
exit
fi
# parse optional arguments
if [ -z "$2" ]; then
filename="`uname`_sea.sh"
else
filename="$2"
fi
if [ -z "$3" ]; then
install=install.sh
else
install="$3"
fi
# peek into archive for the install script
if tar tf "$1" | grep "$install" >/dev/null; then
:
else
echo "the archive \"$1\" doesn't contain the specified install script \"$install\""
exit
fi
# find out about compression to use
# Linux usually doesn't even have compress, otherwise its standard
if [ `uname` = "Linux" ]; then
compress=gzip
expand=gunzip
else
compress=compress
expand=uncompress
fi
echo '#!/bin/sh
( read l; read l; read l; exec cat ) < "$0" | '$expand' | tar xf - && /bin/sh '"$install $*"'
exit' > "$filename" &&
$compress < "$1" >> "$filename" &&
chmod +x "$filename"