stk-code_catmod/update_file_list.sh

5 lines
267 B
Bash
Raw Normal View History

#! /bin/sh
FILES=`find src -path 'src/bullet' -prune -o -path 'src/ide' -prune -o -regex ".*\.[ch]p*" -exec echo "{} " \;`
echo $FILES
sed "s/%LIST_OF_FILES%/$(echo $FILES | sed -e 's/\\/\\\\/g' -e 's/\//\\\//g' -e 's/&/\\\&/g')/g" CMakeLists.in.txt > CMakeLists.txt