3 ## live-boot(7) - System Boot Scripts
4 ## Copyright (C) 2006-2012 Daniel Baumann <daniel@debian.org>
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
="$(cat ../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} \"Debian Live Project\"|" ${MANPAGE}
31 # European date format
32 for _LANGUAGE in de 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 .
*.2012\"$|msgstr
\"${DAY}.${MONTH}.${YEAR}\"|g" "${_FILE}"
43 # Brazilian date format
44 if ls po/pt_BR/*.po > /dev/null 2>&1
46 for _FILE in po/pt_BR/*.po
48 sed -i -e "s|^msgstr .
*-2012\"$|msgstr
\"${DAY}-${MONTH}-${YEAR}\"|g" "${_FILE}"