Commit b295670
authored
Bulk convert control files. (#19986)
```
function Convert-Control {
Param($full)
.\vcpkg.exe format-manifest $full
$root = $full.Substring(0, $full.Length - 7) # CONTROL
$new = $root + 'vcpkg.json'
$content = Get-Content -Raw $new
$asJson = ConvertFrom-Json $content -AsHashtable -Depth 100
$oldVersion = $asJson['port-version']
if ($null -eq $oldVersion) {
$oldVersionFull = $asJson['version-string']
Write-Host "Got version $oldVersionFull"
$match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$')
if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) {
$newFullVersion = [string]$match.Groups[1].Value
$oldVersion = [int]$match.Groups[2].Value
Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion"
$newVersion = $oldVersion + 1
$asJson['version-string'] = $newFullVersion
Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion"
} else {
Write-Host "No previous version for $full -- setting 1"
$newVersion = 1
}
} else {
$newVersion = [int]$oldVersion + 1
Write-Host "New version for $full : $newVersion"
}
$asJson['port-version'] = $newVersion
$content = ConvertTo-Json $asJson -Depth 100
Set-Content -Path $new -Value $content
.\vcpkg.exe format-manifest $new
}
Get-ChildItem ports\CONTROL -Recurse | Foreach-Object {
Convert-Control $_.FullName
}
git commit -am "this message"
.\vcpkg.exe x-add-version -all
git commit -a --amend
```1 parent 7e04422 commit b295670
2,640 files changed
Lines changed: 16880 additions & 6473 deletions
File tree
- ports
- 7zip
- absent
- ace
- activemq-cpp
- ade
- akali
- alac-decoder
- alac
- aliyun-oss-c-sdk
- ampl-asl
- anax
- antlr4
- apr-util
- arb
- argagg
- argh
- argtable2
- argumentum
- asmjit
- assimp
- asynch
- asyncplusplus
- atlmfc
- aurora
- autobahn
- avro-c
- aws-c-common
- aws-c-event-stream
- aws-checksums
- aws-lambda-cpp
- azmq
- azure-macro-utils-c
- azure-storage-cpp
- azure-uamqp-c
- azure-uhttp-c
- azure-umqtt-c
- basisu
- bde
- bdwgc
- beast
- bento4
- berkeleydb
- bigint
- binn
- bitmagic
- bitserializer-cpprestjson
- bitserializer-pugixml
- bitserializer-rapidjson
- bitserializer-rapidyaml
- bitsery
- blas
- blaze
- blitz
- blosc
- breakpad
- brigand
- brotli
- brpc
- brunocodutra-metal
- brynet
- bustache
- butteraugli
- byte-lite
- caffe2
- camport3
- capnproto
- casclib
- catch-classic
- catch
- cccapstone
- ccd
- cctz
- celero
- cello
- cereal
- cgicc
- cgltf
- cgl
- chaiscript
- charls
- check
- chipmunk
- chmlib
- chromium-base
- cimg
- cityhash
- clara
- clblast
- clblas
- clfft
- clickhouse-cpp
- clipp
- clockutils
- clp
- clrng
- cmark
- cmcstl2
- coinutils
- coin
- collada-dom
- console-bridge
- constexpr-contracts
- constexpr
- cpp-netlib
- cpp-peglib
- cpp-redis
- cpp-taskflow
- cppad
- cppcms
- cppcodec
- cppcoro
- cppfs
- cppitertools
- cppkafka
- cppmicroservices
- cpptoml
- cpputest
- cpuid
- crashpad
- crc32c
- croncpp
- crossguid
- cryptopp
- cr
- cspice
- ctbignum
- ctemplate
- ctp
- cuda
- cunit
- curlpp
- cute-headers
- cutelyst2
- cxxopts
- darts-clone
- dataframe
- date
- dbg-macro
- dbghelp
- dbow2
- dbow3
- dcmtk
- decimal-for-cpp
- detours
- devicenameresolver
- dimcli
- dirent
- discord-game-sdk
- discord-rpc
- discount
- discreture
- distorm
- dlfcn-win32
- docopt
- doctest
- double-conversion
- dpdk
- drlibs
- dtl
- duckx
- duilib
- duktape
- dx
- easycl
- easyloggingpp
- eathread
- ebml
- ecsutil
- edlib
- effolkronium-random
- efsw
- egl-registry
- eigen3
- elfutils
- entityx
- epsilon
- esaxx
- evpp
- expected-lite
- exprtk
- faad2
- fadbad
- farmhash
- fast-cpp-csv-parser
- fastcgi
- fastfeat
- fastrtps
- fcl
- fdlibm
- ffnvcodec
- fftwpp
- field3d
- fixed-string
- flatbuffers
- flint
- fluidlite
- fmem
- fmi4cpp
- fmilib
- font-chef
- fontconfig
- foonathan-memory
- freeglut
- freeimage
- freeopcua
- freetype-gl
- fribidi
- fruit
- ftgl
- function2
- fuzzylite
- g2o
- gainput
- gamma
- gasol
- gaussianlib
- gcem
- gdcm2
- gdcm
- genann
- geogram
- getdns
- getopt
- gettimeofday
- gflags
- gherkin-c
- gl2ps
- glog
- glui
- gmmlib
- google-cloud-cpp-common
- google-cloud-cpp-spanner
- googleapis
- gperftools
- gperf
- gpgme
- graphicsmagick
- graphite2
- greatest
- grppi
- gsl
- guetzli
- gumbo
- gzip-hpp
- h5py-lzf
- hayai
- healpix
- hffix
- hfsm2
- http-parser
- hungarian
- hwloc
- hyperscan
- hypre
- ideviceinstaller
- idevicerestore
- if97
- igloo
- ignition-cmake0
- ignition-common1
- ignition-common3
- ignition-fuel-tools1
- ignition-fuel-tools4
- ignition-math4
- ignition-math6
- ignition-modularscripts
- ignition-msgs1
- ignition-msgs5
- ignition-msgs6
- ignition-plugin1
- ignition-transport4
- ignition-transport8
- ignition-transport9
- ilmbase
- imgui-sfml
- inih
- iniparser
- intel-ipsec
- intelrdfpmathlib
- irrlicht
- isal
- ismrmrd
- jansson
- jbig2dec
- jbigkit
- jemalloc
- jinja2cpplight
- josuttis-jthread
- jsmn
- json-c
- json-schema-validator
- json-spirit
- json11
- json5-parser
- jsoncons
- jsoncpp
- jsonnet
- kangaru
- kcp
- kd-soap
- kfr
- kinectsdk2
- kissfft
- kubazip
- kuku
- kvasir-mpl
- lapack
- lastools
- lazy-importer
- lcms
- lemon
- leptonica
- lerc
- lest
- leveldb
- libaaplus
- libaiff
- libassuan
- libbf
- libcds
- libcerf
- libconfig
- libconfuse
- libcuckoo
- libdatrie
- libde265
- libdisasm
- libdivide
- libdshowcapture
- libevent
- libevhtp
- libexif
- libfabric
- libflac
- libfreenect2
- libftdi
- libgcrypt
- libgd
- libgeotiff
- libgta
- libguarded
- libhdfs3
- libhydrogen
- libideviceactivation
- libigl
- libilbc
- libimobiledevice
- libirecovery
- libjpeg-turbo
- libkml
- liblas
- liblbfgs
- liblemon
- liblsl
- libmad
- libmaxminddb
- libmesh
- libmikmod
- libmodman
- libmorton
- libmpeg2
- libmspack
- libnoise
- libodb-boost
- libodb-pgsql
- libodb-sqlite
- libp7-baical
- libp7client
- libpff
- libpopt
- libproxy
- libqcow
- libqglviewer
- librabbitmq
- libraqm
- libraw
- librdkafka
- libsass
- libsbml
- libspatialite
- libsquish
- libsrtp
- libsrt
- libssh2
- libssh
- libstemmer
- libstk
- libtheora
- libtins
- libtomcrypt
- libtommath
- libu2f-server
- libudns
- libunibreak
- libusb-win32
- libusbmuxd
- libuvc
- libvmdk
- libwandio
- libwebm
- libwebp
- libxdiff
- libxmlmm
- libxmp-lite
- libyaml
- libzen
- libzippp
- licensepp
- linalg
- linenoise-ng
- live555
- llfio
- llgl
- lmdb
- log4cplus
- log4cpp
- log4cxx
- loguru
- lpeg
- luabridge
- luafilesystem
- luajit
- luasocket
- lz4
- lzfse
- lzo
- magic-enum
- magnum-extras
- magnum-integration
- magnum-plugins
- magnum
- mapbox-variant
- mathc
- mathgl
- matplotlib-cpp
- matroska
- mbedtls
- mcpp
- mdnsresponder
- mecab
- memorymodule
- meschach
- meshoptimizer
- metis
- mgnlibs
- mhook
- microsoft-signalr
- mikktspace
- milerius-sfml-imgui
- mimalloc
- minc
- minhook
- minifb
- minimp3
- minisat-master-keying
- minitrace
- miniupnpc
- miniz
- mio
- mman
- mmx
- modp-base64
- mongo-cxx-driver
- monkeys-audio
- moos-core
- moos-essential
- moos-ui
- morton-nd
- mozjpeg
- mp-units
- mp3lame
- mpark-variant
- mpc
- mpfr
- mpi
- mpmcqueue
- mqtt-cpp
- ms-angle
- ms-gsl
- msgpack
- msinttypes
- mstch
- mujs
- munit
- muparser
- murmurhash
- mygui
- nameof
- nano-signal-slot
- nanobench
- nanoflann
- nanogui
- nanomsg
- nanoprintf
- nanorange
- nanort
- nanovg
- neargye-semver
- ned14-internal-quickcpplib
- netcdf-cxx4
- nethost
- networkdirect-sdk
- nifticlib
- nlohmann-fifo-map
- nmslib
- nngpp
- nonius
- nrf-ble-driver
- nt-wrapper
- numactl
- nvtt
- observer-ptr-lite
- octomap
- ode
- offscale-libetcd-cpp
- ogdf
- ogre-next
- ompl
- oniguruma
- opencascade
- opencc
- opencensus-cpp
- opencl
- opencsg
- opengl-registry
- opengl
- openigtlink
- openmesh
- openmpi
- openmvs
- openni2
- openscap
- openssl-unix
- openssl-uwp
- openssl-windows
- openvpn3
- openvr
- openxr-loader
- optional-bare
- optional-lite
- opusfile
- opus
- orc
- osg-qt
- osg
- osi
- outcome
- parallel-hashmap
- parallelstl
- parmetis
- parquet
- parson
- pbc
- pcg
- pdal-c
- pdal
- pdcurses
- pdqsort
- pe-parse
- pegtl-2
- pegtl
- pfring
- pfultz2-linq
- picojson
- picosha2
- piex
- pixel
- platform-folders
- plf-list
- plf-nanotimer
- plf-stack
- plibsys
- plib
- plog
- plustache
- pngwriter
- poly2tri
- polyclipping
- polyhook2
- polymorphic-value
- ponder
- portable-snippets
- ppconsul
- ppmagic
- pprint
- pqp
- proj
- prometheus-cpp
- protobuf-c
- pthread
- pugixml
- qca
- qhull
- qpid-proton
- qt-advanced-docking-system
- qt5-3d
- qt5-activeqt
- qt5-androidextras
- qt5-canvas3d
- qt5-charts
- qt5-connectivity
- qt5-datavis3d
- qt5-declarative
- qt5-doc
- qt5-gamepad
- qt5-graphicaleffects
- qt5-imageformats
- qt5-location
- qt5-macextras
- qt5-modularscripts
- qt5-multimedia
- qt5-networkauth
- qt5-purchasing
- qt5-quickcontrols2
- qt5-quickcontrols
- qt5-remoteobjects
- qt5-script
- qt5-scxml
- qt5-sensors
- qt5-serialbus
- qt5-serialport
- qt5-speech
- qt5-svg
- qt5-tools
- qt5-translations
- qt5-virtualkeyboard
- qt5-webchannel
- qt5-webengine
- qt5-webglplugin
- qt5-websockets
- qt5-webview
- qt5-winextras
- qt5-x11extras
- qt5-xmlpatterns
- qt5
- qtkeychain
- quadtree
- quaternions
- quazip
- quickfast
- quickfix
- qwtw
- rabit
- ragel
- range-v3-vs2015
- range-v3
- rang
- rapidcheck
- rapidxml-ns
- rapidxml
- re2
- readline-win32
- readline
- readosm
- refl-cpp
- refprop-headers
- replxx
- reproc
- rest-rpc
- restclient-cpp
- rhash
- riffcpp
- ring-span-lite
- roaring
- rocksdb
- rpclib
- rply
- rs-core-lib
- rsocket
- rtlsdr
- rttr
- rxcpp
- rxqt
- sais
- sajson
- sassc
- sciter
- scnlib
- scylla-wrapper
- sdformat10
- sdformat9
- sdl1-net
- sdl1
- sdl2-gfx
- sdl2-image
- sdl2-net
- sdl2-ttf
- sdl2pp
- secp256k1
- septag-sx
- seqan
- sf2cute
- sfgui
- sfsexp
- shapelib
- shiva-sfml
- shiva
- shogun
- signalrclient
- sigslot
- simde
- simple-fft
- simpleini
- skia
- skyr-url
- smpeg2
- snappy
- sndfile
- snowhouse
- sockpp
- sokol
- sol2
- solid3
- soqt
- soundtouch
- soxr
- spaceland
- sparsehash
- sparsepp