Skip to content
Snippets Groups Projects
Commit a8dd70a0 authored by Erkki Moorits's avatar Erkki Moorits
Browse files

xfce-do-release: added OS dependent sed and make detection

parent a207110e
No related branches found
No related tags found
1 merge request!81xfce-do-release: FreeBSD fixes
Pipeline #20914 passed
......@@ -38,6 +38,8 @@ AM_INIT_AUTOMAKE([1.11 dist-bzip2 tar-ustar no-dist-gzip foreign])
AM_MAINTAINER_MODE()
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_CANONICAL_HOST
dnl ********************************
dnl *** Check for basic programs ***
dnl ********************************
......@@ -51,6 +53,26 @@ dnl **************************
LT_PREREQ([2.4])
LT_INIT([disable-static])
dnl ****************************************
dnl *** Check for host specific programs ***
dnl ****************************************
case "${host_os}" in
freebsd*)
AC_CHECK_PROGS(GSED, [gsed], no)
AS_IF([test x"$GSED" = x"no"], [AC_MSG_ERROR([GNU sed (gsed) missing])])
AC_CHECK_PROGS(GMAKE, [gmake], no)
AS_IF([test x"$GMAKE" = x"no"], [AC_MSG_ERROR([GNU make (gmake) missing])])
;;
*)
GSED="sed"
GMAKE="make"
;;
esac
AC_SUBST(GSED)
AC_SUBST(GMAKE)
dnl ***************************************
dnl *** Check for standard header files ***
dnl ***************************************
......@@ -67,6 +89,7 @@ dnl **********************
AC_CONFIG_FILES([
Makefile
helpers/Makefile
helpers/xfce-do-release
m4macros/Makefile
scripts/Makefile
scripts/xdt-autogen
......
......@@ -2,14 +2,23 @@
# The Xfce development team. All rights reserved.
#
bin_SCRIPTS = \
generated_scripts = \
xfce-do-release
scripts = \
xfce-build \
xfce-do-release \
xfce-get-release-notes \
xfce-get-translations \
xfce-update-news
bin_SCRIPTS = \
$(scripts) \
$(generated_scripts)
EXTRA_DIST = \
$(bin_SCRIPTS)
$(scripts)
CLEANFILES = \
$(generated_scripts)
# vi:set ts=8 sw=8 noet ai:
......@@ -7,8 +7,8 @@ steps_complete=0
version_scheme=1
warning='\e[1;33mWarning:\e[0m'
SED=${SED:-sed}
MAKE=${MAKE:-make}
SED=${SED:-@GSED@}
MAKE=${MAKE:-@GMAKE@}
# Check if the working directory is in the state we expect it to be in
sanity_checks () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment