summaryrefslogtreecommitdiff
path: root/make.sh
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2008-06-30 08:48:04 +0200
committerAndreas Mair <amair.sob@googlemail.com>2008-06-30 08:48:04 +0200
commit0f5234f89bea92523d7e8e3ec72bd5cb25dec19f (patch)
treed9f58f238cd000a91c66802115d63e5491a4ab15 /make.sh
parentd48934f53b4c3d3b0bb9087d87cc13b60b79839e (diff)
downloadvdradmin-am-3.6.2.tar.gz
vdradmin-am-3.6.2.tar.bz2
2008-06-30: 3.6.2v3.6.2
- Changed: No need to set the VFAT option in VDRAdmin-AM any longer as both filename codings will be searched for. - Fixed: some bugs in tv.html. - Fixed: command line options parsing. - Fixed: pattern titles that contain double quotes. - Fixed: timer titles that contain double quotes. - Added: new command line switch "--ipv6" to use IO::Socket::INET6 for networking (See bug report #462). - Updated: Dutch translation (Submitted by Roel Koelewijn). - Added: ST_STREAMDEV_HOST config option to set the name/ip to be used for streaming. - Fixed: m3u files for Xine (Reported by Robert C. Helling). - Updated: Italian translation (Submitted by Gringo). - Updated: Spanish translation (Submitted by RĂ¼diger Jung). - Updated: Finnish translation (Submitted by Rolf Ahrenberg). - Changed: include UTF8 locales by default. - Introduced new config options "GUI_POPUP_WIDTH" and "GUI_POPUP_HEIGHT" for setting the prog_detail's window size (Requested by Viking @vdr-portal.de). - Added prev/next arrows in prog_list after each day (Requested by Faudeer @vdr-portal.de). - Show channel in prog_list even if it's not in the current channel list; this is useful if prog_list is called by a link (e.g. timer_list) (Requested by Faudeer @vdr-portal.de). - Added support for modifying EPGSearch blacklists (Requested by dings @vdr-portal.de). - Show stream and switch buttons in prog_summary on channels without EPG information (Reported by Faudeer @vdr-portal.de). - Added: Show channelname in recording's details (Suggested by Stefan Seyfried). - Minor bugfixes and improvements.
Diffstat (limited to 'make.sh')
-rwxr-xr-xmake.sh38
1 files changed, 12 insertions, 26 deletions
diff --git a/make.sh b/make.sh
index 2bcb101..9f12ae7 100755
--- a/make.sh
+++ b/make.sh
@@ -36,11 +36,10 @@ function Error()
#
function do_po()
{
- local additional_langs="$(get_utf8_LANGS)"
- local all_langs="$LANGS $additional_langs"
- for L in $all_langs
+ for PO in po/*.po
do
- [ -d locale/$L/LC_MESSAGES/ ] || mkdir -p locale/$L/LC_MESSAGES/
+ L=$(basename $PO .po)
+ [ -d locale/$L/LC_MESSAGES/ ] || mkdir -p locale/$L/LC_MESSAGES/
msgfmt po/$L.po -o po/$L.mo
install -m 644 po/$L.mo locale/$L/LC_MESSAGES/vdradmin.mo
rm -f po/$L.mo
@@ -80,22 +79,6 @@ function do_dist()
mv $TMPDIR/$DIST_NAME.tar.bz2 .
}
-# determine additional (utf8-)languages
-#
-function get_utf8_LANGS()
-{
- ( cd po
- local UTF8LANGS
- local UTF8LANG
- for file in *.utf8.po; do
- [ -e $file ] || continue
- UTF8LANG=${file%.po}
- UTF8LANGS="$UTF8LANGS $UTF8LANG"
- done
- echo $UTF8LANGS
- )
-}
-
# extract original character encoding
#
function getOrigEncoding()
@@ -113,7 +96,7 @@ function getOrigEncoding()
function do_utf8_clean()
{
(cd po && rm -f *.utf8.po*)
- (cd locale && rm -rf *.utf8)
+ [ -d locale ] && (cd locale && rm -rf *.utf8)
}
# generate utf8 locales
@@ -144,7 +127,7 @@ function do_utf8_generate()
done
# generate us_US.utf8.po from POT template
- msginit -i vdradmin.pot -o en_US.utf8.po -l en_US.utf8 --no-translator
+ msginit -i vdradmin.pot -o en_US.utf8.po -l en_US.utf8 --no-translator --no-wrap
# map ISO-8859-1 encoding to UTF-8 instead of the respective "old" encodings
for file in $(ls *.utf8.po); do
@@ -167,7 +150,7 @@ function do_cl()
#
function do_check()
{
- LANGS=$LANGS $INSTALL_SH -p
+ $INSTALL_SH -p
}
[ "$1" ] || Usage
@@ -181,11 +164,11 @@ do
;;
install)
- LANGS=$LANGS $INSTALL_SH -c
+ $INSTALL_SH -c
;;
uninstall)
- LANGS=$LANGS $INSTALL_SH -u
+ $INSTALL_SH -u
;;
po)
@@ -193,8 +176,8 @@ do
;;
dist)
- do_utf8_clean
do_cvs
+ do_utf8_generate
do_po
do_cl
do_dist
@@ -216,6 +199,9 @@ do
do_check;
;;
+ help|-h|--help)
+ Usage;
+ ;;
*)
Error "Unknown command \"$1\""
;;