mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
17 lines
355 B
Bash
17 lines
355 B
Bash
#!/bin/bash
|
|
# This script creates a skeleton implementation for a C++ class which
|
|
# implements a Web IDL interface.
|
|
|
|
# This script is released into the public domain.
|
|
|
|
if [ -z "$1" ]; then
|
|
echo usage: ./generate.sh ClassName
|
|
exit 1
|
|
fi
|
|
|
|
expression="s/Skeleton/$1/g"
|
|
|
|
sed "$expression" < Skeleton.h > "$1.h"
|
|
sed "$expression" < Skeleton.cpp > "$1.cpp"
|
|
|