pandemonium_engine_minimal/platform/frt/dl/minidl.sh

12 lines
303 B
Bash
Raw Normal View History

2023-12-14 21:54:22 +01:00
#! /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