diff options
author | Nyx (Neal Orman) <nyx@lindenlab.com> | 2012-02-01 16:25:13 -0500 |
---|---|---|
committer | Nyx (Neal Orman) <nyx@lindenlab.com> | 2012-02-01 16:25:13 -0500 |
commit | 31b86f30bbbe73b249028895a9e0543098076c2c (patch) | |
tree | 1a49c16cedbbf5ba15c88c3fb0898895950ef3fa /package_physicsextensions.sh | |
parent | e29dd73ab81efa6c117598cc054d4219bc652599 (diff) |
PATH-194 WIP adding header file packaging
Gives us the packaging we need for viewer headers as an autobuild package
so that llphysicsextensions can use its headers.
Diffstat (limited to 'package_physicsextensions.sh')
-rw-r--r-- | package_physicsextensions.sh | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/package_physicsextensions.sh b/package_physicsextensions.sh new file mode 100644 index 0000000000..9260dd03ce --- /dev/null +++ b/package_physicsextensions.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +cd "$(dirname "$0")" + +# turn on verbose debugging output for parabuild logs. +set -x +# make errors fatal +set -e + +if [ -z "$AUTOBUILD" ] ; then + fail +fi + +if [ "$OSTYPE" = "cygwin" ] ; then + export AUTOBUILD="$(cygpath -u $AUTOBUILD)" +fi + +# load autbuild provided shell functions and variables +eval "$("$AUTOBUILD" source_environment)" + +projectDir="$(pwd)" + +#directories we need the headers from +projects="llcommon llimage llmath llrender" + +source="$projectDir/indra" + +stage="$projectDir/stage/include" +mkdir -p $stage + +for project in $projects +do + dstIncludeDir="$stage/$project" + mkdir -p $dstIncludeDir + headers="$source/$project/*.h" + cp $headers "$dstIncludeDir" +done + +# Copy the license files into place for packaging +srcLicenseDir="$projectDir/doc" +dstLicenseDir="$projectDir/stage/LICENSES" + +mkdir -p "$dstLicenseDir" +cp "$srcLicenseDir/LGPL-licence.txt" "$dstLicenseDir/LGPL-licence.txt" + +pass |