From a1c3633890a69b8e6c60502975871216cdf42642 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 5 Aug 2019 12:31:20 +0100 Subject: [PATCH] Switch to awk instead of xidel when determining the version number --- build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build b/build index 9f9496f..86e3465 100755 --- a/build +++ b/build @@ -52,6 +52,7 @@ task_setup() { check_command msbuild true; check_command nuget true; check_command fpm true; + check_command awk true; task_end 0; @@ -72,7 +73,7 @@ task_build() { task_package() { task_begin "Packaging as .deb"; - version="$(xidel -q PolyFeed/PolyFeed.csproj -e "css('ReleaseVersion')")-$(date +"%Y-%m-%dT%H:%M")+$(git rev-parse HEAD | head -c7)"; + version="$(awk '/version = / { print $3 }' PolyFeed.sln)-$(date +"%Y-%m-%dT%H:%M")+$(git rev-parse HEAD | head -c7)"; execute fpm -s dir -t deb -n polyfeed -v "${version}" --license MPL-2.0 \ --architecture all --maintainer "Starbeamrainbowlabs " \ --description "Create Atom feeds for websites that don't support it" \