Opened 15 years ago

Closed 9 years ago

#21640 closed submission (fixed)

MacPorts patch generation script

Reported by: royliu@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: contrib Version:
Keywords: Cc: cooljeanius (Eric Gallager)
Port:

Description

I've developed a script to diff two directories, one unmodified and one unmodified, and auto-generate MacPorts-compliant patches of the form patch-*.diff that belong in the "files/" directory of a Port. In addition to this, it will generate files found in the modified version that will need to be added to the directory structure of the unmodified distribution.

Please find attached a sample run from diffing an unmodified and modified emacs-app distribution, as well as the script itself.

Attachments (2)

patch.tar.gz (6.7 KB) - added by royliu@… 15 years ago.
The output of a sample run.
gen_macports_patches.sh (2.9 KB) - added by royliu@… 14 years ago.
A newer version of the script.

Download all attachments as: .zip

Change History (10)

Changed 15 years ago by royliu@…

Attachment: patch.tar.gz added

The output of a sample run.

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Component: portscontrib
Version: 1.8.0

Changed 14 years ago by royliu@…

Attachment: gen_macports_patches.sh added

A newer version of the script.

comment:2 Changed 14 years ago by royliu@…

I updated the script to be more robust, like handling filenames with spaces. See attached.

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 11 years ago by cooljeanius (Eric Gallager)

I added this script to my fork of the macportsscripts repo: https://github.com/cooljeanius/macportsscripts/blob/master/gen_macports_patches.sh

The ticket for changing the macportsscripts port to point to my repo is still open btw: #37836 (edit: nvm, it's closed now)

Last edited 11 years ago by cooljeanius (Eric Gallager) (previous) (diff)

comment:5 Changed 11 years ago by cooljeanius (Eric Gallager)

This was added to the macportsscripts port when it was updated to v0.1.4 in r103999

comment:6 Changed 11 years ago by neverpanic (Clemens Lang)

So I guess we can close this ticket as fixed?

comment:7 in reply to:  6 Changed 11 years ago by cooljeanius (Eric Gallager)

Replying to cal@…:

So I guess we can close this ticket as fixed?

I'd say so at least; I figure you were asking the OP though?

comment:8 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.