mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-19 02:33:34 +00:00
when making links, if the link already exists as a directory, remove the directory first
This commit is contained in:
parent
4715db8f28
commit
cc0c168685
@ -99,7 +99,8 @@ links:
|
||||
echo $$i; o=$$i; \
|
||||
case $$i in *codegen_x86.h) o=kpx_cpu/src/cpu/jit/x86/codegen_x86.h;; esac; \
|
||||
SUB=`echo $$o | sed 's;[^/]*/;../;g' | sed 's;[^/]*$$;;'` ;\
|
||||
ln -sf "$$PREFIX$$SUB$(B2_TOPDIR)/src/$$i" src/$$o; \
|
||||
cur_link=src/$$o ;\
|
||||
if [ -d "$$cur_link" ]; then rm -rf "$$cur_link"; fi ;\
|
||||
ln -sf "$$PREFIX$$SUB$(B2_TOPDIR)/src/$$i" $$cur_link; \
|
||||
fi; \
|
||||
done; \
|
||||
ln -sf ../../../../../SheepShaver/src/Unix/config.h $(B2_TOPDIR)/src/Unix/Linux/NetDriver/config.h
|
||||
done;
|
||||
|
Loading…
x
Reference in New Issue
Block a user