# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
- oot)
- echo "Out of tree build"
- BUILD_PATH=$WORKSPACE/oot
- mkdir -p $BUILD_PATH
- cd $BUILD_PATH
- MAKE=$MAKE BISON="$BISON" YACC="$YACC" $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
- ;;
- dist)
- echo "Distribution out of tree build"
- BUILD_PATH=`mktemp -d`
-
- # Initial configure and generate tarball
- MAKE=$MAKE BISON="$BISON" YACC="$YACC" ./configure
- $MAKE dist
-
- mkdir -p $BUILD_PATH
- cp *.tar.* $BUILD_PATH/
- cd $BUILD_PATH
-
- # Ignore level 1 of tar
- $TAR xvf *.tar.* --strip 1
-
- MAKE=$MAKE BISON="$BISON" YACC="$YACC" $BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS
-
- # Set test plan to dist tar
- TEST_PLAN_PATH=$BUILD_PATH
- ;;
- *)
- echo "Standard tree build"
- MAKE=$MAKE BISON="$BISON" YACC="$YACC" $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
- ;;
+ oot)
+ echo "Out of tree build"
+ BUILD_PATH=$WORKSPACE/oot
+ mkdir -p $BUILD_PATH
+ cd $BUILD_PATH
+ MAKE=$MAKE BISON="$BISON" YACC="$YACC" $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
+ ;;
+
+ dist)
+ echo "Distribution out of tree build"
+ BUILD_PATH=`mktemp -d`
+
+ # Initial configure and generate tarball
+ MAKE=$MAKE BISON="$BISON" YACC="$YACC" ./configure
+ $MAKE dist
+
+ mkdir -p $BUILD_PATH
+ cp *.tar.* $BUILD_PATH/
+ cd $BUILD_PATH
+
+ # Ignore level 1 of tar
+ $TAR xvf *.tar.* --strip 1
+
+ MAKE=$MAKE BISON="$BISON" YACC="$YACC" $BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS
+
+ # Set test plan to dist tar
+ TEST_PLAN_PATH=$BUILD_PATH
+ ;;
+
+*)
+ echo "Standard tree build"
+ MAKE=$MAKE BISON="$BISON" YACC="$YACC" $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
+ ;;
-# Cleanup rpath and libtool .la files
-#find $WORKSPACE/build/bin -executable -type f -exec chrpath --delete {} \;
+# Cleanup rpath in executables and shared libraries
+find $WORKSPACE/build/bin -type f -perm -0500 -exec chrpath --delete {} \;