Mercurial > mxe-octave
annotate src/msvc-itstool-1.patch @ 3834:291c610413cd
use autotools for building gl2ps on Linux systems
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 04 Mar 2015 17:25:01 -0500 |
parents | 90341dd4590e |
children |
rev | line source |
---|---|
3179
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
1 diff -ur itstool-1.2.0-orig/itstool.in itstool-1.2.0/itstool.in |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
2 --- itstool-1.2.0-orig/itstool.in 2012-05-16 11:19:34 -0400 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
3 +++ itstool-1.2.0/itstool.in 2013-07-25 19:25:40 -0400 |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
4 @@ -1,4 +1,4 @@ |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
5 -#!/usr/bin/python -s |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
6 +#!python -s |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
7 # |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
8 # Copyright (c) 2010-2011 Shaun McCance <shaunm@gnome.org> |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
9 # |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
10 @@ -559,9 +559,9 @@ |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
11 ddir = os.getenv('XDG_DATA_DIRS', '') |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
12 if ddir == '': |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
13 if DATADIR not in ('/usr/local/share', '/usr/share'): |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
14 - ddir += DATADIR + ':' |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
15 - ddir += '/usr/local/share:/usr/share' |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
16 - dirs.extend(ddir.split(':')) |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
17 + ddir += DATADIR + os.pathsep |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
18 + ddir += '/usr/local/share' + os.pathsep + '/usr/share' |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
19 + dirs.extend(ddir.split(os.pathsep)) |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
20 ddone = {} |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
21 for ddir in dirs: |
90341dd4590e
add itstool module (and MSVC-specific patch)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff
changeset
|
22 itsdir = os.path.join(ddir, 'itstool', 'its') |