#!/bin/bash # $Id$ # Acknowledgment: # The following code is a modified version of an original work written by # Greg Schafer for the "DIY Linux" project and is included here with his # permission. # ref: http://www.diy-linux.org # set -e : <&2 exit 1 } rm -f ../${BN}.XX done echo "done." echo -n "Stripping (debug) symbols from \".o\" files in ${CMP_DIR}... " find $CMP_DIR -name '*.o' | xargs strip -p -g 2>/dev/null echo "done." echo -n "Stripping (all) symbols from files OTHER THAN \".o\" files in ${CMP_DIR}... " find $CMP_DIR ! -name '*.o' | xargs strip -p 2>/dev/null || : echo "done." # We're all done echo -en "\nSuccess: ICA preparation for " echo -e "${CMP_DIR} complete." touch $CMP_DIR/icaprep else echo -e "\n$CMP_DIR was already processed\n" fi