Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tissue Research JKU
Tissue Research Doc
Commits
fbd2a592
Commit
fbd2a592
authored
Dec 03, 2021
by
Sabina Köfler
Browse files
Clean up script
parent
7de06b95
Pipeline
#1125
passed with stage
in 2 minutes and 34 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
quick-start-guides/convert_to_pdf.sh
View file @
fbd2a592
...
@@ -59,8 +59,6 @@ construct_filename() {
...
@@ -59,8 +59,6 @@ construct_filename() {
z
=
"
${
x
##*/
}
"
# FILENAME
z
=
"
${
x
##*/
}
"
# FILENAME
pdf_filename
=
"
${
z
}
.pdf"
pdf_filename
=
"
${
z
}
.pdf"
pdf_path
=
"./
${
pdf_dir
}
/
${
pdf_filename
}
"
pdf_path
=
"./
${
pdf_dir
}
/
${
pdf_filename
}
"
# bak_pdf_filename="${z}_${file_date}-${file_time}.pdf"
# bak_pdf_path="./${pdf_dir}/${bak_pdf_filename}"
}
}
create_date_string
()
{
create_date_string
()
{
...
@@ -71,6 +69,7 @@ create_date_string() {
...
@@ -71,6 +69,7 @@ create_date_string() {
file_time
=
${
ftime
//
:
}
# remove the colons from the time stamp
file_time
=
${
ftime
//
:
}
# remove the colons from the time stamp
echo
"Constructed date string:
$file_date
and time string:
$file_time
"
echo
"Constructed date string:
$file_date
and time string:
$file_time
"
}
}
construct_bak_path
()
{
construct_bak_path
()
{
bak_pdf_filename
=
"
${
z
}
_
${
file_date
}
-
${
file_time
}
.pdf"
bak_pdf_filename
=
"
${
z
}
_
${
file_date
}
-
${
file_time
}
.pdf"
bak_pdf_path
=
"./
${
pdf_dir
}
/
${
bak_pdf_filename
}
"
bak_pdf_path
=
"./
${
pdf_dir
}
/
${
bak_pdf_filename
}
"
...
@@ -84,8 +83,6 @@ create_filearray
...
@@ -84,8 +83,6 @@ create_filearray
find_markdown
find_markdown
create_outdir_if_not_exists
create_outdir_if_not_exists
# exit
select_latex_engine
select_latex_engine
# # Allow user to add custom LaTeX variables
# # Allow user to add custom LaTeX variables
...
@@ -100,7 +97,6 @@ search2="## Inhalt"
...
@@ -100,7 +97,6 @@ search2="## Inhalt"
# find . -iname "*.md" -o -iname "*.mdown" -o -iname "*.markdown" | while read -r file; do # find -iname finds <pattern> case insensitive
# find . -iname "*.md" -o -iname "*.mdown" -o -iname "*.markdown" | while read -r file; do # find -iname finds <pattern> case insensitive
for
file
in
"
${
files
[@]
}
"
;
do
for
file
in
"
${
files
[@]
}
"
;
do
echo
"File:"
${
file
}
echo
"File:"
${
file
}
# construct_filename $file
# remove the line that renders the table of contents in markdown and copy file to /PDFs
# remove the line that renders the table of contents in markdown and copy file to /PDFs
if
!
grep
-q
"
$search1
"
$file
;
then
if
!
grep
-q
"
$search1
"
$file
;
then
continue
continue
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment