| 1 | #!/bin/bash |
| 2 | # Generates FontForge.spec to be used with rpmbuild and the dist archive |
| 3 | |
| 4 | set -e |
| 5 | |
| 6 | BASE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" |
| 7 | VERSION=$(grep -m1 project.*VERSION "$BASE/../../CMakeLists.txt" | sed 's/.*VERSION \([0-9]*\).*/\1/g') |
| 8 | |
| 9 | cat "$BASE/FontForge.spec.in" | sed "s/@PROJECT_VERSION@/$VERSION/g" > FontForge.spec |