File: autogen.sh

package info (click to toggle)
smbldap-tools 0.9.11-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 960 kB
  • sloc: perl: 5,053; sh: 191; makefile: 100
file content (17 lines) | stat: -rwxr-xr-x 299 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -u
set -e

rm -rf autom4te*.cache

grep AC_CONFIG_HEADER configure.in >/dev/null && autoheader
autoconf

rm -rf autom4te*.cache

sed -n \
  -e "s/^/ /;s/$/ /;s/'/ ' /" \
  -e "/^ ac_subst_vars=/,/'/s/^.* \([A-Za-z_][A-Za-z0-9_]*\) .*/\1=@\1@/p" \
  configure \
  >build/subst.vars.in