#!/bin/sh

if [ ! -f "../../scripts/amalgamation.py" ]; then
	echo "Could find neither the amalgamation build script"
	exit 1
fi
(cd ../.. && python scripts/amalgamation.py --source=tools/rpkg/src/duckdb.cpp --header=tools/rpkg/src/duckdb.hpp)
(cd ../.. && python extension/parquet/parquet_amalgamation.py --source=tools/rpkg/src/parquet-extension.cpp --header=tools/rpkg/src/parquet-extension.hpp)
