Skip to content

Commit f93dc4a

Browse files
committed
add examples in fpm
1 parent af11e23 commit f93dc4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/fpm-deployment.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ minor=$(cut -d. -f2 VERSION)
3939
patch=$(cut -d. -f3 VERSION)
4040
fyflags="${fyflags} -DPROJECT_VERSION_MAJOR=${major} -DPROJECT_VERSION_MINOR=${minor} -DPROJECT_VERSION_PATCH=${patch}"
4141

42-
mkdir -p "$destdir/src" "$destdir/test"
42+
mkdir -p "$destdir/src" "$destdir/test" "$destdir/example"
4343

4444
# Preprocess stdlib sources
4545
find src -maxdepth 1 -iname "*.fypp" \
@@ -49,6 +49,7 @@ find src -maxdepth 1 -iname "*.fypp" \
4949
find src -maxdepth 1 -iname "*.f90" -exec cp {} "$destdir/src/" \;
5050
find src/tests -name "test_*.f90" -exec cp {} "$destdir/test/" \;
5151
find src/tests -name "*.dat" -exec cp {} "$destdir/" \;
52+
find test/example -name "demo_*.f90" -exec cp {} "$destdir/example/" \;
5253

5354
# Include additional files
5455
cp "${include[@]}" "$destdir/"

0 commit comments

Comments
 (0)