summaryrefslogtreecommitdiffstats
path: root/t/recipes/checks/upstream-signature/repeated-signature/build-spec/pre-build.in
blob: 61c331a66f369bacc8a210bc8fad058198dfc32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

package=[% $source %]
upstream_version=[% $upstream_version %]
origtargz=${package}_${upstream_version}.orig.tar.gz

SIGNATURE="${origtargz}.asc"

# create a temporary file
TEMPFILE=`mktemp`

# make a copy of signature
cp "$SIGNATURE" "$TEMPFILE"

# append it again to the existing signature
cat "$TEMPFILE" >> "$SIGNATURE"

# remove temporary file
rm -f "$TEMPFILE"