#!/bin/sh DEST_FILE="sources.cmake" echo "# Generated by $0. Do not edit this file manually." > $DEST_FILE echo "set(STK_SOURCES" >> $DEST_FILE find src \ -path 'src/bullet' -prune -o \ -path 'src/ide' -prune -o \ -path 'src/wiiuse' -prune -o \ -regex ".*\.cpp" -print >> $DEST_FILE echo ")" >> $DEST_FILE