mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 04:16:50 +01:00
12 lines
303 B
Bash
12 lines
303 B
Bash
|
#! /bin/sh
|
||
|
|
||
|
for filename in $* ; do
|
||
|
echo -n "Processing $filename... "
|
||
|
libname=`basename "$filename" .dl`
|
||
|
grep '^#include' <"$libname.dl" >"$libname.gen.h"
|
||
|
echo >>"$libname.gen.h" \
|
||
|
"static inline bool frt_load_$libname(const char *) { return true; }"
|
||
|
rm -f "$libname.gen.cpp"
|
||
|
echo "done."
|
||
|
done
|