Ticket #9969: 0002-Use-the-ln_s-variable-so-mythconfig.mak-is-always-up.patch

File 0002-Use-the-ln_s-variable-so-mythconfig.mak-is-always-up.patch, 1.4 KB (added by Jonathan <jonathan@…>, 10 years ago)
  • mythplugins/configure

    From 31264105ca80139dd785c6d2d89b6b8e0f81590d Mon Sep 17 00:00:00 2001
    From: Jonathan Martens <jonathan@snetram.nl>
    Date: Sat, 6 Aug 2011 11:28:52 +0200
    Subject: [PATCH 2/2] Use the ${ln_s} variable so mythconfig.mak is always updated when using MinGW.
    Since MinGW (on windows at least) does not support symlinking natively it makes a copy instead of a link, new compiles are not updated by 'ln -s' as the file already exists, by forcing it it will update the file.
    Since ${ln_s} is already defined in the core configure I also defined it here and set it to 'ln -sf'.
     mythplugins/configure |    3 ++-
     1 files changed, 2 insertions(+), 1 deletions(-)
    diff --git a/mythplugins/configure b/mythplugins/configure
    index 33bf0e6..b93e4af 100755
    a b enable $PLUGIN_LIST $CONFIG_LIST 
     128ln_s="ln -sf"
    rm -f $TMPC $TMPE 
    586587# bring in mythtv config
    587588if [ -e $prefix/include/mythtv/mythconfig.mak ] ; then
    588589  rm mythconfig.mak 2> /dev/null
    589   ln -s $prefix/include/mythtv/mythconfig.mak mythconfig.mak
     590  ${ln_s} $prefix/include/mythtv/mythconfig.mak mythconfig.mak
    591592  echo "ERROR: mythconfig.mak not found at $prefix/include/mythtv/mythconfig.mak"
    592593  echo "Did you make AND install MythTV first?"