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 |
125 | 125 | prefix="/usr/local" |
126 | 126 | libdir_name="lib" |
127 | 127 | sysroot="" |
| 128 | ln_s="ln -sf" |
128 | 129 | |
129 | 130 | logfile="config.ep" |
130 | 131 | |
… |
… |
rm -f $TMPC $TMPE |
586 | 587 | # bring in mythtv config |
587 | 588 | if [ -e $prefix/include/mythtv/mythconfig.mak ] ; then |
588 | 589 | 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 |
590 | 591 | else |
591 | 592 | echo "ERROR: mythconfig.mak not found at $prefix/include/mythtv/mythconfig.mak" |
592 | 593 | echo "Did you make AND install MythTV first?" |