Add bump version, add robots.txt

This commit is contained in:
Konstantin 2024-03-29 18:43:38 +01:00
parent e55aeb5c71
commit 6bd0df1f34
4 changed files with 57 additions and 3 deletions

16
bump_version.sh Normal file
View file

@ -0,0 +1,16 @@
#!/bin/bash
# Read the current version from the Makefile
current_version=$(sed -n 's/^VERSION = \(.*\)/\1/p' Makefile)
# Split the version into an array using '.' as the delimiter
IFS='.' read -ra version_parts <<< "$current_version"
# Increment the last part of the version
((version_parts[-1]++))
# Join the version parts back together with '.' as the delimiter
new_version=$(IFS=. ; echo "${version_parts[*]}")
# Replace the old version with the new one in the Makefile
sed -i "" "s/^VERSION = $current_version/VERSION = $new_version/g" Makefile