Update README.md
[sm64pc.git] / tools / apply_patch.sh
blob1ab8ed2393d835c964a48bd5d6139cd48156e94d
1 #!/bin/sh
3 # apply_patch.sh - Applies an enhancement patch
6 if [ "$#" -ne 1 ]
7 then
8 echo "Usage: $0 patch_file"
9 echo ' Applies a patch file to the current directory'
10 exit 1
13 read -p "Do you wish to apply the patch '$1'? [Y/N] " response
14 case "$response" in
15 Y|y)
16 patch -p1 < "$1"
18 N|n)
19 echo 'Quit'
20 exit 1
23 echo "Invalid response '$response'."
24 exit 1
26 esac