Skip to content

Commit bbd7d17

Browse files
committed
simplify merging
1 parent 8307a6e commit bbd7d17

6 files changed

Lines changed: 23 additions & 9 deletions

File tree

ACKNOWLEDGEMENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@
44
research and innovation programme under the Marie Skłodowska-Curie grant
55
agreement N°101065060$.
66
- Axel Kohlmeyer acknowledges financial support by Sandia National Laboratories
7-
under POs 2149742 and 2407526.
7+
under POs 2149742 and 2407526.
8+

AUTHORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88

99
- [Jacob R. Gissinger](https://www.stevens.edu/profile/jgissing), Stevens Institute of Technology, Hoboken, NJ 07030, USA
1010
- [Axel Kohlmeyer](https://sites.google.com/site/akohlmey), Institute for Computational Molecular Science, Temple University, Philadelphia, PA 19122, USA
11+

COMMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ This README.md file was assembled using the sed command from the files listed in
44
"files.txt". See the script in "generateREADME.sh". To modify the content of
55
the README.md, modify the files listed in
66
"files.txt", or add a new file to the list in "files.txt".
7-
-->
7+
-->

DESCRIPTION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
The content of the profile/README.md appears on the GitHub profile of the
44
[LAMMPS tutorials organization](https://github.com/lammpstutorials).
55
This repository also contains the list of [authors](AUTHORS.md) from the
6-
LAMMPS tutorials initiative, as well as a list of [Acknowledgements](ACKNOWLEDGEMENTS.md).
6+
LAMMPS tutorials initiative, as well as a list of [Acknowledgements](ACKNOWLEDGEMENTS.md).

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ the README.md, modify the files listed in
66
"files.txt", or add a new file to the list in "files.txt".
77
-->
88

9+
910
# LAMMPS tutorials' special repository
1011

1112
The content of the profile/README.md appears on the GitHub profile of the
1213
[LAMMPS tutorials organization](https://github.com/lammpstutorials).
1314
This repository also contains the list of [authors](AUTHORS.md) from the
14-
LAMMPS tutorials initiative.
15+
LAMMPS tutorials initiative, as well as a list of [Acknowledgements](ACKNOWLEDGEMENTS.md).
16+
1517

1618
## Authors
1719

@@ -25,11 +27,13 @@ LAMMPS tutorials initiative.
2527
- [Axel Kohlmeyer](https://sites.google.com/site/akohlmey), Institute for Computational Molecular Science, Temple University, Philadelphia, PA 19122, USA
2628

2729

30+
2831
## Acknowledgements
2932

3033
- Simon Gravelle acknowledges funding from the European Union's Horizon 2020
3134
research and innovation programme under the Marie Skłodowska-Curie grant
3235
agreement N°101065060$.
3336
- Axel Kohlmeyer acknowledges financial support by Sandia National Laboratories
3437
under POs 2149742 and 2407526.
38+
3539

generateREADME.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,28 @@ output_file="README.md"
44
> "$output_file"
55

66
files=()
7-
while IFS= read -r line; do
7+
while IFS= read -r line
8+
do
89
files+=("$line")
910
done < "files.txt"
1011
input_files="${files[@]}"
1112

1213
# Loop through each file and append its content to the output file
13-
for file in "${files[@]}"; do
14+
for file in "${files[@]}"
15+
do
16+
1417
# Check if file exists before attempting to read it
15-
if [ -f "$file" ]; then
18+
if [ -f "$file" ]
19+
then
20+
1621
# Append file content to the output file
1722
cat "$file" >> "$output_file"
18-
# Append a blank line after each file's content
23+
24+
# Append blank line
1925
echo -e "\n" >> "$output_file"
26+
2027
else
21-
echo "Warning: File '$file' does not exist."
28+
echo "WARNING: File '$file' does not exist."
2229
fi
30+
2331
done

0 commit comments

Comments
 (0)