mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 22:48:57 +02:00
10 lines
265 B
Bash
10 lines
265 B
Bash
#!/bin/sh
|
|
if [ -e ex${1}.pp ]; then
|
|
mv ex${1}.pp ex${1}.pp.orig
|
|
fi
|
|
sed -e s/Example/Example$1/ -e s/\\\*\\\*\\\*/$2/ <template.pp >ex${1}.pp
|
|
echo "ex${1}.pp contains an example of the $2 function." >>README
|
|
mcedit ex${1}.pp
|
|
ppc386 ex${1}.pp && ex${1}
|
|
rm ex${1}.o
|