Commit c352eb87 authored by User expired's avatar User expired
Browse files

bib-jabbr: Rename option -u to -f as in newbib

parent 4095c043
......@@ -10,7 +10,7 @@ function usage() {
echo "Options:"
echo " -h print this help"
echo " -n show changes only"
echo " -u undo abbreviation"
echo " -f use full name (undo abbreviation)"
echo " -j provide journal title instead of 'bibfiles'"
exit $1
}
......@@ -27,8 +27,8 @@ for arg; do
if [[ "$arg" == "-h" ]]; then usage 0; fi
# With option '-n' only show diff.
if [[ "$arg" == "-n" ]]; then INPLACE=0; fi
# With option '-u' unabbreviate.
if [[ "$arg" == "-u" ]]; then UNABBR=1; fi
# With option '-f' unabbreviate.
if [[ "$arg" == "-f" ]]; then UNABBR=1; fi
# With option '-j' read title from arguments.
if [[ "$arg" == "-j" ]]; then ARGNAME=1; fi
done
......@@ -9288,7 +9288,7 @@ for bibfile in "$@"
do
# Skip options.
test "$bibfile" != "-n" || continue
test "$bibfile" != "-u" || continue
test "$bibfile" != "-f" || continue
test "$bibfile" != "-j" || continue
 
# Replace »name.pdf« by »name.pdf.bib«.
......
......@@ -36,7 +36,7 @@ for arg; do
ACTION="echo"
fi
# With option '-f' use full journal names.
if [[ "$arg" == "-f" ]]; then FULLNAME="-u"; fi
if [[ "$arg" == "-f" ]]; then FULLNAME="-f"; fi
# With option '-u' keep field values unchanged.
if [[ "$arg" == "-u" ]]; then KEEPVALUES="-u"; fi
done
......
......@@ -39,7 +39,7 @@ for arg; do
ACTION="echo"
fi
# With option '-f' use full journal names.
if [[ "$arg" == "-f" ]]; then FULLNAME="-u"; fi
if [[ "$arg" == "-f" ]]; then FULLNAME="-f"; fi
# With option '-u' keep field values unchanged.
if [[ "$arg" == "-u" ]]; then KEEPVALUES="-u"; fi
# With option '-l' select newest pdf/bib file.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment