Skip to content

Commit

Permalink
misc: Add apply-patch.sh script
Browse files Browse the repository at this point in the history
It's annoying to apply a patch from github since it removes the TABs.
Using this script can help fixing and applying the patch.

  $ misc/apply-patch.sh  $PATCH_FILE

Signed-off-by: Namhyung Kim <[email protected]>
  • Loading branch information
namhyung committed Dec 29, 2016
1 parent fc73a5d commit ef06dc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions misc/apply-patch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

unexpand $1 | sed -e "s/^\t/ \t/" | patch -p1

0 comments on commit ef06dc2

Please sign in to comment.