delliott
bb45fc85ba
All checks were successful
continuous-integration/drone/push Build is passing
Another attempt at #4516 Adds a small fix for tag map generation #4516 introduces build failures, but testing indicates that those failures would have been resolved by a full rebuild. Hence this pr. Co-authored-by: Darragh Elliott <me@delliott.xyz> Reviewed-on: #4553 Co-authored-by: delliott <delliott@fsfe.org> Co-committed-by: delliott <delliott@fsfe.org>
17 lines
359 B
Bash
Executable File
17 lines
359 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
inc_filenames=true
|
|
|
|
get_language() {
|
|
# extract language indicator from a given file name
|
|
echo "$(echo "$1" | sed -r 's:^.*\.([a-z]{2})\.[^\.]+$:\1:')"
|
|
}
|
|
|
|
get_shortname() {
|
|
# get shortened version of a given file name
|
|
# required for internal processing
|
|
|
|
#echo "$(echo "$1" | sed -r 's:\.[a-z]{2}.xhtml$::')";
|
|
echo "${1%.??.xhtml}"
|
|
}
|