function p4get-depotPrefs {param($depotName) if (!$depotName) { if ($env:p4server) { $depotName = $env:p4server } else { write-error "No depot specified" break } } try { $global:depotxml = [xml](gc $env:depotsxml) } catch { write-error ("Could not locate depot.xml file. System environment variable `'depotsxml`' is currently set to `'" + $env:depotsxml + "`'") } if ($depotxml) { $thisDepot = $depotxml.perforce.depot | ?{$_.name -eq $depotName} } else { write-error ("Depot prefs definition does not exist.") break } $thisdepot }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8410 | Aaron Bockelie |
Root checkin, Perforce Powershell wrapper. Still lots of work to be done, namely documentation and deployment tools, for instance, get-help needs work on the majority of these tools. Additionally, the /lib structure needs a little bit of condensation, probably into major groups (depot, userspec, clientspec, group management, and so on) that way function family can exist under each resource. |