Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Current SVN and packaging
03-04-2007, 05:48 PM,
#1
Current SVN and packaging
Hello,
Current SVN is not suited for packaging, because there is no destdir in the datapath.

Code:
--- SConstruct.old    2007-03-04 21:47:22.928715665 +0100
+++ SConstruct    2007-03-04 21:48:05.227126114 +0100
@@ -222,7 +222,7 @@
#-------------#
# directories #
#-------------#
-env['data_directory'] = env['prefix'] + '/' + env['datadir']
+env['data_directory'] = env['destdir'] + '/' + env['prefix'] + '/' + env['datadir']
cppdefines.append(("DATA_DIR", '"%s"' % env['data_directory']))
cppdefines.append(("SETTINGS_DIR", '"%s"' % env['settings']))

Greetings Stefan
Reply
03-05-2007, 04:30 AM,
#2
 
Well, the thing is this. If you change data_directory then the game will think its data directory is always in your temporary directory (destdir). That value is actually a definition that gets compiled into the game. It probably didn't break anything for you, if you have binreloc turned on.

There may be some issues with the destdir in the build system after some recent changes, but I'm not sure this is the best way to fix them. I'll definitely be looking into this soon as I'll be using it to build the autopackage at release time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)