"failstar" sounds like a name for a cruise liner from the 80s. As "*" isn't a desirable part of directory names, just name the whole thing "fail/", the core parts being stored in "fail/core/". Additionally fixing two build system dependency issues: - missing jobserver -> protomessages dependency - broken bochs -> fail dependency (add_custom_target DEPENDS only allows plain file dependencies ... cmake for the win) git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@956 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
32 lines
1020 B
Bash
Executable File
32 lines
1020 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# - needs to be called from within your build directory
|
|
# - "rebuild-bochs.sh": rebuild all of both Fail and Bochs
|
|
# (e.g., possibly necessary if you don't understand what was changed by others)
|
|
# - "rebuild-bochs.sh fail": rebuild all of Fail and re-link Bochs
|
|
# (e.g., possibly necessary if you changed Fail-affecting aspects or the
|
|
# build system)
|
|
# - "rebuild-bochs.sh bochs": rebuild all of Bochs
|
|
# (e.g., necessary if you changed Bochs-affecting aspects/code that must be
|
|
# inlined in Bochs)
|
|
# - "rebuild-bochs.sh -": rebuild only changed parts of Fail and Bochs
|
|
# (e.g., sufficient if you only changed experiment code)
|
|
# - all of the previous options finally install Bochs
|
|
#
|
|
set -e
|
|
|
|
if [ "$1" = fail -o -z "$1" ]
|
|
then
|
|
make clean
|
|
fi
|
|
if [ "$1" = bochs -o -z "$1" ]
|
|
then
|
|
make bochsallclean
|
|
fi
|
|
|
|
#export PATH=/fs/staff/hsc/bin/ccache:$PATH
|
|
|
|
# even if we only rebuilt fail, we need to link and install bochs again
|
|
nice make -j10 bochs 2>&1 | $(dirname $0)/colorize.pl 2>&1
|
|
make bochsinstall
|