aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
blob: 0e9eb2d47533607d192cd13d29b63d6773e2a557 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

mkdir build-aux/ 2>/dev/null
touch build-aux/config.rpath libdvbv5-po/Makefile.in.in v4l-utils-po/Makefile.in.in
autoreconf -vfi

GETTEXTIZE=$(which gettextize)
if [ "GETTEXTIZE" != "" ]; then
	VER=$(gettextize --version|perl -ne 'print $1 if (m/(\d\.\d.*)/)')

	cp build-aux/config.rpath build-aux/config.rpath.bak

	sed "s,read dummy < /dev/tty,," < $GETTEXTIZE > ./gettextize
	chmod 755 ./gettextize

	echo "Generating locale v4l-utils-po build files for gettext version $VER"
	./gettextize --force --copy --no-changelog --po-dir=v4l-utils-po >/dev/null

	echo "Generating locale libdvbv5-po build files for gettext version $VER"
	./gettextize --force --copy --no-changelog --po-dir=libdvbv5-po >/dev/null

	for i in v4l-utils-po/Makefile.in.in libdvbv5-po/Makefile.in.in; do
		sed 's,rm -f Makefile,rm -f,' $i >a && mv a $i
	done
	sed 's,PACKAGE = @PACKAGE@,PACKAGE = @LIBDVBV5_DOMAIN@,' <libdvbv5-po/Makefile.in.in >a && mv a libdvbv5-po/Makefile.in.in

	mv build-aux/config.rpath.bak build-aux/config.rpath
fi

Privacy Policy