pagure Logo
  • Log In

rpms / kernel

Clone
Source Code
GIT
  • Source
  • Pull Requests  0
  • Stats
 Overview  Files  Commits  Branches  Forks  Releases

Files

Branch: f18
26 Label_NFS c4 c5 c5-plus c6 c6-plus c7 c7-i686 c7-sig-altarch-kernel c7-sig-altarch-kernel-test1 c7-sig-altarch-kernel-test2 c7-sig-altarch-kernel-test3 c7-sig-altarch-kernelexp c7-sig-altarch-test c8-beta f10 f11 f12 f12-user-myoung-xendom0 f13 f13-2.6.33-master f13-user-steved-pnfs-13 f14 f14-user-kyle-bz664206 f14-user-kyle-f14-2.6.37 f14-user-lkundrak-vaio-brightness-645937 f14-user-steved-pnfs-f14 f15 f15-2.6.39 f15-30-going-on-40 f15-user-steved-pnfs-f15 f16 f17 f18 f19 f20 f21 f22 f23 f24 f25 f25-pf f26 f27 f28 f29 f7 f8 f9 master private-jcm-arm-nosmp-kallsyms private-jcm-arm-nosmp-kallsyms-f17 rawhide/user/hadess/surface3 rawhide/user/kyle/kernel-36 rawhide/user/kyle/kernel-git rawhide/user/lkundrak/lguest rawhide/user/myoung/xendom0 rawhide/user/steved/pnfs-rawhide rhbz_1205083 stabilization talos user/steved/f19-lnfs-v3.8 user/steved/f19-lnfs-v3.8-rc7
  1.   f18
  2.   scripts
  3.   newpatch.sh
Blob Blame History Raw
#!/bin/sh
# Easy application of new patches.
# Always adds to the very end. (Bumps last patch nr by 100)
# Parameters:
# $1 - patch filename 
# $2 - description

OLD=$(grep ^Patch kernel.spec  | tail -n1 | awk '{ print $1 }' | sed s/Patch// | sed s/://)
NEW=$(($OLD/100*100+100))

sed -i "/^Patch$OLD:\ /a#\ $2\nPatch$NEW:\ $1" kernel.spec

LAST=$(grep ^ApplyPatch kernel.spec | tail -n1 | awk '{ print $2 }')

sed -i "/^ApplyPatch $LAST/aApplyPatch $1" kernel.spec

cvs add $1

scripts/bumpspecfile.py kernel.spec "- $2"
make clog

Powered by Pagure 5.14.1

SSH Hostkey/Fingerprint | Documentation