Skip to contentSkip to conversation

Broken-up patch #6

DISCUSSION Tommy McCabe 3 participants 4 messages May 28, 2004 – May 31, 2004

lore
Share & tools
lore
#0 lore raw

This patch makes sure there is an sbin directory to copy files into.

diff -ruN ./elks-stuff/elkscmd/disk_utils/Makefile ./elks/elkscmd/disk_utils/Makefile
--- ./elks-stuff/elkscmd/disk_utils/Makefile

2004-05-28 16:02:01.000000000 -0400

+++ ./elks/elkscmd/disk_utils/Makefile 2004-04-20
21:22:58.000000000 -0400
@@ -39,6 +39,7 @@
SPROGS=mkfs

all: $(PROGS)
+ mkdir $(TARGET_MNT)/sbin

rfs: install

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/

#1 lore raw

Tommy McCabe wrote:
[...]

Review

Quoted 2 lines

all: $(PROGS)

(quoted diff) +1 -0
+	mkdir $(TARGET_MNT)/sbin

If sbin already exists, this will fail. You want either '-mkdir' (ignore result) or 'mkdir -p' (create path if it doesn't already exist).

This has confused me many times in the past...

Signature · 1 line
[insert interesting .sig here]
#3 lore raw
In reply to Tommy McCabe

added -p to mkdir and applied. thanks.

Mike

Quoted 30 lines · Tommy McCabe

This patch makes sure there is an sbin directory to copy files into.

diff -ruN ./elks-stuff/elkscmd/disk_utils/Makefile ./elks/elkscmd/disk_utils/Makefile
--- ./elks-stuff/elkscmd/disk_utils/Makefile

2004-05-28 16:02:01.000000000 -0400

+++ ./elks/elkscmd/disk_utils/Makefile 2004-04-20
21:22:58.000000000 -0400

(quoted diff) +1 -0
@@ -39,6 +39,7 @@
 SPROGS=mkfs
 
 all:		$(PROGS)
+	mkdir $(TARGET_MNT)/sbin
 
 rfs:		install
 

__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
In reply to David Given

Greetings,

Quoted 8 lines · David Given

Tommy McCabe wrote:
[...]

Review

Quoted 2 lines

all: $(PROGS)

(quoted diff) +1 -0
+	mkdir $(TARGET_MNT)/sbin

If sbin already exists, this will fail. You want either '-mkdir' (ignore result) or 'mkdir -p' (create path if it doesn't already exist).

Fixed before applying, thanks for pointing this out.

best wishes

Mike