File indexing completed on 2024-05-12 16:40:16
0001 #!/bin/sh 0002 # 0003 # Updates list of icon files and outputs to $1. 0004 # 0005 set -e 0006 0007 output=$1 0008 if [ -z "$output" ] ; then echo "Output .cmake file required"; exit 1; fi 0009 script=$(basename $0) 0010 0011 function content() 0012 { 0013 echo "# List of project's own icon files" 0014 echo "# This file is generated by $script" 0015 echo "# WARNING! All changes made in this file will be lost!" 0016 echo 0017 echo "set(_PNG_FILES" 0018 find . -name \*png | sed "s/\.\///g" | sort 0019 echo ")" 0020 echo 0021 0022 echo "set(_SVG_OBJECT_FILES" 0023 find . -regex ".*/\(table\|query\|form\|report\|macro\|script\)\.svg$" \ 0024 | sed "s/\.\///g" | sort 0025 echo ")" 0026 echo 0027 0028 echo "set(_SVG_FILES" 0029 find . -name \*svg | grep -v -F "table.svg 0030 query.svg 0031 form.svg 0032 report.svg 0033 macro.svg 0034 script.svg" \ 0035 | sed "s/\.\///g" | sort 0036 echo ")" 0037 echo 0038 0039 echo "set(_FILES \${_PNG_FILES} \${_SVG_OBJECT_FILES} \${_SVG_FILES})" 0040 } 0041 0042 content > $output