aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-14 09:26:20 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2014-12-14 09:26:20 -0200
commitb021368d56b2afccbe8f3b3bf6142f6f7e92bd0f (patch)
tree83bf6a0f4ad195a397fe36eb7bb59a13a3e79a49 /bootstrap.sh
parent519d8b9ff56e4b3266301002ad3fec33cf3d3252 (diff)
Update INSTALL instructions and add a script to configure
Just running autoconf -vfi will override some needed configs at libdvbv5-po. So, add a bootstrap.sh script and document it. Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-xbootstrap.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100755
index 00000000..a9a0f8ef
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+autoreconf -vfi
+
+GETTEXTIZE=$(which gettextize)
+if [ "GETTEXTIZE" != "" ]; then
+
+ cp build-aux/config.rpath build-aux/config.rpath.bak
+
+ sed "s,read dummy < /dev/tty,," < $GETTEXTIZE > ./gettextize
+ chmod 755 ./gettextize
+
+ ./gettextize --force --copy --no-changelog --po-dir=v4l-utils-po
+ ./gettextize --force --copy --no-changelog --po-dir=libdvbv5-po
+
+ 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,rm -f Makefile , rm -f ,' $i >a && mv a $i
+ 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