summaryrefslogtreecommitdiff
path: root/packaging/pre_checkin.sh
blob: 2b7a977f3b0089088c2d8c150ee9f857fb3a9648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# the script takes qemu-accel.spec and creates the qemu-accel-* packages
for arch in armv7l aarch64; do

   echo -n "Building package for $arch --> gcc-$arch ..."

   echo "%define cross $arch" > qemu-accel-${arch}.spec
   echo "%define $arch 1" >> qemu-accel-${arch}.spec
   echo "" >> qemu-accel-${arch}.spec
   cat qemu-accel.spec.in >> qemu-accel-${arch}.spec
   echo " done."
done