|
/opt/astThe following instructions will build and install ast source packages under /opt/ast. First make sure there is an /opt/ast/bin directory and export it in PATH: mkdir -p /opt/ast/bin PATH=/opt/ast/bin:$PATH export PATH If there is no /opt/ast/bin/package command then grab the latest: if test ! -x /opt/ast/bin/package then url=http://www.research.att.com/sw/download/package (curl -L $url || wget -O - $url || hurl $url) > /opt/ast/bin/package chmod +x /opt/ast/bin/package fi To build for the first time: cd /opt/ast package authorize "name" password "password" setup flat \ source http://www.research.att.com/sw/download package ... package make package test # run optional regression tests package setup flat package make package test package setup source package To install binary packages change the source operand to binary: package setup flat binary package If you plan to have multiple architectures under /opt/ast (e.g., cygwin.i386 and linux.i386), then you can build and install binary commands in /opt/ast/arch/$(package)/bin instead of /opt/ast/bin by dropping the flat operand from the package command line. Then to access the foo.bar binaries export /opt/ast/arch/foo.bar/bin in PATH. If you prefer to build and test packages in a separate PACKAGEROOT before installing in /opt/ast, then run this from the alternate INSTALLROOT (PACKAGEROOT/arch/HOSTTYPE) to install in /opt/ast: cp -pr bin fun include lib man /opt/ast
|