Re: New BETA RC 1 Version Of Mtn-Browse

Richard Levitte <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
In message <[email protected]> on Wed, 06 Jul 2011 20:46:47 +0100, CooSoft Support <[email protected]> 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                         [email protected]
                                        http://richard.levitte.org/

"Life is a tremendous celebration - and I'm invited!"
-- from a friend's blog, translated from Swedish

_______________________________________________
Monotone-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/monotone-devel
Makefile.PL.diff (text/x-patch, 1002 B)
#
# 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)
-        \@echo "Ok."
+all: \$(MTN_BROWSE_SourceView2) \$(INSTALLER)
+\t\@echo "Ok."
 
+\$(MTN_BROWSE_SourceView2): \$(MTN_BROWSE_SourceView1) \\
+\t\$(MTN_BROWSE_SourceView2_PATCH)
+\tpatch -o \$(MTN_BROWSE_SourceView2) < \$(MTN_BROWSE_SourceView2_PATCH)
+
 test: \$(INSTALLER)
-        \@echo "Ok."
+\t\@echo "Ok."
 
 install: \$(INSTALLER)
 EOF
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.