mirror of
https://github.com/libretro/Mu.git
synced 2026-02-14 05:35:20 +00:00
13 lines
236 B
Bash
Executable File
13 lines
236 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# arg1 = in path, arg2 = out path, arg3 = array name
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
cd $DIR
|
|
|
|
gcc ./main.c -DIMPORT_HEADER=\"$1\" -o ./convert
|
|
chmod 777 ./convert
|
|
./convert $3 > $2
|
|
rm -f ./convert
|