Fixed /etc/init.d/ deployment in post-build scripts; creates dir if not exist

This commit is contained in:
Rick Falkvinge
2013-06-04 18:52:14 +00:00
parent 92ee324818
commit dc35b2d5da
+3 -1
View File
@@ -109,7 +109,9 @@
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>copy ..\..\etcinitd\swarmops-backend etcinitd</PostBuildEvent>
<PostBuildEvent>if not exist etcinitd\. mkdir etcinitd
copy ..\..\etcinitd\swarmops-backend etcinitd
</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.