Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ionen-angewandte-physik
AG-Wester
bibtools
Commits
04b5d462
Commit
04b5d462
authored
Feb 13, 2020
by
User expired
Browse files
newbib: Multi record files are not renamed
parent
a816962e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
bin/newbib
bin/newbib
+9
-3
No files found.
bin/newbib
View file @
04b5d462
...
...
@@ -97,9 +97,15 @@ do
|
grep
-o
"[^ ']*
\.
pdf
\.
bib"
|
tail
-n1
)
"
# Rename bib and pdf file.
test
"./
${
bibfile
}
"
==
"
${
targetdir
}
/
${
newbibfile
}
"
\
||
$ACTION
"mv -i
\"
${
bibfile
}
\"
\"
${
targetdir
}
/
${
newbibfile
}
\"
"
||
exit
1
if
[
-n
"
${
newbibfile
}
"
]
then
test
"./
${
bibfile
}
"
==
"
${
targetdir
}
/
${
newbibfile
}
"
\
||
$ACTION
"mv -i
\"
${
bibfile
}
\"
\"
${
targetdir
}
/
${
newbibfile
}
\"
"
\
||
exit
1
else
newbibfile
=
"
$bibfile
"
fi
# Print file path and citation key.
test
-z
"
$DRYRUN
"
&&
grep
-H
@
"
${
targetdir
}
/
${
newbibfile
}
"
test
-z
"
$DRYRUN
"
&&
grep
-H
^
@
"
${
targetdir
}
/
${
newbibfile
}
"
done
Write
Preview
Markdown
is supported
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