mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-16 04:35:01 +03:00
fix debian package builds (#554)
* fix debian builds issue described: https://github.com/SoftEtherVPN/SoftEtherVPN/issues/550 * add cmake3 dependency (for ubuntu 14.04) * "compat" belongs to debian/ subfolder that file is not needed in root folder * update debian package version * compare debian/changelog and src/CurrentBuild.txt
This commit is contained in:
committed by
Moataz Elmasry
parent
1e8cf1dc5d
commit
be0ebb65c1
30
.ci/check-debian-package-version.sh
Executable file
30
.ci/check-debian-package-version.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
while IFS=$'\n\r' read -r line || [[ -n "$line" ]]; do
|
||||
echo "Text read from file: $line"
|
||||
case $line in
|
||||
BUILD_NUMBER\ *)
|
||||
BUILD_NUMBER=${line#BUILD_NUMBER }
|
||||
;;
|
||||
VERSION\ *)
|
||||
VERSION=${line#VERSION }
|
||||
;;
|
||||
BUILD_NAME\ *)
|
||||
BUILD_NAME=${line#BUILD_NAME }
|
||||
;;
|
||||
|
||||
esac
|
||||
done < "src/CurrentBuild.txt"
|
||||
|
||||
VERSION=${VERSION:0:1}.${VERSION:1} # Add a colon after the first character. ("501" => "5.01")
|
||||
|
||||
CHANGELOG_VERSION="(0:$VERSION.$BUILD_NUMBER) $BUILD_NAME"
|
||||
|
||||
IFS=$'\n\r' read -r line < "debian/changelog"
|
||||
if [[ $line == *$CNANGELOG_VERSION* ]]; then
|
||||
echo "debian/changelog matches src/CurrentBuild.txt"
|
||||
else
|
||||
echo "debian/changelog does not match src/CurrentBuild.txt"
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user