#!/bin/sh set -e . ../../common.sh cd $WORK_DIR/overlay/$BUNDLE_NAME # Change to the vim source directory which ls finds, e.g. 'Pythno-3.7.0'. cd $(ls -d Python-*) if [ -f Makefile ] ; then echo "Preparing '$BUNDLE_NAME' work area. This may take a while." make -j $NUM_JOBS clean else echo "The clean phase for '$BUNDLE_NAME' has been skipped." fi rm -rf $DEST_DIR echo "Configuring '$BUNDLE_NAME'." CFLAGS="$CFLAGS" ./configure \ --prefix=/usr CXX="/usr/bin/g++" --enable-optimizations echo "Building '$BUNDLE_NAME'." make -j $NUM_JOBS echo "Installing '$BUNDLE_NAME'." make -j $NUM_JOBS install DESTDIR=$DEST_DIR #echo "Generating '$BUNDLE_NAME'." #echo "Reducing '$BUNDLE_NAME' size." #set +e #strip -g $DEST_DIR/usr/bin/* #set -e cd $SRC_DIR