diff --git a/ChangeLog b/ChangeLog index 61bf8e773..d83d10a65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-01-11 Vladimir Serbinenko + + * autogen.sh: Do not try to delete nonexistant files. + * util/import_gcrypth.sed: Add some missing header removals. + 2013-01-12 Colin Watson Clean up dangling references to grub-setup. diff --git a/autogen.sh b/autogen.sh index 55240833f..7a4b5c8be 100755 --- a/autogen.sh +++ b/autogen.sh @@ -14,13 +14,19 @@ python util/import_unicode.py unicode/UnicodeData.txt unicode/BidiMirroring.txt echo "Importing libgcrypt..." python util/import_gcry.py grub-core/lib/libgcrypt/ grub-core sed -n -f util/import_gcrypth.sed < grub-core/lib/libgcrypt/src/gcrypt.h.in > include/grub/gcrypt/gcrypt.h -rm include/grub/gcrypt/g10lib.h -rm -rf grub-core/lib/libgcrypt-grub/mpi/generic +if [ -f include/grub/gcrypt/g10lib.h ]; then + rm include/grub/gcrypt/g10lib.h +fi +if [ -d grub-core/lib/libgcrypt-grub/mpi/generic ]; then + rm -rf grub-core/lib/libgcrypt-grub/mpi/generic +fi ln -s ../../../grub-core/lib/libgcrypt-grub/src/g10lib.h include/grub/gcrypt/g10lib.h cp -R grub-core/lib/libgcrypt/mpi/generic grub-core/lib/libgcrypt-grub/mpi/generic for x in mpi-asm-defs.h mpih-add1.c mpih-sub1.c mpih-mul1.c mpih-mul2.c mpih-mul3.c mpih-lshift.c mpih-rshift.c; do - rm grub-core/lib/libgcrypt-grub/mpi/"$x" + if [ -f grub-core/lib/libgcrypt-grub/mpi/"$x" ]; then + rm grub-core/lib/libgcrypt-grub/mpi/"$x" + fi ln -s generic/"$x" grub-core/lib/libgcrypt-grub/mpi/"$x" done diff --git a/util/import_gcrypth.sed b/util/import_gcrypth.sed index 1cf31bd9a..dead8e60e 100644 --- a/util/import_gcrypth.sed +++ b/util/import_gcrypth.sed @@ -1,7 +1,12 @@ /^#@INSERT_SYS_SELECT_H@/ d /^@FALLBACK_SOCKLEN_T@/ d -/^#include / d -/^#include / d -/^#include / s,#include ,#include , +/^# *include / d +/^# *include / d +/^# *include / d +/^# *include / d +/^# *include / d +/^# *include / d +/^# *include / d +/^# *include / s,#include ,#include , s,_gcry_mpi_invm,gcry_mpi_invm,g p \ No newline at end of file