Simplify the time() replacement for nightlybuilds
Move the time() replacement from emptime.c.patch file to nightlybuild.sh.
This commit is contained in:
parent
d0f3847d1d
commit
c8688dbe01
2 changed files with 16 additions and 1220 deletions
|
@ -174,8 +174,22 @@ then
|
|||
echo "Done (patch specific)."
|
||||
echo ""
|
||||
fi
|
||||
|
||||
echo "Apply controlled time patch."
|
||||
for f in `git-ls-files | grep -E '\.[ch](\.in)?$' | xargs grep -l \>`
|
||||
do
|
||||
n=`grep -n '^[ ]*#[ ]*include\>' $f | tail -n 1 | sed 's/:.*//'`
|
||||
if [ $n ]
|
||||
then
|
||||
sed "$n"'a\
|
||||
#include "emptime.h"\
|
||||
#undef time\
|
||||
#define time(timer) emp_time((timer), __FUNCTION__)' $f >$f.patched
|
||||
mv $f.patched $f
|
||||
fi
|
||||
done
|
||||
git add include/emptime.h src/lib/gen/emptime.c
|
||||
echo "Done applying controlled time patch."
|
||||
echo ""
|
||||
git pull
|
||||
sh ./bootstrap
|
||||
./configure --prefix ${BOXDIR}/${WORKDIR}/emp4 ${CONFIGURE_OPTIONS}
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue