13 lines
297 B
Bash
13 lines
297 B
Bash
|
#!/usr/bin/env bash
|
||
|
|
||
|
|
||
|
scriptDir=$( dirname -- "$0"; )
|
||
|
cd "$scriptDir/.." || exit
|
||
|
|
||
|
for path in $(grep -e '\[OpParallel\]' -l *.cs)
|
||
|
do
|
||
|
file=$(basename -- "$path")
|
||
|
class="${file%.*}"
|
||
|
echo "generating $file"
|
||
|
sed "s/Template/$class/g" "./Generator/Template.txt" > "./$class.generated.cs"
|
||
|
done
|