Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: e1cc4959c1
Fetching contributors…

Cannot retrieve contributors at this time

executable file 44 lines (37 sloc) 0.838 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
#!/bin/bash

# Text color variables
txtund=$(tput sgr 0 1) # Underline
txtbld=$(tput bold) # Bold
txtred=$(tput setaf 1) # Red
txtgrn=$(tput setaf 2) # Green
txtylw=$(tput setaf 3) # Yellow
txtblu=$(tput setaf 4) # Blue
txtpur=$(tput setaf 5) # Purple
txtcyn=$(tput setaf 6) # Cyan
txtwht=$(tput setaf 7) # White
txtrst=$(tput sgr0) # Text reset

PATCH=$1
if [ "$PATCH" == "" ] ; then
echo "you need a patch!"
exit
fi

#echo "PATCH=$PATCH"

apply_it ()
{
VERSION=$1
DIR="linux-2.6.$VERSION.y"
# echo "DIR=$DIR"

echo -n "${txtrst}Applying $PATCH to $DIR "

cd $DIR
quilt import ../$PATCH &> /dev/null
quilt push &> /dev/null
if [ $? -ne 0 ] ; then
echo "${txtred} FAILED${txtrst}"
else
quilt ref &> /dev/null
echo "${txtgrn} SUCCEEDED${txtrst}"
fi
cd ..
}

#apply_it 33
apply_it 32
Something went wrong with that request. Please try again.