Skip to content

Commit e24a145

Browse files
committed
Removing control files and updating the updateVersion.sh
1 parent e1f6d25 commit e24a145

File tree

7 files changed

+0
-92
lines changed

7 files changed

+0
-92
lines changed

packaging/templates/package_scripts/control

Lines changed: 0 additions & 12 deletions
This file was deleted.

packaging/templates/package_scripts/control.arm64

Lines changed: 0 additions & 13 deletions
This file was deleted.

packaging/templates/package_scripts/control.profile.amd64

Lines changed: 0 additions & 14 deletions
This file was deleted.

packaging/templates/package_scripts/control.profile.arm64

Lines changed: 0 additions & 12 deletions
This file was deleted.

packaging/templates/package_scripts/control.validator

Lines changed: 0 additions & 12 deletions
This file was deleted.

packaging/templates/package_scripts/control.validator.arm64

Lines changed: 0 additions & 13 deletions
This file was deleted.

scripts/updateVersion.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,6 @@ fi
5151
echo ""
5252
echo "New version is: $version"
5353

54-
# update version in all the 6 templates
55-
replace="Version: "$version
56-
fileArray=(
57-
"${DIR}/../packaging/templates/package_scripts/control"
58-
"${DIR}/../packaging/templates/package_scripts/control.arm64"
59-
"${DIR}/../packaging/templates/package_scripts/control.profile.amd64"
60-
"${DIR}/../packaging/templates/package_scripts/control.profile.arm64"
61-
"${DIR}/../packaging/templates/package_scripts/control.validator"
62-
"${DIR}/../packaging/templates/package_scripts/control.validator.arm64"
63-
)
64-
for file in ${fileArray[@]}; do
65-
# get the line starting with `Version` in the control file and store it in the $temp variable
66-
temp=$(grep "^Version.*" $file)
67-
sed -i '' "s%$temp%$replace%" $file
68-
done
69-
7054
# update version in ../params/version.go
7155
versionFile="${DIR}/../params/version.go"
7256
sed -i '' "s% = .*// Major% = $VersionMajor // Major%g" $versionFile

0 commit comments

Comments
 (0)