core-legacy/compile_migrations.sh
Tobias Reisinger 907b52160a add: migration from main exe
add: sql files embedded in exe
2019-09-22 02:34:22 +02:00

13 lines
259 B
Bash
Executable file

#!/usr/bin/env bash
cd "$(dirname "$0")";
migration_num=0;
while [ -f sql/migration_$migration_num.sql ]
do
xxd -i sql/migration_$migration_num.sql | sed 's/\([0-9a-f]\)$/\0, 0x00/' > sql/migration_$migration_num.h
((migration_num++));
done;
cd $PWD;