mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-08-19 21:37:45 +00:00
hcopy isnt recursive, but its ok because this is bash and all the rules are made up
This commit is contained in:
parent
8d537b3fb0
commit
c3563e81af
2 changed files with 26 additions and 2 deletions
|
|
@ -151,7 +151,19 @@ dd if=/dev/zero of="$UNCOMPRESSED_DMG_SHORT" bs=1M count=100
|
|||
hformat -l "Ryujinx" "$UNCOMPRESSED_DMG_SHORT"
|
||||
|
||||
hmount "$UNCOMPRESSED_DMG_SHORT"
|
||||
hcopy -r "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
|
||||
hcopy -m "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
|
||||
|
||||
find . -type f | sed 's|^\./||' | awk -F/ '
|
||||
{
|
||||
path=""
|
||||
for(i=1; i<NF; i++) {
|
||||
path = (path ? path ":" : "") $i
|
||||
print "hmkdir \":" path "\" 2>/dev/null"
|
||||
}
|
||||
target = (NF > 1 ? gensub(/\//, ":", "g", $0) : $0)
|
||||
print "hcopy -m \"./" $0 "\" \":" target "\""
|
||||
}'
|
||||
|
||||
humount "$UNCOMPRESSED_DMG_SHORT"
|
||||
rm -r "$DMG_FOLDER
|
||||
mv "$UNCOMPRESSED_DMG_SHORT" "$UNCOMPRESSED_DMG"
|
||||
|
|
|
|||
|
|
@ -147,7 +147,19 @@ dd if=/dev/zero of="$UNCOMPRESSED_DMG_SHORT" bs=1M count=100
|
|||
hformat -l "Ryujinx" "$UNCOMPRESSED_DMG_SHORT"
|
||||
|
||||
hmount "$UNCOMPRESSED_DMG_SHORT"
|
||||
hcopy -r "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
|
||||
hcopy -m "$DMG_FOLDER/" "$UNCOMPRESSED_DMG_SHORT":
|
||||
|
||||
find . -type f | sed 's|^\./||' | awk -F/ '
|
||||
{
|
||||
path=""
|
||||
for(i=1; i<NF; i++) {
|
||||
path = (path ? path ":" : "") $i
|
||||
print "hmkdir \":" path "\" 2>/dev/null"
|
||||
}
|
||||
target = (NF > 1 ? gensub(/\//, ":", "g", $0) : $0)
|
||||
print "hcopy -m \"./" $0 "\" \":" target "\""
|
||||
}'
|
||||
|
||||
humount "$UNCOMPRESSED_DMG_SHORT"
|
||||
rm -r "$DMG_FOLDER
|
||||
mv "$UNCOMPRESSED_DMG_SHORT" "$UNCOMPRESSED_DMG"
|
||||
|
|
|
|||
Loading…
Reference in a new issue