Repository navigation
Expand file tree
/
Copy pathautogen.sh
More file actions
executable file
·100 lines (86 loc) · 2.02 KB
/
Copy pathautogen.sh
File metadata and controls
executable file
·100 lines (86 loc) · 2.02 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
#!/bin/sh
set -e
# Download dependencies
mkdir -p vendor
git clone -j `nproc` --depth 1 --branch v0.7.1 https://github.com/Thalhammer/jwt-cpp.git vendor/jwt-cpp
# Script for regenerating all autogenerated files.
echo Regenerating all dbPager autogenerated files...
if [ -f /usr/local/share/aclocal/libtool.m4 ]; then
cp /usr/local/share/aclocal/libtool.m4 ./aclocal.m4
else
if [ -f /usr/share/aclocal/libtool.m4 ]; then
cp /usr/share/aclocal/libtool.m4 ./aclocal.m4
else
echo "You should have libtool package installed."
exit
fi
fi
autopoint -f
libtoolize -c -f
aclocal -I m4
autoheader &&
automake --gnu -c -a &&
autoconf &&
autoheader
# Regenerate language files for gettext
if [ -f po/POTFILES.in ]; then
rm -f po/POTFILES.in
fi
touch po/POTFILES.in
find . -name '*.cpp' >>po/POTFILES.in
find . -name '*.h' >>po/POTFILES.in
xgettext -k_ -f po/POTFILES.in -C -F -o dbpager.pot -p po
cd po
rm -rf LINGUAS
touch LINGUAS
if [ -f *.po ]; then
for f in *.po; do
lang=`echo $f | sed -e 's,\.po$,,'`
msgmerge -U $lang.po dbpager.pot
msgfmt -c -o $lang.gmo $lang.po
echo $lang >>LINGUAS
done
fi
cd ..
# Regenerate subproject build files
echo Regenerating all dbPager subprojects autogenerated files...
echo mimetic...
cd src/mimetic
if [ -f /usr/local/share/aclocal/libtool.m4 ]; then
cp /usr/local/share/aclocal/libtool.m4 ./aclocal.m4
else
if [ -f /usr/share/aclocal/libtool.m4 ]; then
cp /usr/share/aclocal/libtool.m4 ./aclocal.m4
else
echo "You should have libtool package installed."
exit
fi
fi
libtoolize -c -f
aclocal -I m4
autoheader &&
automake --gnu -c -a &&
autoconf &&
autoheader &&
autoreconf -f -i
cd ../..
echo fcgi...
cd src/fcgi-2.4.1-SNAP-0910052249
if [ -f /usr/local/share/aclocal/libtool.m4 ]; then
cp /usr/local/share/aclocal/libtool.m4 ./aclocal.m4
else
if [ -f /usr/share/aclocal/libtool.m4 ]; then
cp /usr/share/aclocal/libtool.m4 ./aclocal.m4
else
echo "You should have libtool package installed."
exit
fi
fi
libtoolize -c -f
aclocal -I m4
autoheader &&
automake --gnu -c -a &&
autoconf &&
autoheader &&
autoreconf -f -i
cd ../..