liboqs/patches/apply-patch.sh
smashra 160a739a39 Patch-based approach for adding NewHope AVX2 (#176)
* Original newhope avx2 code and a patchfile

* Integrate AVX2 into kex

* Makefile.am is needed whether the algorithm is enabled or not

* Updated patch

style-check

update

update

Life is painful

update

* Update Documentation - How to integrate external implementations

* Remove binary files

* brew update for mac

* Makefile.am included

* Remove patch functionality from travis test

* Revert patch

* Rename files.

* Rename file.
2017-12-11 21:33:41 -05:00

14 lines
279 B
Bash
Executable File

#!/bin/bash
for dir in $1;
do
patchfiles=`find ./patches/$dir -type f -name "*.patch"`
for patchfile in $patchfiles;
do
git apply --check $patchfile >/dev/null 2>&1
if [ $? -eq 0 ];then
git -c core.whitespace=cr-at-eol apply $patchfile >/dev/null 2>&1
fi
done
done