3 ## live-boot(7) - System Boot Components
4 ## Copyright (C) 2006-2015 Daniel Baumann <mail@daniel-baumann.ch>
6 ## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
7 ## This is free software, and you are welcome to redistribute it
8 ## under certain conditions; see COPYING for details.
13 PROGRAM="LIVE\\\-BOOT"
14 VERSION="$(dpkg-parsechangelog -S Version)"
16 DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)"
18 DAY="$(LC_ALL=C date +%d)"
19 MONTH="$(LC_ALL=C date +%m)"
20 YEAR="$(LC_ALL=C date +%Y)"
22 echo "Updating version headers..."
26 SECTION="$(basename ${MANPAGE} | awk -F. '{ print $2 }')"
28 sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"Live Systems Project\"|" ${MANPAGE}
31 # European date format
32 for _LANGUAGE in es fr it
34 if ls po/${_LANGUAGE}/*.po > /dev/null 2>&1
36 for _FILE in po/${_LANGUAGE}/*.po
38 sed -i -e "s|^msgstr .*.2015-.*$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" \
39 -e "s|^msgstr .*.2015\"$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" \
45 # Brazilian date format
46 if ls po/pt_BR/*.po > /dev/null 2>&1
48 for _FILE in po/pt_BR/*.po
50 sed -i -e "s|^msgstr .*.2015-.*$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" \
51 -e "s|^msgstr .*-2015\"$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" \