[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[RFC] : autoconf substitutions for scripts under tools/

From: <dwhedon_at_debian.org>
Date: 2003-01-25 21:53:26 CET

Hi,

Currently I have a bunch of sed action in the install stage building the Debian
Subversion package that looks a bit like this:

        install -d debian/subversion-tools/usr/share/doc/subversion-tools/
                sed -e 's|/opt/i386-linux/subversion/bin/svn|/usr/bin/svn|' \
                tools/client-side/svn_load_dirs.pl \
                 debian/subversion-tools/usr/bin/svn_load_dirs

It is either this or keeping a patch, neither option is all that much fun for
me. I propose we allow autoconf to do these substitutions for us. I'm happy
to create the patches if we can agree that this is a good idea. To be more
concrete, we add to the list of files autoconf needs to substitute:

Index: configure.in
===================================================================
--- configure.in (revision 4580)
+++ configure.in (working copy)
@@ -402,7 +402,7 @@
 
 dnl Final step: create the Makefile ----------------------------
 
-AC_CONFIG_FILES([Makefile svn-config])
+AC_CONFIG_FILES([Makefile svn-config tools/client-side/svn_load_dirs.pl])
 AC_CONFIG_COMMANDS([default], [chmod +x svn-config])
 AC_OUTPUT
 

And then we move svn_load_dirs.pl to svn_load_dirs.pl.in, adding the substitution:

--- svn_load_dirs.pl.in.orig 2003-01-25 12:46:35.000000000 -0800
+++ svn_load_dirs.pl.in 2003-01-25 12:40:09.000000000 -0800
@@ -22,7 +22,7 @@
 $Text::Wrap::columns = 72;
 
 # Specify the location of the svn command.
-my $svn = '/opt/i386-linux/subversion/bin/svn';
+my $svn = '@prefix@/bin/svn';
 
 # Process the command line options.
 

Tools that will require substitutions include (at least):
  hook-scripts/propchange-email.pl
  hook-scripts/commit-email.pl
  hook-scripts/commit-access-control.pl
  backup/hot-backup.py
  client-side/svn_load_dirs.pl

Seconds? Objections?

Thanks,

-David

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 14 02:17:47 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.