We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aaf104 commit 5cf5f3eCopy full SHA for 5cf5f3e
generate_version.sh
@@ -0,0 +1,7 @@
1
+version_number=`sed -n '/MARKETING_VERSION/{s/MARKETING_VERSION = //;s/;//;s/^[[:space:]]*//;p;q;}' ./AlgoliaSearch.xcodeproj/project.pbxproj`
2
+version_file=Sources/AlgoliaSearch-Client/Version.swift
3
+> $version_file
4
+echo "// This is generated file. Don't modify it manually." >> $version_file
5
+echo "public struct Version {" >> $version_file
6
+echo " public static let current = \""${version_number}"\"" >> $version_file
7
+echo "}" >> $version_file
0 commit comments