Permalink
Browse files

Use gnu dirs, install the docs

  • Loading branch information...
1 parent 022641f commit 6fe7918f802f768bb334cf1b8ab5a5d7490f0f5d David Mohr committed May 11, 2010
Showing with 12 additions and 3 deletions.
  1. +1 −0 AUTHORS
  2. +1 −1 icons/wscript_build
  3. +10 −2 wscript
View
@@ -0,0 +1 @@
+David Mohr <david@mcbf.net>
View
@@ -12,5 +12,5 @@ for size in [16, 22, 24, 32, 48, 'scalable']:
except ValueError, e:
d = str(size)
- bld.install_files ('${PREFIX}/share/icons/hicolor/' + d + '/' + 'apps',
+ bld.install_files ('${DATADIR}/icons/hicolor/' + d + '/' + 'apps',
d + '/grub-choose-default.*')
View
12 wscript
@@ -32,6 +32,8 @@ if IS_DEV:
def set_options (opt):
+ opt.tool_options('gnu_dirs')
+
opt.add_option ('--debug', action='store_true', default=False, help='Enable debugging code', dest='debug')
if Options.platform == 'win32':
@@ -46,6 +48,7 @@ def configure (ctx):
print "Configuring", APPNAME
ctx.check_tool ('gcc')
+ ctx.check_tool ('gnu_dirs')
ctx.check_cfg (package='gtk+-2.0', args='--cflags --libs', uselib_store='GTK', mandatory=True)
if Options.platform != 'win32':
if ctx.find_program ('docbook-to-man', var='DOCBOOKTOMAN'):
@@ -89,6 +92,11 @@ def build (ctx):
rule = ctx.env.DOCBOOKTOMAN + ' ${SRC} > ${TGT}',
source = 'grub-choose-default.sgml',
target = 'grub-choose-default.8',
- install_path = '${PREFIX}/share/man/man8',
+ install_path = '${MANDIR}/man8',
)
- ctx.install_files ("${PREFIX}/share/applications", "grub-choose-default.desktop");
+ ctx.install_files ("${DATADIR}/applications", "grub-choose-default.desktop");
+
+ ctx.install_files ('${DOCDIR}/',
+ 'AUTHORS GPL-2 GPL-3 ChangeLog EXPAT README NEWS')
+ ctx.install_files ('${DOCDIR}/',
+ ctx.path.ant_glob('reboot/*'), relative_trick=True)

0 comments on commit 6fe7918

Please sign in to comment.