LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pre_checkin.sh of Package orig-linux-kernel-headers (Project Ports:ARM:Base:build:cross)


#cp linux-kernel-headers.spec.in linux-kernel-headers.spec
#cp linux-kernel-headers.changes.in linux-kernel-headers.changes

# the script takes linux-kernel-headers* and creates the cross-* packages
# mips sh4 arm i586
osc up -e
patch -p0 -o linux-kernel-headers.spec.in < linux-kernel-headers.spec.difftoin
for arch in armv5tel armv7l; do 

   echo -n "Building package for $arch --> cross-$arch-linux-kernel-headers ..."

   cp linux-kernel-headers.changes cross-$arch-linux-kernel-headers.changes
   sed -e "s/^Name:.*linux-kernel-headers\$/Name:           cross-$arch-linux-kernel-headers/" \
       -e "s/^Provides:.*kernel-headers\$/Provides:       cross-$arch-kernel-headers/" \
       -e "s/^%changelog -n linux-kernel-headers\$/%changelog -n cross-$arch-linux-kernel-headers/" \
       < linux-kernel-headers.spec.in > cross-$arch-linux-kernel-headers.spec
   echo " done."