22 lines
472 B
Bash
Executable File
22 lines
472 B
Bash
Executable File
#! /bin/sh
|
|
# Gather the mom files from current dir and compile them into ONE pdf file, using my compiler script
|
|
# /!\ files must be names 0_file0, 1_file1... in order to be processed correctly
|
|
|
|
# if the file already exists, delete it
|
|
[ -e rendu.mom ] && rm rendu.mom
|
|
|
|
list=$(ls *.mom)
|
|
|
|
touch rendu.mom
|
|
|
|
for doc in "$list"; do
|
|
cat "$doc" >> rendu.mom
|
|
echo ".COLLATE" >> rendu.mom
|
|
done
|
|
|
|
# Remove the last ".COLLATE"
|
|
sed -i '$ d' rendu.mom
|
|
|
|
# Compile it
|
|
compiler rendu.mom
|