summaryrefslogtreecommitdiffstats
path: root/reader/src/formats/dummy/createPlugin.sh
blob: aacc3d4c14e74a2784ae4a1eef40467b6d3114ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if [ $# != 3 ]; then
	echo "usage: $0 <short_format_name> <camel_cased_format_name> <upper_cased_format_name>";
	exit 0;
fi;

if mkdir ../$1; then
	for file in Dummy*.h Dummy*.cpp; do
		sed "s/Dummy/$2/g" $file | sed "s/DUMMY/$3/g" > ../$1/`echo $file | sed "s/Dummy/$2/"`;
	done
fi;