Skip to content

Instantly share code, notes, and snippets.

@owensd
Last active February 16, 2020 13:55
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save owensd/ce6634e5e98d402c6bcf94f706d1b628 to your computer and use it in GitHub Desktop.
#!/bin/bash
VersionInfoTemplatePath=./Sources/VersionInfo/VersionInfo.swiftpartial
VersionInfoPath=./Sources/VersionInfo/VersionInfo.swift
VersionInfo=./Sources/VersionInfo/VersionInfo.yaml
Version=$(sed 's/^version: \(.*\)$/\1/' $VersionInfo)
sed "s/\$VersionNumber/$Version/g" <$VersionInfoTemplatePath >$VersionInfoPath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment