diff options
author | Jeremy Blosser | 2006-04-24 15:45:16 -0500 |
---|---|---|
committer | Jeremy Blosser | 2006-04-24 15:45:16 -0500 |
commit | 5f2c8be121ce416fe6ed37b054d9486fd697e8dd (patch) | |
tree | e6fa8abe70797ab93f24e3b88728952f9eb13315 /gnustep-apps/FUNCTIONS | |
parent | ace1cf792004fcae21781944714687504260f94a (diff) |
sync ./gnustep-apps/FUNCTIONS from stable-rc 0.4
Diffstat (limited to 'gnustep-apps/FUNCTIONS')
-rwxr-xr-x | gnustep-apps/FUNCTIONS | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/gnustep-apps/FUNCTIONS b/gnustep-apps/FUNCTIONS new file mode 100755 index 0000000000..0f3deef3a3 --- /dev/null +++ b/gnustep-apps/FUNCTIONS @@ -0,0 +1,46 @@ +# ------------------------------------------------------------------------------ +## Replace sorcerys default_build with a custom one +# ------------------------------------------------------------------------------ +function default_build () +{ + if [ -f /etc/profile.d/GNUstep.sh ] + then + . /etc/profile.d/GNUstep.sh + else + message "${ERROR_COLOR}Unable to find /etc/profile.d/GNUstep.sh" + message "Rebuild gnustep-make${DEFAULT_COLOR}" + exit 1 + fi && + + if [ -f ./configure ] + then + ./configure \ + $OPTS + fi && + + make && + + if [ "$GNUSTEP_BUILD_DOC" == "y" ] + then + cd Documentation && + make && + cd ../ + fi +} + + +# ------------------------------------------------------------------------------ +## Replace sorcerys default_install with a custom one +# ------------------------------------------------------------------------------ +function default_install () +{ + make GNUSTEP_INSTALLATION_DIR=$GNUSTEP_SYSTEM_ROOT install && + + if [ "$GNUSTEP_BUILD_DOC" == "y" ] + then + cd Documentation && + make && + make GNUSTEP_INSTALLATION_DIR=$GNUSTEP_SYSTEM_ROOT install && + cd ../ + fi +}
\ No newline at end of file |