summaryrefslogtreecommitdiffstats
path: root/schema/Makefile
blob: 62d085676b059355b85fa82a3a6411be49cf7de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
aur-schema-sqlite.sql: aur-schema.sql
	sed \
		-e 's/ ENGINE = InnoDB//' \
		-e 's/ [A-Z]* UNSIGNED NOT NULL AUTO_INCREMENT/ INTEGER NOT NULL/' \
		-e 's/([0-9, ]*) UNSIGNED / UNSIGNED /' \
		-e 's/ MySQL / SQLite /' \
		$< >$@

clean:
	rm -rf aur-schema-sqlite.sql

.PHONY: clean