From 39185fa8b36a26994d39213989ec2a4abe5bbc76 Mon Sep 17 00:00:00 2001 From: Wayne Warthen Date: Sun, 11 Jul 2021 18:45:41 -0700 Subject: [PATCH] Linux Permissions Attempt to fix the permission issue that some users are hitting with the Linux build. --- Tools/unix/bin2asm/Makefile | 2 +- Tools/unix/bst/Makefile | 2 +- Tools/unix/cpmtools/Makefile | 2 +- Tools/unix/lzsa/Makefile | 2 +- Tools/unix/uz80as/Makefile | 2 +- Tools/unix/zx/Makefile | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Tools/unix/bin2asm/Makefile b/Tools/unix/bin2asm/Makefile index 27af4088..ec98153d 100644 --- a/Tools/unix/bin2asm/Makefile +++ b/Tools/unix/bin2asm/Makefile @@ -8,7 +8,7 @@ SRC_FILES = $(wildcard *.c) OBJ_FILES = $(SRC_FILES:.c=.o) all: $(BINARY) $(DEST) - cp $(BINARY) $(DEST) + cp -p $(BINARY) $(DEST) $(DEST): mkdir -p $(DEST) diff --git a/Tools/unix/bst/Makefile b/Tools/unix/bst/Makefile index 0d269dea..d3170586 100644 --- a/Tools/unix/bst/Makefile +++ b/Tools/unix/bst/Makefile @@ -14,7 +14,7 @@ DEST = ../../$(UNAME) all: $(DEST) -for i in *.$(SUFFIX) ; do \ chmod +x $$i ; \ - cp $$i $(DEST)/$$(basename $$i .$(SUFFIX)) ; \ + cp -p $$i $(DEST)/$$(basename $$i .$(SUFFIX)) ; \ done $(DEST): diff --git a/Tools/unix/cpmtools/Makefile b/Tools/unix/cpmtools/Makefile index d630b6f2..9c850895 100644 --- a/Tools/unix/cpmtools/Makefile +++ b/Tools/unix/cpmtools/Makefile @@ -23,7 +23,7 @@ DEVICEOBJ = device_posix.o OBJECTS = cpmls cpmrm cpmcp cpmchmod cpmchattr mkfs.cpm fsck.cpm fsed.cpm all: $(OBJECTS) $(DEST) - cp $(OBJECTS) $(DEST) + cp -p $(OBJECTS) $(DEST) cpmls: cpmls.o cpmfs.o getopt.o getopt1.o $(DEVICEOBJ) $(CC) $(LDFLAGS) -o $@ cpmls.o cpmfs.o getopt.o getopt1.o $(DEVICEOBJ) diff --git a/Tools/unix/lzsa/Makefile b/Tools/unix/lzsa/Makefile index 0e0e7b28..84df4aab 100644 --- a/Tools/unix/lzsa/Makefile +++ b/Tools/unix/lzsa/Makefile @@ -33,7 +33,7 @@ OBJS += $(OBJDIR)/src/libdivsufsort/lib/trsort.o UNAME := $(shell uname) all: $(APP) - cp $(APP) ../../$(UNAME) + cp -p $(APP) ../../$(UNAME) $(APP): $(OBJS) @mkdir -p ../../bin/posix diff --git a/Tools/unix/uz80as/Makefile b/Tools/unix/uz80as/Makefile index b99987aa..1a22b386 100644 --- a/Tools/unix/uz80as/Makefile +++ b/Tools/unix/uz80as/Makefile @@ -44,7 +44,7 @@ SOURCES = \ mc6800.c all: uz80as $(DEST) - cp uz80as $(DEST) + cp -p uz80as $(DEST) $(DEST): mkdir -p $(DEST) diff --git a/Tools/unix/zx/Makefile b/Tools/unix/zx/Makefile index 995d1243..12adc60f 100644 --- a/Tools/unix/zx/Makefile +++ b/Tools/unix/zx/Makefile @@ -17,7 +17,7 @@ OBJECTS = zx.o cpmdrv.o cpmglob.o cpmparse.o cpmredir.o \ UNUSED = dirent.o all: zx $(DEST) - cp bios.bin zx $(DEST) + cp -p bios.bin zx $(DEST) $(DEST): mkdir -p $(DEST)