summaryrefslogtreecommitdiff
path: root/make.sh
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2006-07-14 08:22:51 +0200
committerAndreas Mair <amair.sob@googlemail.com>2006-07-14 08:22:51 +0200
commit8652aa0a9b228e21df5dd68ccf83badb5e20bab8 (patch)
tree2035d01fe474c34aeac8d9307563be2bb58c9384 /make.sh
parentf04236038448cce41ff2af10e2d0ccfcd8df378a (diff)
downloadvdradmin-am-3.4.6.tar.gz
vdradmin-am-3.4.6.tar.bz2
2006-07-14: 3.4.6v3.4.6
- No changes.
Diffstat (limited to 'make.sh')
-rwxr-xr-xmake.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/make.sh b/make.sh
index 545e2c3..5d610cc 100755
--- a/make.sh
+++ b/make.sh
@@ -5,9 +5,9 @@ DIST_FILES="COPYING CREDITS FAQ HISTORY INSTALL README README.translators REQUIR
INSTALL_SH=./install.sh
TMPDIR=/tmp
-#TODO:
-# - dist / distclean / clean
+# Print usage information and exit
+#
function Usage()
{
echo "Usage: $0 cvs"
@@ -19,12 +19,16 @@ function Usage()
exit 1
}
+# Print error message and exit.
+#
function Error()
{
[ "$1" ] && echo $*
exit 1
}
+# Compile and install locales.
+#
function do_po()
{
for L in $LANGS
@@ -32,9 +36,12 @@ function do_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
done
}
+# Setup things after CVS checkout or update.
+#
function do_cvs()
{
# Create missing symbolic links
@@ -42,11 +49,15 @@ function do_cvs()
[ -e README ] || ln -s INSTALL README
}
+# Extract VDRAdmin-AM version from vdradmind.pl
+#
function getVersion()
{
grep "^my \$VERSION" vdradmind.pl | sed -e 's/^[^\"]*\"\([^\"]*\)\".*$/\1/'
}
+# Create tar.bz2 for distribution.
+#
function do_dist()
{
local DIST_NAME=vdradmin-am-$(getVersion)