[tasque/xbuild] [xbuild] Rewrite Uninstall target
- From: Antonius Riha <antoniusri src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tasque/xbuild] [xbuild] Rewrite Uninstall target
- Date: Tue, 18 Sep 2012 14:46:31 +0000 (UTC)
commit 76a0944bce7dc615d94000868dd0e204dd767b1e
Author: Antonius Riha <antoniusriha gmail com>
Date: Tue Sep 18 12:46:38 2012 +0200
[xbuild] Rewrite Uninstall target
Since not temporary output file list is used naymore, drop the
<ReadLinesFromFile ...> part. The output file paths are determined
the same way the Install target determines them. Therefore Uninstall
also relies on the ItemGroup "InstallFile".
build/Tasque.targets | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/build/Tasque.targets b/build/Tasque.targets
index dac4116..a17461c 100644
--- a/build/Tasque.targets
+++ b/build/Tasque.targets
@@ -132,15 +132,19 @@
<Target Name="SetupInstallFile" />
<!-- Uninstall -->
- <Target Name="Uninstall" DependsOnTargets="BeforeUninstall;CoreUninstall;AfterUninstall" />
+ <PropertyGroup>
+ <UninstallDependsOn>
+ BeforeUninstall;
+ SetupInstallFile;
+ CoreUninstall;
+ AfterUninstall;
+ </UninstallDependsOn>
+ </PropertyGroup>
+ <Target Name="Uninstall" DependsOnTargets="$(UninstallDependsOn)" />
<Target Name="BeforeUninstall" />
<Target Name="AfterUninstall" />
<Target Name="CoreUninstall">
- <ReadLinesFromFile File="$(_tmpInstallFileNames)" >
- <Output TaskParameter="Lines" ItemName="InstallFileName" />
- </ReadLinesFromFile>
- <Delete Files="$(DestDir)$(PkgLibDir)\%(InstallFileName.RelativeDir)%(FileName)%(Extension)" />
- <Delete Files="$(_tmpInstallFileNames)" />
+ <Delete Files="$(DestDir)%(InstallFile.InstallPath)\%(InstallFileName)" />
</Target>
<!-- Dist -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]