mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
|
@ -0,0 +1,16 @@
|
|||
#!/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"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue