3 ## live-boot(7) - System Boot Components
4 ## Copyright (C) 2016-2020 The Debian Live team
5 ## Copyright (C) 2006-2015 Daniel Baumann <mail@daniel-baumann.ch>
7 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
8 ## This is free software, and you are welcome to redistribute it
9 ## under certain conditions; see COPYING for details.
14 PROGRAM="LIVE\\\-BOOT"
15 VERSION="$(dpkg-parsechangelog -S Version)"
17 DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
19 DAY="$(LC_ALL=C date +%d)"
20 MONTH="$(LC_ALL=C date +%m)"
21 YEAR="$(LC_ALL=C date +%Y)"
23 echo "Updating version headers..."
27 SECTION="$(basename ${MANPAGE} | awk -F. '{ print $2 }')"
29 sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Debian Live Project\"|" ${MANPAGE}
32 # European date format
33 for _LANGUAGE in es fr it
35 if ls po/${_LANGUAGE}/*.po > /dev/null 2>&1
37 for _FILE in po/${_LANGUAGE}/*.po
39 sed -i -e "s|^msgstr .*.2015-.*$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" \
40 -e "s|^msgstr .*.2015\"$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" \
46 # Brazilian date format
47 if ls po/pt_BR/*.po > /dev/null 2>&1
49 for _FILE in po/pt_BR/*.po
51 sed -i -e "s|^msgstr .*.2015-.*$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" \
52 -e "s|^msgstr .*-2015\"$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" \