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

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

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

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