Skip to content

Commit 01308f2

Browse files
committed
update VERSION inside fpm.toml
1 parent 2fdfab4 commit 01308f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/fpm-deployment.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ fi
2020

2121
# Additional files to include
2222
include=(
23-
"ci/fpm.toml"
2423
"LICENSE"
2524
"VERSION"
2625
)
@@ -54,6 +53,9 @@ find example -name "example_*.f90" -exec cp {} "$destdir/example/" \;
5453
# Include additional files
5554
cp "${include[@]}" "$destdir/"
5655

56+
# Update version in the manifest (not all systems support sed -i)
57+
sed -E "s,version = \"VERSION\",version = \"$major.$minor.$patch\",g" ci/fpm.toml > "$destdir/fpm.toml"
58+
5759
# Source file workarounds for fpm; ignore missing files
5860
rm "${prune[@]}"
5961

0 commit comments

Comments
 (0)