Skip to content

Commit

Permalink
Detect newer versions of darwin, and future ones as well
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@26400 72102866-910b-0410-8b05-ffd578937521
  • Loading branch information
nicola committed Mar 30, 2008
1 parent 62153be commit bb04034
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2008-03-30 Nicola Pero <[email protected]>

* clean_os.sh: Support new versions of Darwin, and future ones as
well. Patch by Blake Nicholson <[email protected]> with a few
changes.

2008-03-14 Nicola Pero <[email protected]>

* Documentation/README.MinGW: Fixed subversion URL to get libobjc
Expand Down
19 changes: 13 additions & 6 deletions clean_os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,23 @@ case "$1" in
exit 0
;;
# Remove version number for Darwin
darwin7*)
echo darwin7
# Versions currently most common have a quick hardcoded lookup
darwin9*)
echo darwin9
exit 0
;;
darwin8*)
echo darwin8
exit 0
;;
darwin6*)
echo darwin6
darwin7*)
echo darwin7
exit 0
;;
darwin5*)
echo darwin5
# Any other Darwin version falls here, where we use a slower sed
# subprocess to remove everything but the first major number.
darwin*)
echo `echo "$1" | sed s/\\\\..*//`
exit 0
;;
*)
Expand Down

0 comments on commit bb04034

Please sign in to comment.