From 79f5db71fe33b390b807da858ed3d0af4fde2467 Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Wed, 10 Feb 2016 12:52:36 -0800 Subject: [PATCH] Add update-content.sh script --- .../update-content.sh | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 src/Microsoft.PowerShell.Linux.Host/update-content.sh diff --git a/src/Microsoft.PowerShell.Linux.Host/update-content.sh b/src/Microsoft.PowerShell.Linux.Host/update-content.sh new file mode 100755 index 000000000..932e45ccb --- /dev/null +++ b/src/Microsoft.PowerShell.Linux.Host/update-content.sh @@ -0,0 +1,36 @@ +#!/usr/bin/env bash + +# This script is used to update our current tree's files with those that live +# in `src/monad`. We only need to update them when new changes are merged from +# Source Depot, and the build scripts are much simpler without this logic. With +# the files living here, the `content` key in the `project.json` handles the +# deployment for us in a cross-platform manner. + +# Note that many of these should probably live with +# System.Management.Automation, but we're waiting on a bug fix from CLI to move +# them. + +# Types files +cp ../monad/monad/miscfiles/types/CoreClr/types.ps1xml . +cp ../monad/monad/miscfiles/types/CoreClr/typesv3.ps1xml . + +# Format files +cp ../monad/monad/miscfiles/display/Certificate.format.ps1xml . +cp ../monad/monad/miscfiles/display/Diagnostics.Format.ps1xml Diagnostics.format.ps1xml +cp ../monad/monad/miscfiles/display/DotNetTypes.format.ps1xml . +cp ../monad/monad/miscfiles/display/Event.format.ps1xml . +cp ../monad/monad/miscfiles/display/FileSystem.format.ps1xml . +cp ../monad/monad/miscfiles/display/Help.format.ps1xml . +cp ../monad/monad/miscfiles/display/HelpV3.format.ps1xml . +cp ../monad/monad/miscfiles/display/PowerShellCore.format.ps1xml . +cp ../monad/monad/miscfiles/display/PowerShellTrace.format.ps1xml . +cp ../monad/monad/miscfiles/display/Registry.format.ps1xml . +cp ../monad/monad/miscfiles/display/WSMan.format.ps1xml . + +mkdir Modules +cp -r ../monad/monad/miscfiles/modules/Microsoft.PowerShell.Utility Modules +UTILSCLR=Modules/Microsoft.PowerShell.Utility/CoreClr +mv $UTILSCLR/* Modules/Microsoft.PowerShell.Utility && rmdir $UTILSCLR +cp -r ../monad/monad/miscfiles/modules/Microsoft.PowerShell.Security Modules +cp -r ../monad/monad/miscfiles/modules/Microsoft.PowerShell.Management Modules +cp -r ../monad/monad/miscfiles/modules/PSDiagnostics Modules