go-sqlcipher/track_go-sqlite3.sh

24 lines
462 B
Bash
Raw Permalink Normal View History

#!/bin/sh -e
if [ $# -ne 1 ]
then
echo "Usage: $0 go-sqlite3_dir" >&2
echo "Copy tracked source files from go-sqlite3 to current directory." >&2
exit 1
fi
ltd=$1
# copy C files
cp -f $ltd/sqlite3_opt_unlock_notify.c .
# copy Go files
cp -f $ltd/*.go .
rm -rf _example
cp -r $ltd/_example .
rm -rf upgrade
cp -r $ltd/upgrade .
2020-08-20 03:05:33 +00:00
echo "make sure to adjust sqlite3.go with sqlcipher pragmas!"
echo "make sure to adjust import paths in _example directory!"