Lines Matching refs:patch
52 echo " ./import_scrypt.sh regenerate <patch/*.patch>"
53 echo " ./import_scrypt.sh generate <patch/*.patch> </path/to/scrypt-*.tar.gz>"
59 die "scrypt patch directory patches/ not found"
90 declare -r patch=$1
91 shift || usage "No patch file specified."
94 regenerate $patch
96 declare -r patch=$1
97 shift || usage "No patch file specified."
100 generate $patch $tar
383 declare -r patch=$1
385 generatepatch $patch
389 declare -r patch=$1
393 applypatches $SCRYPT_DIR_ORIG $patch
402 generatepatch $patch
460 echo "Applying patch $i"
461 patch -p1 --merge < ../patches/$i || die "Could not apply patches/$i. Fix source and run: $0 regenerate patches/$i"
463 echo "Skiping patch $i"
468 # Cleanup patch output
475 declare -r patch=$1
477 # Cleanup stray files before generating patch
481 declare -r variable_name=SCRYPT_PATCHES_`basename $patch .patch | sed s/-/_/`_SOURCES
484 rm -f $patch
485 touch $patch
487 LC_ALL=C TZ=UTC0 diff -aup $SCRYPT_DIR_ORIG/$i $SCRYPT_DIR/$i >> $patch && die "ERROR: No diff for patch $path in file $i"
489 echo "Generated patch $patch"
490 echo "NOTE To make sure there are not unwanted changes from conflicting patches, be sure to review the generated patch."