monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] New BETA RC 1 Version Of Mtn-Browse


From: Richard Levitte
Subject: Re: [Monotone-devel] New BETA RC 1 Version Of Mtn-Browse
Date: Thu, 07 Jul 2011 12:42:13 +0200 (CEST)

In message <address@hidden> on Wed, 06 Jul 2011 20:46:47 +0100, CooSoft Support 
<address@hidden> said:

support>    Why no mtn-browse-sv2 in mtn?
support> 
support>    Well I am currently having to maintain two versions of files for
support>    mtn-browse and HistoryGraph.pm (Gtk2-SourceView1 vs 2, and Canvas 
text
support>    items vs labels respectively).  Rather than have these simply 
checked
support>    in and have to replicate changes made to one also to the other, I 
have
support>    checked in patch files that I use to to generate one file from the
support>    other. That way I only have one set of files to maintain. Luckily 
both
support>    variants in both files are relatively self contained and are in code
support>    that is unlikely to change.
support> 
support>    I generate these files when packaging.

Ah, in that case, I propose this patch (attached), that will create
mtn-browse-sv2 when doing 'make' (or 'make all').  That makes it
muuuuch easier on us who want to pull the latest (greatest?) and
install from the source...  It works as long as patch takes -o.

Cheers,
Richard

-- 
Richard Levitte                         address@hidden
                                        http://richard.levitte.org/

"Life is a tremendous celebration - and I'm invited!"
-- from a friend's blog, translated from Swedish
#
# old_revision [bd62560422d14b69ff2dbb787e3adae9aae17267]
#
# patch "Makefile.PL"
#  from [798ef04e8f3f67df44bab4b5b8c34964ad483db9]
#    to [5309b6b23cbac76d0fda5e2bbd8c4fb27a72c049]
#
============================================================
--- Makefile.PL 798ef04e8f3f67df44bab4b5b8c34964ad483db9
+++ Makefile.PL 5309b6b23cbac76d0fda5e2bbd8c4fb27a72c049
@@ -68,12 +68,20 @@ INSTALLER=./linux-installer
 LIBDIR="$lib_dir"
 PREFIX="$prefix_dir"
 INSTALLER=./linux-installer
+PATCH=patch
+MTN_BROWSE_SourceView1=mtn-browse
+MTN_BROWSE_SourceView2=mtn-browse-sv2
+MTN_BROWSE_SourceView2_PATCH=mtn-browse-Gtk2-SourceView2.patch
 
-all: \$(INSTALLER)
-        address@hidden "Ok."
+all: \$(MTN_BROWSE_SourceView2) \$(INSTALLER)
address@hidden "Ok."
 
+\$(MTN_BROWSE_SourceView2): \$(MTN_BROWSE_SourceView1) \\
+\t\$(MTN_BROWSE_SourceView2_PATCH)
+\tpatch -o \$(MTN_BROWSE_SourceView2) < \$(MTN_BROWSE_SourceView2_PATCH)
+
 test: \$(INSTALLER)
-        address@hidden "Ok."
address@hidden "Ok."
 
 install: \$(INSTALLER)
 EOF

reply via email to

[Prev in Thread] Current Thread [Next in Thread]