Lines Matching refs:patch
46 echo " ./import_bouncycastle.sh regenerate <patch/*.patch>"
47 echo " ./import_bouncycastle.sh generate <patch/*.patch> </path/to/bcprov-jdk*-*.tar.gz>"
53 die "Bouncy Castle patch directory patches/ not found"
90 declare -r patch=$1
91 shift || usage "No patch file specified."
92 if [[ $BOUNCYCASTLE_BCPROV_PATCHES == *$patch* ]]; then
95 regenerate $patch $BOUNCYCASTLE_BCPROV_DIR $BOUNCYCASTLE_BCPROV_DIR_ORIG
96 elif [[ $BOUNCYCASTLE_BCPKIX_PATCHES == *$patch* ]]; then
99 regenerate $patch $BOUNCYCASTLE_BCPKIX_DIR $BOUNCYCASTLE_BCPKIX_DIR_ORIG
101 usage "Unknown patch file $patch specified"
104 declare -r patch=$1
105 shift || usage "No patch file specified."
109 if [[ $BOUNCYCASTLE_BCPROV_PATCHES == *$patch* ]]; then
110 generate $patch $bcprov_tar $BOUNCYCASTLE_BCPROV_DIR $BOUNCYCASTLE_BCPROV_DIR_ORIG bcprov "$BOUNCYCASTLE_BCPROV_PATCHES" "$NEEDED_BCPROV_SOURCES" "$UNNEEDED_BCPROV_SOURCES"
111 elif [[ $BOUNCYCASTLE_BCPKIX_PATCHES == *$patch* ]]; then
112 generate $patch $bcpkix_tar $BOUNCYCASTLE_BCPKIX_DIR $BOUNCYCASTLE_BCPKIX_DIR_ORIG bcpkix "$BOUNCYCASTLE_BCPKIX_PATCHES" "$NEEDED_BCPKIX_SOURCES" "$UNNEEDED_BCPKIX_SOURCES"
114 usage "Unknown patch file $patch specified"
151 declare -r patch=$1
155 generatepatch $patch $bouncycastle_dir $bouncycastle_dir_orig
179 declare -r patch=$1
198 generatepatch $patch $bouncycastle_dir $bouncycastle_dir_orig
242 echo "Applying patch $i"
243 patch -p1 --merge < ../$i || die "Could not apply patches/$i. Fix source and run: $0 regenerate $i"
245 # make sure no unneeded sources got into the patch
249 echo Unneeded source $s restored by patch $i
258 # Cleanup patch output
265 declare -r patch=$1
269 # Cleanup stray files before generating patch
273 rm -f $patch
274 LC_ALL=C TZ=UTC0 diff -Naur $bouncycastle_dir_orig $bouncycastle_dir >> $patch && die "ERROR: No diff for patch $path in file $i"
275 echo "Generated patch $patch"