Skip to content

Instantly share code, notes, and snippets.

@owensd
Last active February 16, 2020 13:55
Show Gist options
  • Save owensd/ce6634e5e98d402c6bcf94f706d1b628 to your computer and use it in GitHub Desktop.
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