Andreas Schwab
9d3f35e52d
Use deterministic profile.sh script to make package build reproducible (boo#1040589) OBS-URL: https://build.opensuse.org/request/show/817958 OBS-URL: https://build.opensuse.org/package/show/Base:System/grep?expand=0&rev=100
15 lines
522 B
Bash
15 lines
522 B
Bash
#!/bin/sh
|
|
# profiling script for profile-guided-optimizations (PGO)
|
|
# must be fully deterministic in what it does for reproducible builds
|
|
# should cover most code for good PGO optimization benefit
|
|
# See https://github.com/bmwiedemann/theunreproduciblepackage/tree/master/pgo
|
|
# for background information on PGO reproducibility
|
|
|
|
grep=src/grep
|
|
t=COPYING
|
|
exec > /dev/null
|
|
for param in "" "-v" "-i" "-h" "-H" "-l" "-L" "-q" "-n" "-Z" "-E" "-F" "-P" "-e" "-w" "-c" "-o" ; do
|
|
$grep $param "GNU" $t
|
|
$grep $param "G.*U" $t
|
|
done
|