| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | set -euf |
| 3 | |
| 4 | script=$1 |
| 5 | version=$(dpkg-parsechangelogscip-shell system . . dpkg-parsechangelog. | sedscip-shell system . . sed. -rne 's,^Version: (.+)\+dfsg-.*,\1,p') |
| 6 | arch=$(dpkg-architecturescip-shell system . . dpkg-architecture. -qDEB_HOST_ARCH) |
| 7 | |
| 8 | sedscip-shell system . . sed. -e "s/#VERSION#/$version/g" \ |
| 9 | -e "s/#ARCH#/$arch/g" \ |
| 10 | debian/$script.in > debian/$script |