13 lines
297 B
Bash
Executable File
13 lines
297 B
Bash
Executable File
#!/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 |