A few touch ups before tagged release.
This commit is contained in:
+25
-6
@@ -59,8 +59,11 @@ fi
|
||||
cthulhuVersionFile="${scriptDir}/src/cthulhu/cthulhuVersion.py"
|
||||
mesonFile="${scriptDir}/meson.build"
|
||||
pkgbuildFile="${scriptDir}/distro-packages/Arch-Linux/cthulhu/PKGBUILD"
|
||||
slackwareBuildFile="${scriptDir}/distro-packages/Slackware/cthulhu.SlackBuild"
|
||||
slintBuildFile="${scriptDir}/distro-packages/Slint/cthulhu.SlackBuild"
|
||||
slintInfoFile="${scriptDir}/distro-packages/Slint/cthulhu-info"
|
||||
|
||||
for path in "$cthulhuVersionFile" "$mesonFile" "$pkgbuildFile"; do
|
||||
for path in "$cthulhuVersionFile" "$mesonFile" "$pkgbuildFile" "$slackwareBuildFile" "$slintBuildFile" "$slintInfoFile"; do
|
||||
if [[ ! -f "$path" ]]; then
|
||||
echo "Error: Missing file: $path" >&2
|
||||
exit 1
|
||||
@@ -68,18 +71,19 @@ for path in "$cthulhuVersionFile" "$mesonFile" "$pkgbuildFile"; do
|
||||
done
|
||||
|
||||
sed -i "s/^version = \".*\"/version = \"${pythonVersion}\"/" "$cthulhuVersionFile"
|
||||
if [[ -n "$codeNameValue" ]]; then
|
||||
sed -i "s/^codeName = \".*\"/codeName = \"${codeNameValue}\"/" "$cthulhuVersionFile"
|
||||
fi
|
||||
sed -i "s/^codeName = \".*\"/codeName = \"${codeNameValue}\"/" "$cthulhuVersionFile"
|
||||
sed -i "s/^ version: '.*',/ version: '${fullVersion}',/" "$mesonFile"
|
||||
sed -i "s/^pkgver=.*/pkgver=${pythonVersion}/" "$pkgbuildFile"
|
||||
sed -i "s/^pkgrel=.*/pkgrel=1/" "$pkgbuildFile"
|
||||
sed -i "s/^VERSION=\${VERSION:-.*}/VERSION=\${VERSION:-${pythonVersion}}/" "$slackwareBuildFile"
|
||||
sed -i "s/^VERSION=\${VERSION:-.*}/VERSION=\${VERSION:-${pythonVersion}}/" "$slintBuildFile"
|
||||
sed -i "s/^VERSION=\".*\"/VERSION=\"${pythonVersion}\"/" "$slintInfoFile"
|
||||
|
||||
if ! rg -q "^version = \"${pythonVersion}\"" "$cthulhuVersionFile"; then
|
||||
echo "Error: Failed to update ${cthulhuVersionFile}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if [[ -n "$codeNameValue" ]] && ! rg -q "^codeName = \"${codeNameValue}\"" "$cthulhuVersionFile"; then
|
||||
if ! rg -q "^codeName = \"${codeNameValue}\"" "$cthulhuVersionFile"; then
|
||||
echo "Error: Failed to update codeName in ${cthulhuVersionFile}" >&2
|
||||
exit 1
|
||||
fi
|
||||
@@ -95,8 +99,23 @@ if ! rg -q "^pkgrel=1$" "$pkgbuildFile"; then
|
||||
echo "Error: Failed to reset pkgrel in ${pkgbuildFile}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! rg -q "^VERSION=\\\$\\{VERSION:-${pythonVersion}\\}$" "$slackwareBuildFile"; then
|
||||
echo "Error: Failed to update ${slackwareBuildFile}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! rg -q "^VERSION=\\\$\\{VERSION:-${pythonVersion}\\}$" "$slintBuildFile"; then
|
||||
echo "Error: Failed to update ${slintBuildFile}" >&2
|
||||
exit 1
|
||||
fi
|
||||
if ! rg -q "^VERSION=\"${pythonVersion}\"$" "$slintInfoFile"; then
|
||||
echo "Error: Failed to update ${slintInfoFile}" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Updated version to ${fullVersion} in:" \
|
||||
"${cthulhuVersionFile}" \
|
||||
"${mesonFile}" \
|
||||
"${pkgbuildFile}"
|
||||
"${pkgbuildFile}" \
|
||||
"${slackwareBuildFile}" \
|
||||
"${slintBuildFile}" \
|
||||
"${slintInfoFile}"
|
||||
|
||||
Reference in New Issue
Block a user