Skip to content

Commit

Permalink
If a file is already FatELF, do a replace instead of a glue.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 4, 2009
1 parent 7a26b28 commit 2618459
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion misc/merge.sh
Expand Up @@ -22,7 +22,13 @@ time for feh in bin boot etc lib opt sbin usr var ; do find /x86/$feh -type f -e
for feh in `cat binaries-32` ; do
mkdir -p --mode=0755 `dirname "/$feh"`
if [ -f "/$feh" ]; then
./fatelf-glue tmp-fatelf "/$feh" "/x86/$feh"
FATELF=0
./fatelf-validate "/$feh" && ISFATELF=1
if [ "x$ISFATELF" = "x1" ]; then
./fatelf-replace tmp-fatelf "/$feh" "/x86/$feh"
else
./fatelf-glue tmp-fatelf "/$feh" "/x86/$feh"
fi
chmod --reference="/$feh" tmp-fatelf
mv tmp-fatelf "/$feh"
else
Expand Down

0 comments on commit 2618459

Please sign in to comment.