Created
May 28, 2011 13:13
-
-
Save zerolab/996854 to your computer and use it in GitHub Desktop.
Patch Drupal between versions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Get the last 2 versions and unpack | |
# | |
wget DRUPAL-new && tar zxvf DRUPAL-new | |
wget DRUPAL-old && tar zxvf DRUPAL-old | |
# | |
# Create a diff patch | |
# | |
diff DRUPAL-old DRUPAL-new > drupal-XtoY.patch | |
# | |
# Get to the Drupal root | |
# Make a dry-run to weed out problems | |
# | |
cd /path/to/drupal/root | |
patch -p1 --dry-run < /path/to/drupal-XtoY.patch | |
# | |
# Apply the patch | |
# | |
patch -p1 --dry-run < /path/to/drupal-XtoY.patch | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment