Protocultura.cl

Managing changes on a win server: patch to zip script
Published: 2009-06-25
Category: Scribbles
Tags: sose, software
Language: [English]
page views: 400


Situation: I work with a version control system for development. I roll-out your changes daily (or more frequently) to the production system. Changes are always plaintext script files. However the production system is a windows box and you cannot install any version control system on it. Windows doesn't come with the patch program.

Moving the whole directory over for each change is not an option.

So how to get the changes to the machine, and maintain some control?

Here's my solution:

  1. Get the version control system to publish the changeset as a diff and save that changeset at patches/my_change.patch
  2. run patch2zip that will create a zip in the same directory structure with all the changed files.
  3. Send the zip to the windows box.
  4. On the windows box, compare the directory with the zip, creating a back-up for each file before coping over the changed file with the new version from the zip.
It's ugly, manual and scales badly for changes that touch many files. However nothing needs to be installed and works well for small changes.

Here download the patch2zip command. It should work with the zip command available in the path. Stand in the directory with the source files and point to the patch file. It will generate the zip file with the files next to the patch.





Comments
No comments yet. Comments to posts older then a month are not allowed, due to comment-spam, Sorry. This article recieved 3 comment spams. They were filted using the Akismet service.

Internal Nav


Data Feeds


Quote

Como lo haces, me da lo mismo; Mientras planifiques del primero de marzo para atrĂ¡s.
By RG


Login