summaryrefslogtreecommitdiffstats
path: root/gnustep-apps/FUNCTIONS
blob: 33dd67831bf0a9e86ad61417b05fbbc86883f26d (plain) (blame)
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

#---
## Replace sorcerys default_build with a custom one
#---
function default_build()
{
  if [[ -f ${INSTALL_ROOT}/usr/share/GNUstep/Makefiles/GNUstep.sh ]]
  then
    . ${INSTALL_ROOT}/usr/share/GNUstep/Makefiles/GNUstep.sh
  fi
  if [[ -x ./configure ]]
  then
    real_default_build
  else
    make $@
  fi
}

function default_post_install()
{
  real_default_post_install  &&
  if [[ -x ${INSTALL_ROOT}/usr/bin/make_services ]]; then
    message "Running make_services"
    ${INSTALL_ROOT}/usr/bin/make_services
  fi
}

function default_final()
{
  if [[ -x ${INSTALL_ROOT}/usr/bin/make_services ]]; then
    message "Running make_services"
    ${INSTALL_ROOT}/usr/bin/make_services
  fi
}