cat <<EOF > foo.m
@interface _Foo
{
}
@end
@interface Foo : _Foo
{
}
@end
@interface _Foo ( XXX)
@end
@implementation _Foo ( XXX)
@end
EOF
gcc -c -ObjC foo.m
and now
sed 's/_Foo/Bar/g' < foo.m > bar.m gcc -c -ObjC bar.m
« RFC: What Mac to buy ? | Main | How to install Tiger Preview w/o a DVD »
cat <<EOF > foo.m
@interface _Foo
{
}
@end
@interface Foo : _Foo
{
}
@end
@interface _Foo ( XXX)
@end
@implementation _Foo ( XXX)
@end
EOF
gcc -c -ObjC foo.m
and now
sed 's/_Foo/Bar/g' < foo.m > bar.m gcc -c -ObjC bar.m
This page contains a single entry from the blog posted on October 26, 2004 3:35 PM.
The previous post in this blog was RFC: What Mac to buy ?.
The next post in this blog is How to install Tiger Preview w/o a DVD.
Many more can be found on the main index page or by looking through the archives.