-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
52 lines (48 loc) · 1.15 KB
/
configure.ac
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
AC_PREREQ(2.59)
AC_INIT(warewulf-monitor-legacy, 2.9.90, [email protected])
AC_CONFIG_SRCDIR([.])
AC_PROG_INSTALL
AM_INIT_AUTOMAKE
AC_PROG_CC
AC_PATH_PROG(PERLBIN, perl)
if test -z "$PERLBIN"; then
AC_MSG_ERROR([perl not found])
fi
AC_SUBST(PERLBIN)
dnl# Try to get SVN revision
if test -d .git -o -d ../.git ; then
GITREV=`git show -s --pretty=format:%h`
SVNVERSION=`git svn find-rev $GITREV`
else
SVNVERSION=`svnversion -c | sed 's/^.*://g' 2>/dev/null || echo 0000`
fi
if test "$SVNVERSION" = "0000" ; then
SVNVERSION=`svnversion 2>/dev/null || echo 0000`
fi
if test "$SVNVERSION" = "exported" ; then
SVNVERSION=0000
fi
AC_SUBST(SVNVERSION)
AC_OUTPUT([
Makefile
warewulf-monitor-legacy.spec
scripts/lib/Warewulf/Makefile
scripts/lib/Makefile
scripts/bin/Makefile
scripts/bin/wwnodes
scripts/bin/wwmpirun
scripts/bin/wwstats
scripts/bin/wwsummary
scripts/bin/wwtop
scripts/sbin/warewulfd
scripts/sbin/Makefile
scripts/share/Makefile
scripts/share/web/Makefile
scripts/init/Makefile
scripts/init/warewulf
scripts/init/wwproxy
scripts/init/wulfd
etc/Makefile
scripts/Makefile
src/Makefile
])