misc/merge.sh
changeset 68 79f33789900d
parent 67 944bb02f0743
child 69 eac4c3810ee4
equal deleted inserted replaced
67:944bb02f0743 68:79f33789900d
    18 
    18 
    19 #time for feh in bin boot etc lib opt sbin usr var ; do find /$feh -type f -exec ./iself {} \; ; done |perl -w -pi -e 's/\A\///;' |grep -v "usr/lib32/" |sort |uniq > ./binaries-64
    19 #time for feh in bin boot etc lib opt sbin usr var ; do find /$feh -type f -exec ./iself {} \; ; done |perl -w -pi -e 's/\A\///;' |grep -v "usr/lib32/" |sort |uniq > ./binaries-64
    20 time for feh in bin boot etc lib opt sbin usr var ; do find /x86/$feh -type f -exec ./iself {} \; ; done |perl -w -pi -e 's/\A\/x86\///;' |grep -v "usr/lib64" |sort |uniq > ./binaries-32
    20 time for feh in bin boot etc lib opt sbin usr var ; do find /x86/$feh -type f -exec ./iself {} \; ; done |perl -w -pi -e 's/\A\/x86\///;' |grep -v "usr/lib64" |sort |uniq > ./binaries-32
    21 
    21 
    22 for feh in `cat binaries-32` ; do
    22 for feh in `cat binaries-32` ; do
    23     mkdir -p --mode=0755 `dirname $feh`
    23     mkdir -p --mode=0755 `dirname "/$feh"`
    24     if [ -f "/$feh" ]; then
    24     if [ -f "/$feh" ]; then
    25         ./fatelf-glue tmp-fatelf "/$feh" "/x86/$feh"
    25         ./fatelf-glue tmp-fatelf "/$feh" "/x86/$feh"
    26         chmod --reference="/$feh" tmp-fatelf
    26         chmod --reference="/$feh" tmp-fatelf
    27         mv tmp-fatelf "/$feh"
    27         mv tmp-fatelf "/$feh"
    28     else
    28     else