You are hereDrupal Module Updater

Drupal Module Updater


By David Grant - Posted on 09 September 2008

This script will automatically update a drupal module if your drupal source code is stored in a Subversion respository. It first removes all files except for the .svn directories, then extracts the tarball for the new version of the module. Then it runs an svn status command to see which files are new, which files have been removed in the new version, and which files have changed. The difference between this and svn_load_dirs is that renames aren't handled (well svn_load_dirs doesn't really handle them very well either). This basically mimicks exactly how I was updating my modules manually before. There is a slight problem if you have made customizations to your modules. The only solution I can think of is to merge the difference between some old changes that you made. If you log your changes carefully it shouldn't be too difficult to do this. This could easily be scripted as well.

Thanks! This script was very helpful.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <s> <img> <h2> <h3>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. The supported tag styles are: <foo>, [foo].
  • Insert Google Map macro.
  • Images can be added to this post.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • You may use [view:name=display=args] tags to display views.

More information about formatting options

CAPTCHA
Sorry I had to add this test to combat the spam problem.
m
4
N
D
R
y
Enter the code without spaces and pay attention to upper/lower case.