-
Notifications
You must be signed in to change notification settings - Fork 2
/
fix.sh
executable file
·27 lines (23 loc) · 1.08 KB
/
fix.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
set -xe
find . -name "*.ebuild" -type f -print0 | xargs -0 sed -i \
-e 's|BSD-2-Clause|BSD-2|g' \
-e 's|BSD-3-Clause|BSD|g' \
-e 's|dev-node/babel|node-babel/babel|g' \
-e 's|dev-node/eslint|node-eslint/eslint|g' \
-e 's|dev-node/lodash|node-lodash/lodash|g' \
-e 's|node-lodash/lodash.|node-lodash/lodash_|g' \
-e 's|dev-node/jest+|node-jest/jest+|g' \
-e 's|dev-node/jest-|node-jest/jest-|g' \
-e 's|dev-node/postcss|node-postcss/postcss|g' \
-e 's|dev-node/rollup|node-rollup/rollup|g' \
-e 's|dev-node/types+|node-types/types+|g' \
-e 's|dev-node/vue|node-vue/vue|g'
find . -name "*.xml" -type f -print0 | xargs -0 xmlstarlet ed --inplace -d '//*[not(./*) and (not(./text()) or normalize-space(./text())="")]'
find . -name "*.xml" -type f -print0 | xargs -0 sed -i \
-e 's|\.git||g' \
-e 's|"github">https://github.com/|"github">|g' \
-e 's|"github">http://github.com/|"github">|g' \
-e 's|"github">git+ssh://[email protected]/|"github">|g' \
-e 's|git+https://github.com/||g' \
-e 's|"github">git://github.com/|"github">|g'