diff options
author | Björn Gustavsson <[email protected]> | 2010-08-10 14:31:58 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-08-10 14:31:58 +0200 |
commit | bdfd2aaa1d402b3dd393a7820432f8f76e248ee1 (patch) | |
tree | 0ec4f4f72d330e74e67cd0d15770a0ebb9fd4338 /lib/test_server/src/ts_lib.erl | |
parent | 29d5bc047964a01e55f18baf0a31387ed3b7d2cd (diff) | |
parent | 1e294a3665faeefd5755c0795e487a8bb3db702a (diff) | |
download | otp-bdfd2aaa1d402b3dd393a7820432f8f76e248ee1.tar.gz otp-bdfd2aaa1d402b3dd393a7820432f8f76e248ee1.tar.bz2 otp-bdfd2aaa1d402b3dd393a7820432f8f76e248ee1.zip |
Merge branch 'bjorn/remove-clearcase-support' into dev
* bjorn/remove-clearcase-support:
Top-level Makefile: Remove clearmake support
otp_build: Remove clearmake support
otp_build: Remove Clearcase support for primary bootstrap and preloaded files
ts: Eliminate Clearcase references in comments
ts: Remove Clearcase detection
Diffstat (limited to 'lib/test_server/src/ts_lib.erl')
-rw-r--r-- | lib/test_server/src/ts_lib.erl | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/lib/test_server/src/ts_lib.erl b/lib/test_server/src/ts_lib.erl index 082c9e0519..c90f4e511b 100644 --- a/lib/test_server/src/ts_lib.erl +++ b/lib/test_server/src/ts_lib.erl @@ -1,19 +1,19 @@ %% %% %CopyrightBegin% -%% -%% Copyright Ericsson AB 1997-2009. All Rights Reserved. -%% +%% +%% Copyright Ericsson AB 1997-2010. All Rights Reserved. +%% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. -%% +%% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. -%% +%% %% %CopyrightEnd% %% -module(ts_lib). @@ -72,12 +72,10 @@ progress(Vars, Level, Format, Args) -> erlang_type() -> {_, Version} = init:script_id(), - RelDir = filename:join([code:root_dir(), "releases"]), % Only in installed - SysDir = filename:join([code:root_dir(), "system"]), % Nonexisting link/dir outside ClearCase - case {filelib:is_file(RelDir),filelib:is_file(SysDir)} of - {true,_} -> {otp, Version}; % installed OTP - {_,true} -> {clearcase, Version}; - _ -> {srctree, Version} + RelDir = filename:join(code:root_dir(), "releases"), % Only in installed + case filelib:is_file(RelDir) of + true -> {otp,Version}; % installed OTP + false -> {srctree,Version} % source code tree end. %% Upcases the first letter in a string. |