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

[PATCH] fix for MacOS case-insensitivity problems.

From: C. Scott Ananian <cananian_at_lesser-magoo.lcs.mit.edu>
Date: 2001-09-07 00:09:41 CEST

2001-09-06 C. Scott Ananian <cananian@alumni.princeton.edu>

        * gen-make.py
        Add $(PREINSTALL) suffix to uninstalled executables so that
        we can build svn even on case-insensitive filesystems.
        Will behave identically to standard makefile unless you
        build as 'make PREINSTALL=-preinstall <targets>'.
        * svn-test.sh
        * svn-test2.sh
        Update so that they inherit the setting of $PREINSTALL
        from the makefile when run as 'make check'. Perhaps
        a better solution can be found here, but (at the moment)
        only MacOS folks are going to need to set PREINSTALL.

Index: ./gen-make.py
===================================================================
--- ./SVN/text-base/gen-make.py Wed Sep 5 17:09:53 2001
+++ ./gen-make.py Thu Sep 6 17:53:58 2001
@@ -70,7 +70,7 @@
     bldtype = target_ob.type
     objext = target_ob.objext
 
- tpath = target_ob.output
+ tpath = target_ob.preinstall
     tfile = os.path.basename(tpath)
 
     if target_ob.install == 'test' and bldtype == 'exe':
@@ -151,7 +151,7 @@
   for g_name, g_targets in install.items():
     target_names = [ ]
     for i in g_targets:
- target_names.append(i.output)
+ target_names.append(i.preinstall)
 
     ofile.write('%s: %s\n\n' % (g_name, string.join(target_names)))
 
@@ -162,13 +162,15 @@
     # .la files are handled by the standard 'clean' rule; clean all the
     # other targets
     if target.output[-3:] != '.la':
- cfiles.append(target.output)
+ cfiles.append(target.preinstall)
   ofile.write('CLEAN_FILES = %s\n\n' % string.join(cfiles))
 
   for area, inst_targets in install.items():
     files = [ ]
+ pifiles = [ ]
     for t in inst_targets:
       files.append(t.output)
+ pifiles.append(t.preinstall)
 
     if area == 'apache-mod':
       ofile.write('install-mods-shared: %s\n' % (string.join(files),))
@@ -213,12 +215,12 @@
       area_var = string.replace(area, '-', '_')
       ofile.write('install-%s: %s\n'
                   '\t$(MKDIR) $(%sdir)\n'
- % (area, string.join(files), area_var))
- for file in files:
+ % (area, string.join(pifiles), area_var))
+ for t in inst_targets:
         ofile.write('\t$(INSTALL_%s) %s %s\n'
- % (string.upper(area_var), file,
+ % (string.upper(area_var), t.preinstall,
                        os.path.join('$(%sdir)' % area_var,
- os.path.basename(file))))
+ os.path.basename(t.output))))
       ofile.write('\n')
 
   includes, i_errors = _collect_paths(parser.get('includes', 'paths'))
@@ -308,6 +310,10 @@
 
     self.install = install
     self.output = os.path.join(path, tfile)
+ if type == 'exe' and install != 'test' and install != 'fs-test':
+ self.preinstall = self.output + '$(PREINSTALL)'
+ else:
+ self.preinstall = self.output
 
 class GenMakeError(Exception):
   pass
Index: ./subversion/tests/clients/cmdline/xmltests/svn-test.sh
===================================================================
--- ./subversion/tests/clients/cmdline/xmltests/SVN/text-base/svn-test.sh Wed Sep 5 17:10:10 2001
+++ ./subversion/tests/clients/cmdline/xmltests/svn-test.sh Thu Sep 6 17:58:36 2001
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-SVN_PROG=../../../../clients/cmdline/svn
+SVN_PROG=../../../../clients/cmdline/svn$PREINSTALL
 XML_DIR=../../../xml
 TEST_DIR_1=t1
 TEST_DIR_2=t2
Index: ./subversion/tests/clients/cmdline/xmltests/svn-test2.sh
===================================================================
--- ./subversion/tests/clients/cmdline/xmltests/SVN/text-base/svn-test2.sh Wed Sep 5 17:10:10 2001
+++ ./subversion/tests/clients/cmdline/xmltests/svn-test2.sh Thu Sep 6 17:58:09 2001
@@ -2,7 +2,7 @@
 
 # Testing merging and conflict resolution.
 
-SVN_PROG=../../../../clients/cmdline/svn
+SVN_PROG=../../../../clients/cmdline/svn$PREINSTALL
 XML_DIR=../../../xml
 TEST_DIR_1=t1
 TEST_DIR_2=t2

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:40 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.