Rivoreo Source Code Repositories
src.rivoreo.one
/
toolbox
/
b7f3f35cb6ec2b6620d7d5d211c1e972efcfac63
/
.
/
defmain.sh
blob: cad380d07bdbbb69b7d10f0353813760ad982558 [
file
] [
log
] [
blame
] [
raw
]
#!/bin/sh
[
-
z
"$1"
]
&&
exit
255
FN
=
$1
.
c
>
$FN
echo
"#define $1_main main"
>>
$FN
echo
"#include \"$1_u.c\""
>>
$FN
#echo -e "\nint main(int argc, char **argv){\n return $1_main(argc, argv);\n}" >> $FN