| 1 |
# Copyright (C) 2018 by Microsoft. |
| 2 |
# --------------------------------------------------------------------------- |
| 3 |
# This work may be distributed and/or modified under the |
| 4 |
# conditions of the LaTeX Project Public License, either version 1.3 |
| 5 |
# of this license or (at your option) any later version. |
| 6 |
# The latest version of this license is in |
| 7 |
# http://www.latex-project.org/lppl.txt |
| 8 |
# and version 1.3 or later is part of all distributions of LaTeX |
| 9 |
# version 2005/12/01 or later. |
| 10 |
# |
| 11 |
# This work has the LPPL maintenance status `maintained'. |
| 12 |
# |
| 13 |
# The Current Maintainer of this work is Christopher Granade ([email protected]). |
| 14 |
# |
| 15 |
# This work consists of the files qsharp.dtx and qsharp.ins, |
| 16 |
# the derived filebase qsharp.sty, and the associated installer file Install.ps1. |
| 17 |
|
| 18 |
param( |
| 19 |
[switch] $CTAN |
| 20 |
) |
| 21 |
|
| 22 |
#region Bootstrap PoShTeX |
| 23 |
$modules = Get-Module -ListAvailable -Name posh-tex; |
| 24 |
if (!$modules) {Install-Module posh-tex -Scope CurrentUser} |
| 25 |
if (!($modules | ? {$_.Version -ge "0.1.7.4"})) {Update-Module posh-tex} |
| 26 |
Import-Module posh-tex -Version "0.1.7.4" |
| 27 |
#endregion |
| 28 |
|
| 29 |
Out-TeXStyle qsharp |
| 30 |
Out-TeXStyleDocumentation qsharp |
| 31 |
makeindex -s gglo.ist -o qsharp.gls qsharp.glo |
| 32 |
Out-TeXStyleDocumentation qsharp |
| 33 |
|
| 34 |
Install-TeXUserResource tex/latex/qsharp qsharp.sty, qsharp.pdf |
| 35 |
|
| 36 |
if ($CTAN) { |
| 37 |
Export-CTANArchive -ArchiveLayout Simple qsharp.ins, README.md, Install.ps1, LICENSE |
| 38 |
} |