Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 46 lines (37 sloc) 0.838 kb
70887d6 @gregkh apply_it script
authored
1 #!/bin/bash
2
d7ae6bd @gregkh more apply_it stuff
authored
3 # Text color variables
4 txtund=$(tput sgr 0 1) # Underline
5 txtbld=$(tput bold) # Bold
6 txtred=$(tput setaf 1) # Red
7 txtgrn=$(tput setaf 2) # Green
8 txtylw=$(tput setaf 3) # Yellow
9 txtblu=$(tput setaf 4) # Blue
10 txtpur=$(tput setaf 5) # Purple
11 txtcyn=$(tput setaf 6) # Cyan
12 txtwht=$(tput setaf 7) # White
13 txtrst=$(tput sgr0) # Text reset
14
70887d6 @gregkh apply_it script
authored
15 PATCH=$1
16 if [ "$PATCH" == "" ] ; then
17 echo "you need a patch!"
18 exit
19 fi
20
d7ae6bd @gregkh more apply_it stuff
authored
21 #echo "PATCH=$PATCH"
70887d6 @gregkh apply_it script
authored
22
23 apply_it ()
24 {
25 VERSION=$1
26 DIR="linux-2.6.$VERSION.y"
d7ae6bd @gregkh more apply_it stuff
authored
27 # echo "DIR=$DIR"
28
29 echo -n "${txtrst}Applying $PATCH to $DIR "
70887d6 @gregkh apply_it script
authored
30
31 cd $DIR
d7ae6bd @gregkh more apply_it stuff
authored
32 quilt import ../$PATCH &> /dev/null
33 quilt push &> /dev/null
34 if [ $? -ne 0 ] ; then
35 echo "${txtred} FAILED${txtrst}"
36 else
37 quilt ref &> /dev/null
38 echo "${txtgrn} SUCCEEDED${txtrst}"
39 fi
70887d6 @gregkh apply_it script
authored
40 cd ..
41 }
42
1eb136d @gregkh longterm/apply_it comment out .33 as it's now EOL
authored
43 #apply_it 33
8ad085b @gregkh more stable script tweaks
authored
44 apply_it 32
70887d6 @gregkh apply_it script
authored
45
Something went wrong with that request. Please try again.