forked from Imagelibrary/rtems
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
20 lines
410 B
Bash
Executable File
20 lines
410 B
Bash
Executable File
#! /bin/sh
|
|
source=$(dirname $0)
|
|
if [ "$source" = "." ]; then
|
|
source=$(pwd)
|
|
fi
|
|
echo
|
|
echo " DO NOT CLOSE DO NOT CLOSE"
|
|
echo
|
|
echo "Warning: this command window will automatically close."
|
|
echo
|
|
echo "Build output: $source/at-log.txt"
|
|
echo
|
|
$source/build-autotools.sh $* 2>&1 >> $source/at-log.txt
|
|
ec=$?
|
|
if [ $ec -ne 0 ]; then
|
|
echo "ERROR: code '$ec'. Press Any Key to continue"
|
|
read
|
|
fi
|
|
exit $ec
|