Showing
1 changed file
with
7 additions
and
3 deletions
| @@ -47,7 +47,7 @@ format-swift: $(SWFT_SRC) | @@ -47,7 +47,7 @@ format-swift: $(SWFT_SRC) | ||
| 47 | swiftformat --swiftversion 4.2 $^ | 47 | swiftformat --swiftversion 4.2 $^ |
| 48 | 48 | ||
| 49 | .coverage: | 49 | .coverage: |
| 50 | - pub global activate coverage | 50 | + which coverage || pub global activate coverage |
| 51 | touch $@ | 51 | touch $@ |
| 52 | 52 | ||
| 53 | node_modules: | 53 | node_modules: |
| @@ -94,17 +94,21 @@ clean: | @@ -94,17 +94,21 @@ clean: | ||
| 94 | git clean -fdx -e .vscode -e ref | 94 | git clean -fdx -e .vscode -e ref |
| 95 | 95 | ||
| 96 | publish-pdf: format clean | 96 | publish-pdf: format clean |
| 97 | + test -z "$(shell git status --porcelain)" | ||
| 97 | find pdf -name pubspec.yaml -exec sed -i -e 's/^dependency_overrides:/_dependency_overrides:/g' '{}' ';' | 98 | find pdf -name pubspec.yaml -exec sed -i -e 's/^dependency_overrides:/_dependency_overrides:/g' '{}' ';' |
| 98 | cd pdf; pub publish -f | 99 | cd pdf; pub publish -f |
| 99 | find pdf -name pubspec.yaml -exec sed -i -e 's/^_dependency_overrides:/dependency_overrides:/g' '{}' ';' | 100 | find pdf -name pubspec.yaml -exec sed -i -e 's/^_dependency_overrides:/dependency_overrides:/g' '{}' ';' |
| 101 | + git tag $(shell grep version pdf/pubspec.yaml | sed 's/version\s*:\s*/pdf-/g') | ||
| 100 | 102 | ||
| 101 | publish-printing: format clean | 103 | publish-printing: format clean |
| 104 | + test -z "$(shell git status --porcelain)" | ||
| 102 | find printing -name pubspec.yaml -exec sed -i -e 's/^dependency_overrides:/_dependency_overrides:/g' '{}' ';' | 105 | find printing -name pubspec.yaml -exec sed -i -e 's/^dependency_overrides:/_dependency_overrides:/g' '{}' ';' |
| 103 | cd printing; pub publish -f | 106 | cd printing; pub publish -f |
| 104 | find printing -name pubspec.yaml -exec sed -i -e 's/^_dependency_overrides:/dependency_overrides:/g' '{}' ';' | 107 | find printing -name pubspec.yaml -exec sed -i -e 's/^_dependency_overrides:/dependency_overrides:/g' '{}' ';' |
| 108 | + git tag $(shell grep version printing/pubspec.yaml | sed 's/version\s*:\s*/printing-/g') | ||
| 105 | 109 | ||
| 106 | .pana: | 110 | .pana: |
| 107 | - pub global activate pana | 111 | + which pana || pub global activate pana |
| 108 | touch $@ | 112 | touch $@ |
| 109 | 113 | ||
| 110 | analyze-pdf: .pana | 114 | analyze-pdf: .pana |
| @@ -130,7 +134,7 @@ analyze-ci-printing: .pana | @@ -130,7 +134,7 @@ analyze-ci-printing: .pana | ||
| 130 | @find printing -name pubspec.yaml -exec sed -i -e 's/^_dependency_overrides:/dependency_overrides:/g' '{}' ';' | 134 | @find printing -name pubspec.yaml -exec sed -i -e 's/^_dependency_overrides:/dependency_overrides:/g' '{}' ';' |
| 131 | 135 | ||
| 132 | .dartfix: | 136 | .dartfix: |
| 133 | - pub global activate dartfix | 137 | + which dartfix || pub global activate dartfix |
| 134 | touch $@ | 138 | touch $@ |
| 135 | 139 | ||
| 136 | fix: get .dartfix | 140 | fix: get .dartfix |
-
Please register or login to post a comment