Select Git revision
configure.ac
-
Jolien Creighton authored
Adds functionality so that you can configure both lal and lalapps from a top level configure script. There is a 00boot that calls lal/00boot and lalapps/00boot and then there is a top level configure which will configure both lal and lalapps. The top level Makefile then makes both lal and lalapps so that they can be installed together. The lalapps configure script is significantly modified to allow this.
Jolien Creighton authoredAdds functionality so that you can configure both lal and lalapps from a top level configure script. There is a 00boot that calls lal/00boot and lalapps/00boot and then there is a top level configure which will configure both lal and lalapps. The top level Makefile then makes both lal and lalapps so that they can be installed together. The lalapps configure script is significantly modified to allow this.
FT_delete_file.m 992 B
%---------------------------------------------------------------------
% function []=FT_delete_file(filename)
%
% deletes a file, USE CAREFULLY!
%
% filename: string, contains the name of the file
%
% Part of the SimTools package
% Andreas Freise 16.06.08 afreise@googlemail.com
%---------------------------------------------------------------------
function []=FT_delete_file(filename)
baseid='FT_delete_file';
if (~isstr(filename))
msgid=[baseid,':checkinarg'];
result='input argument must be a filename';
error(msgid,result);
end
% check whether name contains / or \ so its
% filename including the path
ispath=0;
if (strfind(filename,'\'))
ispath=1;
end
if (strfind(filename,'/'))
ispath=1;
end
if (ispath==0)
filename=['./',filename];
end
if (exist(filename))
disp(sprintf('deleting %s',filename));
delete(filename);
else
disp(sprintf('cannot delete %s, file does not exist',filename));
end