[bin] add buildrc, build servers custom bashrc file
This commit is contained in:
parent
d5a7d6eb86
commit
2786cad3ff
19
bin/buildrc
Normal file
19
bin/buildrc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# Emerge wrapper, uses matter lock file support to avoid
|
||||||
|
# concurrent execution
|
||||||
|
emerge() {
|
||||||
|
matter_lock_file="/var/tmp/.matter_resource.lock"
|
||||||
|
flock -x -n "${matter_lock_file}" true
|
||||||
|
rc=${?}
|
||||||
|
if [ "${rc}" != "0" ]; then
|
||||||
|
echo
|
||||||
|
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||||
|
echo "matter is running on this chroot, in order to prevent explosions"
|
||||||
|
echo "this emerge instance will terminate NOW"
|
||||||
|
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
|
||||||
|
echo
|
||||||
|
return 1
|
||||||
|
else
|
||||||
|
/usr/bin/emerge $@
|
||||||
|
return ${?}
|
||||||
|
fi
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user