Skip to content

Commit

Permalink
10979E
Browse files Browse the repository at this point in the history
  • Loading branch information
MP authored and MP committed Sep 26, 2018
1 parent d9cb389 commit d923ef5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
## Manual Builds
A PowerShell script is included that will build the course and output two zip files, one for the **AllFiles** and one for the **Lab Instructions**. The script will initially prompt you for a version number and that version number is used in the name of the resulting zip files. Both prerequisites must be installed prior to running the script.

> If you are new to PowerShell, you may need to set the execution policy of remote scripts on your machine. More details can be found here [TechNet: Using the Set-ExecutionPolicy Cmdlet](https://technet.microsoft.com/en-us/library/ee176961.aspx)
6 changes: 3 additions & 3 deletions Build/pandoc.ps1
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
function GetVersionNumber{
function GetVersionNumber{
$output = $null
do {
$output = Read-Host 'What is the current version?'
}
while (!$output)
return $output
}

function ZipFiles{
param($filesDirectory, $docsDirectory, $versionData)
$filesOutput = "allfiles-v" + $versionData + ".zip"
Expand Down Expand Up @@ -53,7 +53,7 @@ foreach($file in Get-ChildItem $docsInputDirectory | Where-Object {$_.Extension
}

' Copy AllFiles '
Copy-Item $filesInputDirectory –Destination $outputDirectory -Recurse -Container
Copy-Item $filesInputDirectory –Destination $outputDirectory -Recurse -Container

' Compress AllFiles & Lab Instructions '
ZipFiles $filesOutputDirectory $docsOutputDirectory $version
Expand Down
Binary file modified Build/template.docx
Binary file not shown.

0 comments on commit d923ef5

Please sign in to comment.