소스 검색

Add sed script to import git commits back

Alois Mahdal 9 년 전
부모
커밋
35eaf16cf6
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13
    0
      utils/import-patches.sed

+ 13
- 0
utils/import-patches.sed 파일 보기

@@ -0,0 +1,13 @@
1
+#
2
+# use this sed script to import patches back from repo
3
+# where mkit has been embedded
4
+#
5
+#  1. in the downstream repo, get patches using `git format-patch`,
6
+#  2. apply this script to all files generated,
7
+#  3. use `git am` to import patches back
8
+#
9
+
10
+/^\(--- a\|+++ b\)/ s:utils/mkit/include:src/include:g
11
+/^\(--- a\|+++ b\)/ s:utils/mkit/make:src/make.skel:g
12
+/^\(--- a\|+++ b\)/ s:utils/mkit/mkit.mk:src/mkit.mk:g
13
+/^index /           s:100755$:100644: