Skip to content

Instantly share code, notes, and snippets.

@zerolab
Created May 28, 2011 13:13
Show Gist options
  • Save zerolab/996854 to your computer and use it in GitHub Desktop.
Save zerolab/996854 to your computer and use it in GitHub Desktop.
Patch Drupal between versions
#
# 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