Skip to content
Permalink
Browse files

Fix permissions under Linux, so we're now able to enter required dire…

…ctories.
  • Loading branch information
valerius2k committed Jun 19, 2019
1 parent 47f9596 commit 8a8a58ae11540ef513c81fdd4a9cb48f91b70564
Showing 4,334 changed files with 253 additions and 182 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -58,7 +58,7 @@
#define getdisk get_drive
#define assert(a)
#else
#include <DOS.h>
#include <dos.h>
#include <assert.h>
#include <ctype.h>
#include <string.h>
@@ -1,87 +1,13 @@
##!dmake -f

# main goal of this Makefile:
# ASSIGN

# source in the Free-Dos initialization
.INCLUDE .FIRST .IGNORE : "fd_init.mk" "../fd_init.mk" "../../fd_init.mk"

#
#Project related settings
#
.IF $(_COMPTYPE) == MC
PRG = assign.com
.ELSE
PRG = assign.exe
.ENDIF
SRC = assign.c
OBJ = assign.obj
HDR = asgn_asc.c yerror.h
MYCFLAGS = # TEST=YES
MSGLIB !:= msg.lib
MSGDCL !:= yerror.h
LDLIBS = $(MSGLIB) $(FDLIB)\$(_MODEL)_$(LNG).lib $(FDLIB)\Suppl_$(_MODEL).lib

#
#First target
# A Makefile for APPEND
# (c) osFree project,
# author, date
#
all : $(CFG) $(PRG) # copy library into Free-Dos library dir

.INIT : $(CFG) tags refs errlist # Will make the utilizing files

#
#C initialization file
#
.IF $(CFG)
# Compiler configuration file, for Borland C only
# options: no Windows, no RTTI, use pre-compiled headers, no floating point

CONFIGURATION = -W- \
-X- \
-H \
-I.;$(INCDIR) \
-L.;$(LIBDIR) \
-H=assign.csm \
-f- \
-ff- \
-m$(_MODEL)

.IF $(_COMPILER) != BC31
CONFIGURATION += -RT-
.ENDIF

$(CFG) : $(MAKEFILE:s/-f//)
Cat $(mktmp $(CONFIGURATION:t"\n")\n) >$@

.ENDIF


$(PRG) .SWAP : $(MSGLIB) $(OBJ) asgn_asc.c
.IF $(_COMPTYPE) == MC
$(LD) $(LDCOMFLAG) $(LDFLAGS) $(MCDIR)\Pc86rl_t @$(mktmp $(OBJ:t" ") \n), $@, NUL,@$(mktmp $(LDLIBS:t" ") $(MCDIR)\Mclib\n)
.ELSE
$(CC) -e$@ @$(mktmp $(OBJ:t"\n") $(LDLIBS:t"\n")\n)
.ENDIF

asgn_tsr.com : asgn_tsr.obj
$(LD) $(LDCOMFLAG) $< , $@;

asgn_asc.c : asgn_tsr.com
$(FDBIN)\Bin2c module $< >$@

#MAKEDEP START
assign.obj : assign.c \
asgn_asc.c \
yerror.h
#MAKEDEP STOP

ci :: $(shell dir /b *.1 *.1g)

clean ::
$(RM) /s asgn_tsr.obj asgn_tsr.com asgn_tsr.map assign.com assign.exe

clobber ::
$(RM) /s asgn_asc.c
PROJ = assign
TRGT = $(PROJ).com
DESC = Binary comparison of files
srcfiles = $(p)assign$(e)
COM = 1

# source in the Free-Dos standard targets
.INCLUDE .FIRST .IGNORE : fd_exit.mk ../fd_exit.mk ../../fd_exit.mk
!include $(%ROOT)/mk/appsdos.mk
0 DOS/CMD/attrib/attrib.c 100755 → 100644
Empty file.
Empty file.
Empty file.
0 DOS/CMD/attrib/help/attrib.txt 100755 → 100644
Empty file.
0 DOS/CMD/attrib/makefile 100755 → 100644
Empty file.
0 DOS/CMD/attrib/malloc.inc 100755 → 100644
Empty file.
0 DOS/CMD/attrib/setupio.inc 100755 → 100644
Empty file.
0 DOS/CMD/attrib/setvbuf.inc 100755 → 100644
Empty file.
0 DOS/CMD/attrib/stdio.inc 100755 → 100644
Empty file.
0 DOS/CMD/attrib/tcc2wat.c 100755 → 100644
Empty file.
0 DOS/CMD/attrib/tcc2wat.h 100755 → 100644
Empty file.
0 DOS/CMD/attrib/types.h 100755 → 100644
Empty file.
0 DOS/CMD/basic/makefile 100755 → 100644
Empty file.
0 DOS/CMD/command/bin/28.com 100755 → 100644
Empty file.
0 DOS/CMD/command/bin/50.com 100755 → 100644
Empty file.
0 DOS/CMD/command/bin/fdcom.ico 100755 → 100644
Empty file.
0 DOS/CMD/command/cmd/chcp.c 100755 → 100644
Empty file.
0 DOS/CMD/command/cmd/exit2.c 100755 → 100644
Empty file.
0 DOS/CMD/command/cmd/lfnfor.c 100755 → 100644
Empty file.
9 DOS/CMD/command/cmd/tcc2wat.c 100755 → 100644
@@ -28,6 +28,11 @@
* Most graphics functions are missing; right now I'm focusing on text and regular functions
*/
#include <dos.h>

#ifdef NAME_MAX
#undef NAME_MAX
#endif

#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
@@ -40,7 +45,11 @@
#include <io.h>
#include <graph.h>
#include <errno.h>
#ifndef LINUX
#include <direct.h>
#else
#include <dirent.h>
#endif
#include "tcc2wat.h"
#undef _matherr

0 DOS/CMD/command/config.std 100755 → 100644
Empty file.
0 DOS/CMD/command/docs/cmt10.txt 100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
0 DOS/CMD/command/docs/loadhigh.txt 100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
0 DOS/CMD/command/docs/pt_br/readme 100755 → 100644
Empty file.
0 DOS/CMD/command/include/cswap.h 100755 → 100644
Empty file.
Empty file.
4 DOS/CMD/command/include/tcc2wat.h 100755 → 100644
@@ -19,7 +19,11 @@
#ifdef __WATCOMC__
#include <graph.h>
#include <time.h>
#ifndef LINUX
#include <direct.h>
#else
#include <dirent.h>
#endif

#define coreleft() 0L
#define farcoreleft() 0L
0 DOS/CMD/command/lib/absfile.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/almemblk.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/app_get.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/app_set.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/c16.mac 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/critend.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/critrchk.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/ctxt_mkb.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/dfn_err.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/dispexit.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/fdsattr.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/kswap_c.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/lfnfuncs.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/makefile 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/myperror.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/readcmd.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/res_vald.c 100755 → 100644
Empty file.
10 DOS/CMD/command/lib/session.c 100755 → 100644
@@ -33,11 +33,11 @@
#include <mcb.h>
#include <environ.h>

#include "..\err_fcts.h"
#include "..\include\command.h"
#include "..\include\context.h"
#include "..\include\crossjmp.h"
#include "..\include\misc.h"
#include "../err_fcts.h"
#include "../include/command.h"
#include "../include/context.h"
#include "../include/crossjmp.h"
#include "../include/misc.h"

static unsigned ctxtSavedSize;
static void *ctxtSavePtr;
0 DOS/CMD/command/lib/spfnam.c 100755 → 100644
Empty file.
9 DOS/CMD/command/lib/tcc2wat.c 100755 → 100644
@@ -28,6 +28,11 @@
* Most graphics functions are missing; right now I'm focusing on text and regular functions
*/
#include <dos.h>

#ifdef NAME_MAX
#undef NAME_MAX
#endif

#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
@@ -40,7 +45,11 @@
#include <io.h>
#include <graph.h>
#include <errno.h>
#ifndef LINUX
#include <direct.h>
#else
#include <dirent.h>
#endif
#include "tcc2wat.h"
#undef _matherr

0 DOS/CMD/command/lib/truepath.c 100755 → 100644
Empty file.
0 DOS/CMD/command/lib/truncate.c 100755 → 100644
Empty file.
@@ -15,7 +15,11 @@ DIRS = strings criter cmd suppl lib shell utils
TARGETS=$(PROJ).com

$(PROJ).com: infores
copy /b $(PATH)shell$(SEP)command.exe + $(PATH)infores + $(PATH)criter$(SEP)criter1$(SEP)criter1.exe + $(PATH)criter$(SEP)criter.exe + $(PATH)strings$(SEP)strings.dat $(PATH)command.com
!ifneq ENV LINUX
@copy /b $(PATH)shell$(SEP)command.exe + $(PATH)infores + $(PATH)criter$(SEP)criter1$(SEP)criter1.exe + $(PATH)criter$(SEP)criter.exe + $(PATH)strings$(SEP)strings.dat $(PATH)command.com
!else
@cat $(PATH)shell$(SEP)command.exe $(PATH)infores $(PATH)criter$(SEP)criter1$(SEP)criter1.exe $(PATH)criter$(SEP)criter.exe $(PATH)strings$(SEP)strings.dat >$(PATH)command.com
!endif

infores:
$(PATH)utils$(SEP)mkinfres.exe $(PATH)infores $(PATH)shell$(SEP)command.wmp $(PATH)shell$(SEP)command.exe
@$(PATH)utils$(SEP)mkinfres.exe $(PATH)infores $(PATH)shell$(SEP)command.wmp $(PATH)shell$(SEP)command.exe
Empty file.
Empty file.
Empty file.
@@ -18,7 +18,7 @@
//#include <dir.h>
#include <fcntl.h>
#include <io.h>
#include <sys\stat.h>
#include <sys/stat.h>

#include <dfn.h>
#include "../include/lfnfuncs.h"
0 DOS/CMD/command/shell/cswap.asm 100755 → 100644
Empty file.
0 DOS/CMD/command/shell/cswapc.c 100755 → 100644
Empty file.
9 DOS/CMD/command/shell/tcc2wat.c 100755 → 100644
@@ -28,6 +28,11 @@
* Most graphics functions are missing; right now I'm focusing on text and regular functions
*/
#include <dos.h>

#ifdef NAME_MAX
#undef NAME_MAX
#endif

#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
@@ -40,7 +45,11 @@
#include <io.h>
#include <graph.h>
#include <errno.h>
#ifndef LINUX
#include <direct.h>
#else
#include <dirent.h>
#endif
#include "tcc2wat.h"
#undef _matherr

Empty file.
0 DOS/CMD/command/shell/xms_2e.asm 100755 → 100644
Empty file.
0 DOS/CMD/command/shell/xms_brk.asm 100755 → 100644
Empty file.
Empty file.
0 DOS/CMD/command/strings/CHANGED 100755 → 100644
Empty file.
0 DOS/CMD/command/strings/dutch.err 100755 → 100644
Empty file.
0 DOS/CMD/command/strings/dutch.lng 100755 → 100644
Empty file.
Empty file.
Empty file.
@@ -10,7 +10,10 @@ DIRS = critstrs
#defines object file names in format objname.$(O)
srcfiles = $(p)fixstrs$(e) $(p)porting$(e) # $(p)..$(SEP)tcc2wat$(e)
# defines additional options for C compiler
ADD_COPT = -dMODEL=l -d2 -db -i=$(MYDIR)..$(SEP)include -i=$(MYDIR)..$(SEP)suppl
!ifeq %OS LINUX
ADD_COPT = -dLINUX
!endif
ADD_COPT += -dMODEL=l -d2 -db -i=$(MYDIR)..$(SEP)include -i=$(MYDIR)..$(SEP)suppl
ADD_LINKOPT = debug all
LANG = russian
LNG = $(MYDIR)$(LANG).lng
@@ -20,12 +23,12 @@ INSTALL = strings.lib

!include $(%ROOT)/mk/tools.mk

TARGETS = $(PATH)$(PROJ) $(PATH)strings.h subdirs $(PATH)strings.lib
TARGETS = $(PATH)$(PROJ).exe $(PATH)strings.h subdirs $(PATH)strings.lib

$(PATH)$(PROJ):
$(PATH)$(PROJ).exe:

$(PATH)strings.h : $(MYDIR)default.lng $(PATH)$(PROJ).exe
@$(PATH)fixstrs.exe /lib /dir $(PATH) $(LNG)
@$(PATH)$(PROJ).exe /lib /dir $(PATH) $(LNG)

$(PATH)strings.lib: $(PATH)makefile.mk
@$(MAKE) $(MAKEOPT) -f $< lib
Empty file.
Empty file.
0 DOS/CMD/command/strings/pt_br.err 100755 → 100644
Empty file.
0 DOS/CMD/command/strings/pt_br.lng 100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
9 DOS/CMD/command/strings/tcc2wat.c 100755 → 100644
@@ -28,6 +28,11 @@
* Most graphics functions are missing; right now I'm focusing on text and regular functions
*/
#include <dos.h>

#ifdef NAME_MAX
#undef NAME_MAX
#endif

#include <conio.h>
#include <stdlib.h>
#include <stdio.h>
@@ -40,7 +45,11 @@
#include <io.h>
#include <graph.h>
#include <errno.h>
#ifndef LINUX
#include <direct.h>
#else
#include <dirent.h>
#endif
#include "tcc2wat.h"
#undef _matherr

0 DOS/CMD/command/strings/ukr.err 100755 → 100644
Empty file.
0 DOS/CMD/command/strings/ukr.lng 100755 → 100644
Empty file.
0 DOS/CMD/command/strings/yu437.err 100755 → 100644
Empty file.
0 DOS/CMD/command/strings/yu437.lng 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/algnbyte.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/algndflt.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/appname.h 100755 → 100644
Empty file.
Empty file.
0 DOS/CMD/command/suppl/cntry.h 100755 → 100644
Empty file.
4 DOS/CMD/command/suppl/dfn.h 100755 → 100644
@@ -32,7 +32,11 @@
#endif
#include <nls_f.h>
#ifdef _TC_LATER_
#ifndef LINUX
#include <direct.h>
#else
#include <dirent.h>
#endif
#endif
#ifdef __TURBOC__
#include <stddef.h>
Empty file.
0 DOS/CMD/command/suppl/dynstr.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/environ.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/errcodes.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/external.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/fmemory.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/getopt.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/mcb.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/msglib.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/msgs.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/nls.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/nls_c.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/nls_f.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/p-bc.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/p-mc.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/p-pac.h 100755 → 100644
Empty file.
4 DOS/CMD/command/suppl/p-watcom.h 100755 → 100644
@@ -20,7 +20,11 @@

#ifdef __WATCOMC__

#ifndef LINUX
#include <direct.h>
#else
#include <dirent.h>
#endif
#include <stdlib.h>
#include <stddef.h>

0 DOS/CMD/command/suppl/portable.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/psp.h 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/regproto.h 100755 → 100644
Empty file.
Empty file.
Empty file.
0 DOS/CMD/command/suppl/src/addu.c 100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
0 DOS/CMD/command/suppl/src/bugs 100755 → 100644
Empty file.
Empty file.
0 DOS/CMD/command/suppl/src/cntry.c 100755 → 100644
Empty file.
0 DOS/CMD/command/suppl/src/cntry.h 100755 → 100644
Empty file.
Empty file.
0 DOS/CMD/command/suppl/src/copying 100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
4 DOS/CMD/command/suppl/src/dfn.h 100755 → 100644
@@ -32,7 +32,11 @@
#endif
#include <nls_f.h>
#ifdef _TC_LATER_
#ifndef LINUX
#include <direct.h>
#else
#include <dirent.h>
#endif
#endif
#ifdef __TURBOC__
#include <stddef.h>
0 DOS/CMD/command/suppl/src/dfn.loc 100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
0 DOS/CMD/command/suppl/src/dir.loc 100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.

0 comments on commit 8a8a58a

Please sign in to comment.