~ubuntu-branches/ubuntu/utopic/inkscape/utopic-proposed

« back to all changes in this revision

Viewing changes to packaging/win32/ifexist.nsh

  • Committer: Package Import Robot
  • Author(s): Alex Valavanis
  • Date: 2014-08-19 19:10:32 UTC
  • mfrom: (1.6.5) (2.5.14 sid)
  • Revision ID: package-import@ubuntu.com-20140819191032-2eca1qihaszjk9i6
Tags: 0.48.5-2ubuntu1
* Merge with Debian Unstable (LP: #1358863). Fixes several Ubuntu bugs:
  - Illustrator CS SVG won't load: namespace URIs in entities (LP: #166371)
  - inkscape crashed with SIGSEGV in
    sp_dtw_color_profile_event() (LP: #966441)
  - inkscape crashed with SIGSEGV (LP: #1051017)
  - inkscape crashed with SIGSEGV in Inkscape::Preferences::_getNode()
    (LP: #1163241)
  - save a copy reverts to save as (LP: #529843)
  - Extension to braille not working on Xubuntu 12.10 (LP: #1090865)
* Remaining changes:
  - debian/control:
    + Set Ubuntu Developer as maintainer,
    + build-depend on dh-translation to handle Ubuntu translation,
    + demote pstoedit from Recommends to Suggests (because it's in universe),
  - debian/patches/0006_add_unity_quicklist_support.patch: add.
  - debian/patches/series: update.
  - debian/rules:
    + add dh_translation to handle Ubuntu translation
* Drop debian/patches/librevenge.patch (superseded by
    debian/patches/0006-Update_to_new_libwpg.patch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
; See http://nsis.sourceforge.net/Check_if_a_file_exists_at_compile_time for documentation
2
 
!macro !ifexist _FILE_NAME
3
 
        !tempfile _TEMPFILE
4
 
        !system `if exist "${_FILE_NAME}" echo !define _FILE_EXISTS > "${_TEMPFILE}"`
5
 
        !include `${_TEMPFILE}`
6
 
        !delfile `${_TEMPFILE}`
7
 
        !undef _TEMPFILE
8
 
        !ifdef _FILE_EXISTS
9
 
                !undef _FILE_EXISTS
10
 
!macroend
11
 
!define !ifexist "!insertmacro !ifexist"
12
 
!macro !ifnexist _FILE_NAME
13
 
        !tempfile _TEMPFILE
14
 
        !system `if not exist "${_FILE_NAME}" echo !define _FILE_EXISTS > "${_TEMPFILE}"`
15
 
        !include `${_TEMPFILE}`
16
 
        !delfile `${_TEMPFILE}`
17
 
        !undef _TEMPFILE
18
 
        !ifdef _FILE_EXISTS
19
 
                !undef _FILE_EXISTS
20
 
!macroend
21
 
!define !ifnexist "!insertmacro !ifnexist"