mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 18:09:12 +02:00
* moved to fpinst/ directory
+ makefile
This commit is contained in:
parent
ed7953a581
commit
7db6b83d40
66
install/fpinst/Makefile
Normal file
66
install/fpinst/Makefile
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
#
|
||||||
|
# $Id$
|
||||||
|
# Copyright (c) 1998 by the Free Pascal Development Team
|
||||||
|
#
|
||||||
|
# Makefile for Free Pascal Installer
|
||||||
|
#
|
||||||
|
# See the file COPYING.FPC, included in this distribution,
|
||||||
|
# for details about the copyright.
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful,
|
||||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# Defaults
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
NEEDUNITDIR=../api ../fv
|
||||||
|
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# Real targets
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
UNITOBJECTS=ziptypes unzip
|
||||||
|
EXEOBJECTS=install
|
||||||
|
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# Include default makefile
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
ifndef FPCMAKE
|
||||||
|
ifdef FPCDIR
|
||||||
|
FPCMAKE=$(FPCDIR)/makefile.fpc
|
||||||
|
else
|
||||||
|
FPCMAKE=makefile.fpc
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
override FPCMAKE:=$(strip $(wildcard $(FPCMAKE)))
|
||||||
|
ifeq ($(FPCMAKE),)
|
||||||
|
nofpcmake:
|
||||||
|
@echo
|
||||||
|
@echo makefile.fpc not found!
|
||||||
|
@echo Check the FPCMAKE and FPCDIR environment variables.
|
||||||
|
@echo
|
||||||
|
@exit
|
||||||
|
else
|
||||||
|
include $(FPCMAKE)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
#####################################################################
|
||||||
|
# Dependencies
|
||||||
|
#####################################################################
|
||||||
|
|
||||||
|
#
|
||||||
|
# $Log$
|
||||||
|
# Revision 1.1 1999-02-19 16:45:26 peter
|
||||||
|
# * moved to fpinst/ directory
|
||||||
|
# + makefile
|
||||||
|
#
|
||||||
|
#
|
@ -930,7 +930,11 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.15 1999-02-17 22:34:08 peter
|
Revision 1.1 1999-02-19 16:45:26 peter
|
||||||
|
* moved to fpinst/ directory
|
||||||
|
+ makefile
|
||||||
|
|
||||||
|
Revision 1.15 1999/02/17 22:34:08 peter
|
||||||
* updates from TH for OS2
|
* updates from TH for OS2
|
||||||
|
|
||||||
Revision 1.14 1998/12/22 22:47:34 peter
|
Revision 1.14 1998/12/22 22:47:34 peter
|
@ -1,3 +1,6 @@
|
|||||||
|
{
|
||||||
|
$Id$
|
||||||
|
}
|
||||||
UNIT Unzip;
|
UNIT Unzip;
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
|
||||||
@ -715,7 +718,7 @@ BEGIN
|
|||||||
b := ( n = w ) AND ( ioresult = 0 ); {True-> alles ok}
|
b := ( n = w ) AND ( ioresult = 0 ); {True-> alles ok}
|
||||||
UpdateCRC ( iobuf ( pointer ( @slide [ 0 ] ) ^ ), w );
|
UpdateCRC ( iobuf ( pointer ( @slide [ 0 ] ) ^ ), w );
|
||||||
{--}
|
{--}
|
||||||
IF ( b = TRUE ) AND ( @ZipReport <> NIL ) {callback report for high level functions}
|
IF ( b = TRUE ) AND Assigned(ZipReport) {callback report for high level functions}
|
||||||
THEN BEGIN
|
THEN BEGIN
|
||||||
WITH ZipRec DO BEGIN
|
WITH ZipRec DO BEGIN
|
||||||
Status := file_unzipping;
|
Status := file_unzipping;
|
||||||
@ -2080,7 +2083,7 @@ BEGIN
|
|||||||
b := ( n = write_ptr ) AND ( ioresult = 0 ); {True-> alles ok}
|
b := ( n = write_ptr ) AND ( ioresult = 0 ); {True-> alles ok}
|
||||||
UpdateCRC ( iobuf ( pointer ( @writebuf^ [ 0 ] ) ^ ), write_ptr );
|
UpdateCRC ( iobuf ( pointer ( @writebuf^ [ 0 ] ) ^ ), write_ptr );
|
||||||
{--}
|
{--}
|
||||||
IF ( b = TRUE ) AND ( @ZipReport <> NIL ) {callback report for high level functions}
|
IF ( b = TRUE ) AND Assigned(ZipReport) {callback report for high level functions}
|
||||||
THEN BEGIN
|
THEN BEGIN
|
||||||
WITH ZipRec DO BEGIN
|
WITH ZipRec DO BEGIN
|
||||||
Status := file_unzipping;
|
Status := file_unzipping;
|
||||||
@ -2912,6 +2915,12 @@ PROCEDURE DummyReport ( Retcode : longint;Rec : pReportRec );
|
|||||||
BEGIN
|
BEGIN
|
||||||
END;
|
END;
|
||||||
|
|
||||||
|
FUNCTION DummyQuestion( Rec : pReportRec ) : Boolean;
|
||||||
|
{$ifdef Windows}{$ifdef win32}STDCALL;{$else}EXPORT;{$endif}{$endif}
|
||||||
|
{dummy question procedure}
|
||||||
|
begin
|
||||||
|
DummyQuestion:=true;
|
||||||
|
end;
|
||||||
|
|
||||||
FUNCTION Matches ( s : String;CONST main : string ) : Boolean;
|
FUNCTION Matches ( s : String;CONST main : string ) : Boolean;
|
||||||
{rudimentary matching function;
|
{rudimentary matching function;
|
||||||
@ -2971,6 +2980,11 @@ VAR
|
|||||||
s : string [ 255 ];
|
s : string [ 255 ];
|
||||||
|
|
||||||
BEGIN
|
BEGIN
|
||||||
|
IF not assigned(Report) THEN
|
||||||
|
Report := DummyReport;
|
||||||
|
IF not assigned(Question) THEN
|
||||||
|
Question := DummyQuestion;
|
||||||
|
|
||||||
Count := 0;
|
Count := 0;
|
||||||
rSize := 0;
|
rSize := 0;
|
||||||
cSize := 0;
|
cSize := 0;
|
||||||
@ -2986,7 +3000,6 @@ BEGIN
|
|||||||
|
|
||||||
FillChar ( ZipRec, Sizeof ( ZipRec ), #0 );
|
FillChar ( ZipRec, Sizeof ( ZipRec ), #0 );
|
||||||
|
|
||||||
IF @Report <> NIL THEN {start of ZIP file}
|
|
||||||
WITH ZipRec DO BEGIN
|
WITH ZipRec DO BEGIN
|
||||||
IsaDir := FALSE;
|
IsaDir := FALSE;
|
||||||
strcopy ( FileName, thename );
|
strcopy ( FileName, thename );
|
||||||
@ -2997,7 +3010,6 @@ BEGIN
|
|||||||
Report ( Status, @ZipRec );
|
Report ( Status, @ZipRec );
|
||||||
END; {start of ZIP file}
|
END; {start of ZIP file}
|
||||||
|
|
||||||
IF @Report = NIL THEN Report := DummyReport;
|
|
||||||
ZipReport := Report;
|
ZipReport := Report;
|
||||||
|
|
||||||
rc := getfirstinzip ( thename, r );
|
rc := getfirstinzip ( thename, r );
|
||||||
@ -3033,8 +3045,7 @@ BEGIN
|
|||||||
ZipReport ( Status, @ZipRec );
|
ZipReport ( Status, @ZipRec );
|
||||||
END; { start of file }
|
END; { start of file }
|
||||||
|
|
||||||
IF ( @Question <> NIL )
|
IF ( FileExists ( StrPas ( buf ) ) )
|
||||||
AND ( FileExists ( StrPas ( buf ) ) )
|
|
||||||
AND ( Question ( @ZipRec ) = FALSE )
|
AND ( Question ( @ZipRec ) = FALSE )
|
||||||
THEN BEGIN
|
THEN BEGIN
|
||||||
rc := unzip_ok; { we are okay }
|
rc := unzip_ok; { we are okay }
|
||||||
@ -3124,12 +3135,13 @@ BEGIN
|
|||||||
rSize := 0;
|
rSize := 0;
|
||||||
cSize := 0;
|
cSize := 0;
|
||||||
Viewzip := unzip_MissingParameter;
|
Viewzip := unzip_MissingParameter;
|
||||||
IF ( StrPas ( SourceZipFile ) = '' ) OR ( @Report = NIL ) THEN Exit;
|
IF ( StrPas ( SourceZipFile ) = '' ) or
|
||||||
|
not assigned(Report) THEN
|
||||||
|
exit;
|
||||||
|
|
||||||
Strcopy ( thename, SourceZipFile );
|
Strcopy ( thename, SourceZipFile );
|
||||||
ViewZip := unzip_NotZipFile;
|
ViewZip := unzip_NotZipFile;
|
||||||
IF NOT iszip ( thename ) THEN exit;
|
IF NOT iszip ( thename ) THEN exit;
|
||||||
IF @Report = NIL THEN Report := DummyReport;
|
|
||||||
FillChar ( ZipRec, Sizeof ( ZipRec ), #0 );
|
FillChar ( ZipRec, Sizeof ( ZipRec ), #0 );
|
||||||
|
|
||||||
rc := getfirstinzip ( thename, r );
|
rc := getfirstinzip ( thename, r );
|
||||||
@ -3209,13 +3221,13 @@ END; { UnZipSize }
|
|||||||
{***************************************************************************}
|
{***************************************************************************}
|
||||||
FUNCTION SetUnZipReportProc ( aProc : UnzipReportProc ) : Pointer;
|
FUNCTION SetUnZipReportProc ( aProc : UnzipReportProc ) : Pointer;
|
||||||
BEGIN
|
BEGIN
|
||||||
SetUnZipReportProc := @ZipReport; {save and return original}
|
SetUnZipReportProc := ZipReport; {save and return original}
|
||||||
ZipReport := aProc;
|
ZipReport := aProc;
|
||||||
END; { SetUnZipReportProc }
|
END; { SetUnZipReportProc }
|
||||||
{***************************************************************************}
|
{***************************************************************************}
|
||||||
FUNCTION SetUnZipQuestionProc ( aProc : UnzipQuestionProc ) : Pointer;
|
FUNCTION SetUnZipQuestionProc ( aProc : UnzipQuestionProc ) : Pointer;
|
||||||
BEGIN
|
BEGIN
|
||||||
SetUnZipQuestionProc := @ZipQuestion; {save and return original}
|
SetUnZipQuestionProc := ZipQuestion; {save and return original}
|
||||||
ZipQuestion := aProc;
|
ZipQuestion := aProc;
|
||||||
END; { SetUnZipQuestionProc }
|
END; { SetUnZipQuestionProc }
|
||||||
{***************************************************************************}
|
{***************************************************************************}
|
||||||
@ -3243,3 +3255,11 @@ END;
|
|||||||
BEGIN
|
BEGIN
|
||||||
ChfUnzip_Init;
|
ChfUnzip_Init;
|
||||||
END.
|
END.
|
||||||
|
{
|
||||||
|
$Log$
|
||||||
|
Revision 1.1 1999-02-19 16:45:26 peter
|
||||||
|
* moved to fpinst/ directory
|
||||||
|
+ makefile
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -1,3 +1,6 @@
|
|||||||
|
{
|
||||||
|
$Id$
|
||||||
|
}
|
||||||
unit UnzipDLL;
|
unit UnzipDLL;
|
||||||
|
|
||||||
{$Cdecl+,AlignRec-,OrgName+}
|
{$Cdecl+,AlignRec-,OrgName+}
|
||||||
@ -170,4 +173,10 @@ begin
|
|||||||
Halt (255);
|
Halt (255);
|
||||||
end;
|
end;
|
||||||
end.
|
end.
|
||||||
|
{
|
||||||
|
$Log$
|
||||||
|
Revision 1.1 1999-02-19 16:45:26 peter
|
||||||
|
* moved to fpinst/ directory
|
||||||
|
+ makefile
|
||||||
|
|
||||||
|
}
|
@ -1,3 +1,6 @@
|
|||||||
|
{
|
||||||
|
$Id$
|
||||||
|
}
|
||||||
UNIT ziptypes;
|
UNIT ziptypes;
|
||||||
{
|
{
|
||||||
Type definitions for UNZIP
|
Type definitions for UNZIP
|
||||||
@ -197,4 +200,10 @@ BEGIN
|
|||||||
END;
|
END;
|
||||||
|
|
||||||
END.
|
END.
|
||||||
|
{
|
||||||
|
$Log$
|
||||||
|
Revision 1.1 1999-02-19 16:45:26 peter
|
||||||
|
* moved to fpinst/ directory
|
||||||
|
+ makefile
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user