build-common.sh at [cc9b79793c]

File build-common.sh artifact 4e129d0a2f part of check-in cc9b79793c


#! /bin/bash

set -e

case "$1" in
	clean|distclean)
		rm -rf out inst
		rm -f libtuapi.a tuapi.o tuapi.so
		rm -f tuapi.tcl.h
		exit 0
		;;
esac

tuapi_version="$(grep Tcl_PkgProvide system.c | awk '{ print $3 }' | sed 's@[");]*@@g')"

./stringify.tcl system.tcl > tuapi.tcl.h