- Timestamp:
- Jul 25, 2006, 3:19:50 PM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 1b4c85d
- Parents:
- aee909e
- File:
-
- 1 edited
-
scripts/patch-kernel.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
scripts/patch-kernel.sh
raee909e r86ea442 19 19 exit 1 20 20 fi 21 22 for i in ${patchdir}/${patchpattern} ; do 21 22 wd=$(pwd) 23 cd $patchdir 24 for i in ${patchpattern} ; do 25 test -e "$i" || continue 26 i=$patchdir/$i 27 cd $wd 23 28 case "$i" in 24 29 *.gz) 25 type="gzip"; uncomp="gunzip -dc"; ;; 30 type="gzip"; uncomp="gunzip -dc"; ;; 26 31 *.bz) 27 type="bzip"; uncomp="bunzip -dc"; ;; 32 type="bzip"; uncomp="bunzip -dc"; ;; 28 33 *.bz2) 29 type="bzip2"; uncomp="bunzip2 -dc"; ;; 34 type="bzip2"; uncomp="bunzip2 -dc"; ;; 30 35 *.zip) 31 type="zip"; uncomp="unzip -d"; ;; 36 type="zip"; uncomp="unzip -d"; ;; 32 37 *.Z) 33 type="compress"; uncomp="uncompress -c"; ;; 38 type="compress"; uncomp="uncompress -c"; ;; 34 39 *) 35 type="plaintext"; uncomp="cat"; ;; 40 type="plaintext"; uncomp="cat"; ;; 36 41 esac 37 [ -d "${i}" ] && echo "Ignoring subdirectory ${i}" && continue 42 [ -d "${i}" ] && echo "Ignoring subdirectory ${i}" && continue 38 43 echo "" 39 echo "Applying ${i} using ${type}: " 40 ${uncomp} ${i} | patch -p1 -E -d ${targetdir} 44 echo "Applying ${i} using ${type}: " 45 ${uncomp} ${i} | patch -p1 -E -d ${targetdir} 41 46 if [ $? != 0 ] ; then 42 47 echo "Patch failed! Please fix $i!" 43 48 exit 1 44 49 fi 50 cd $patchdir 45 51 done 46 52
Note:
See TracChangeset
for help on using the changeset viewer.
