File: autogen.sh

package info (click to toggle)
ddccontrol-db 20230223-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,640 kB
  • sloc: xml: 4,830; sh: 119; makefile: 32; sed: 16; perl: 12
file content (27 lines) | stat: -rwxr-xr-x 628 bytes parent folder | download | duplicates (4)
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
#!/bin/sh

set -e

echo "Running libtoolize..."
libtoolize --copy --force --automake

echo "Running autopoint..."
autopoint --force

echo "Running intltoolize..."
intltoolize --copy --force --automake

sed() { local fname perm; fname=$(eval echo \$$#); perm="$(stat -c "%a" "$fname")"; env sed "$@"; chmod "$perm" "$fname"; }
sed -e "s|\@INSTOBJEXT\@|.mo|" -i'~' po/Makefile.in.in
sed -e "s|\@CATOBJEXT\@|.gmo|" -i'~' po/Makefile.in.in
sed -e "s|\@GENCAT\@|gencat|" -i'~' po/Makefile.in.in
unset -f sed

echo "Running aclocal..."
aclocal -I m4

echo "Running autoconf..."
autoconf

echo "Running automake..."
automake -a --copy