diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2020-03-13 09:40:00 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2020-03-13 09:40:00 +0000 |
commit | 074009c945cc68a322e2a4bc11a6f982bc720011 (patch) | |
tree | 1c67356e9f5d127a8e483d1ac9e3aa265cdceb62 /devel/electron7/files/apply-electron-patches.sh | |
parent | - Update WWW (diff) |
Add electron7 7.1.14, build cross-platform desktop apps with JavaScript,
HTML, and CSS.
Notes
Notes:
svn path=/head/; revision=528341
Diffstat (limited to 'devel/electron7/files/apply-electron-patches.sh')
-rw-r--r-- | devel/electron7/files/apply-electron-patches.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/electron7/files/apply-electron-patches.sh b/devel/electron7/files/apply-electron-patches.sh new file mode 100644 index 000000000000..17365d1f06b1 --- /dev/null +++ b/devel/electron7/files/apply-electron-patches.sh @@ -0,0 +1,20 @@ +#! /bin/sh + +PATH=/bin:/usr/bin:/usr/local/bin + +PATCH_CMD="git apply" +#PATCH_FLAGS="--numstat --check" # for debugging +PATCH_FLAGS="--verbose --reject" + +WRKSRC=$1 +PATCH_CONF=${WRKSRC}/electron/patches/config.json + +PATCHD_REPOD_PAIRS=$(sed -e '1d; $d; /^$/d; s/[",]//g; s/: */:/' "${PATCH_CONF}") +for prp in ${PATCHD_REPOD_PAIRS}; do + pd=$(echo "${prp}" | awk -F: '{print $1}' | sed -e 's/src/./') + rd=$(echo "${prp}" | awk -F: '{print $2}' | sed -e 's/src/./') + (cd "${WRKSRC}/${rd}" && \ + while read -r p; do + ${PATCH_CMD} ${PATCH_FLAGS} "${WRKSRC}/${pd}/${p}" + done < "${WRKSRC}/${pd}/.patches") +done |