mirror of
https://github.com/drasko/codezero.git
synced 2026-01-13 19:33:15 +01:00
Progress on capabilities
Capabilities will be shared among collection of threads. A pager will have a right to share its own capabilities with its space, its thread group and its container. Currently sharing is possible with only all of the caps. Next, it will be support for cap splitting, granting, and partial sharing and granting.
This commit is contained in:
@@ -5,18 +5,20 @@ replacement=(w x y z)
|
||||
|
||||
# Test that we have both arguments
|
||||
if [ -z "$1" ]; then
|
||||
echo Usage: replace_words ORIGINAL REPLACEMENT
|
||||
echo Usage: replace_words DIRNAME ORIGINAL REPLACEMENT
|
||||
exit
|
||||
fi
|
||||
|
||||
for ((i=0;i<1;i++));
|
||||
do
|
||||
|
||||
orig=${original[$i]}
|
||||
repl=${replacement[$i]}
|
||||
echo $orig to $repl
|
||||
#orig=${original[$i]}
|
||||
#repl=${replacement[$i]}
|
||||
orig=$2
|
||||
repl=$3
|
||||
for filename in `find $1 -name '*.[ch]'`
|
||||
do
|
||||
echo Replacing $orig with $repl in $filename
|
||||
sed -i -e "s/$orig/$repl/g" $filename
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user