From 6ab5e82fc31ea3561317f62b5f56176d609aab28 Mon Sep 17 00:00:00 2001 From: Brian Smith Date: Thu, 7 Sep 2000 22:00:52 +0000 Subject: [PATCH] Somehow the packinst.c and directory got removed from the archive, so I included the version from the OS/2 installer which probably has some fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/Install/packinst/packinst.c | 190 ++++++++++++++++++++++++++++++ utils/Install/sfxace/sfx.RES | Bin 13744 -> 18692 bytes 2 files changed, 190 insertions(+) create mode 100644 utils/Install/packinst/packinst.c diff --git a/utils/Install/packinst/packinst.c b/utils/Install/packinst/packinst.c new file mode 100644 index 0000000000..cad4a82fa6 --- /dev/null +++ b/utils/Install/packinst/packinst.c @@ -0,0 +1,190 @@ +/* $Id$ */ + +/* + * include.c (c) 1998,1999 Brian Smith + */ + +#include +#include +#include +#include +#include +#include +#include + +extern int files; + +FILE *cfgfile, *installfile; +char *INSTALLER_APPLICATION; +char *INSTALLER_VERSION; +char *INSTALLER_TITLE; +char *INSTALLER_PATH; +char *INSTALLER_FOLDER; +char *INSTALLER_PROGRAM; +char *INSTALLER_SHADOW; +char *INSTALLER_OBJECT; +char *INSTALLER_SETS; +char *INSTALLER_SYSVAR; +char *INSTALLER_SYSLINE; +char *INSTALLER_PACKAGES[20]; +char *INSTALLER_CONFIRM_WPS; +char *INSTALLER_CONFIRM_CONFIGSYS; +char *INSTALLER_CONFIRM_OVERWRITE; +int INSTALLER_BITMAP_WIDTH; +int INSTALLER_BITMAP_HEIGHT; +int INSTALLER_PACKAGE_COUNT=0; + +int packagefiles[20]; +char *packagefilename[20]; + +void resetglobals(void); + +int include_unpack(char *aname); + +void append_file(char *filename) +{ + FILE *appendfile; + int amnt; + char buffer[512]; + + if((appendfile = fopen(filename, "rb"))==NULL) + { + printf("Error opening %s for reading!\n", filename); + exit(3); + } + while(!feof(appendfile)) + { + amnt = fread(buffer, 1, 512, appendfile); + fwrite(buffer, 1, amnt, installfile); + } + fclose(appendfile); +} + +void getline(FILE *f, char *entry, char *entrydata) +{ +char in[4096]; +int z; + + memset(in, 0, 4096); + fgets(in, 4095, f); + + if(in[strlen(in)-1] == '\n') + in[strlen(in)-1] = 0; + + if(in[0] != '#') + { + for(z=0;z5v$A5{Omy z;L(J?pvHqF9@vxd=wD!Z^h8Qx(k7aW-<#bHOADd;nzwJ>%)Zxo-+XVj^8D3Kq;e-4 z{~0Ap6OmFK&@SggX4P@C*PLG$ZaRgb7fpKI`93hV)AuBvjfBHu2ultmkcLx5s1r{j z*V&AwoFADXKjCo6kXnTCyT~Gp`e&B*eWgVh2-=fU&=!*LUm-D@K$PNwumenpBfS-N zj*n4}TOz9Zfnx|-aSlh4Hy+XgP0>7lPbr7z5Wzw&Jb+QeqYk5WIE4;Efv5<8m=#b${Ia`${IbxL$e|c4UV*Yl=u8~ z*kZAyRD=C}901|P1~x;)5FSZ@S`AZGUtQR7eu$8=A82)gs0QRXco6diM(t`CwIwP5 zqs5aD%S3=x7$bv@^RfH?_}J4HA5$xFMhu&dv#@R7_u`adusFWP1H{*ykLQv(pME%U zw;jcQyQ9zvFOJza$v9pNn-N#VuL41g5IGf(H0V(O$L>t+46C%in zu^2dd7BI!&d0xjW~;Vi~3j|f!aqN4B;kGaBWuJBU0 z!f9MUbMy$+>1(K^sm_P1L(cZPBjFPQ*UhdnDF%y^DsB*!P0KF6bg8VQUEHoS4=nkh z1Ok*yVJi^BwBm-z1hIvLrEO`MCiX73x3o3B6?vNTfe(5BqX9s>5I6w67Yz7|qDfK3 ze4u>btPQ;U2SIA|Gwp+(fI>8J7W9BwQmW3jhKmyR9kyh!@2{WUBf}^3i1Rku pnL>t^KH(mj=N=gi_sBB3V*w=KE}5eH!9_aId=tb!-Og_I{RI>Emc#%6 delta 13 UcmZpf#JC}QgMr587V8FH04G!hIsgCw -- 2.47.2