Skip to content

Commit a2c0e77

Browse files
committed
Fix deprecation warning
1 parent f6afd54 commit a2c0e77

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

id.mk

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
## Identify drafts, types and versions
22

3-
$(warning *************************************************)
4-
$(warning *** ***)
5-
$(warning *** You are using the 'master' branch. ***)
6-
$(warning *** Please update to use 'main'. ***)
7-
$(warning *** ***)
8-
$(warning *** sed -i~ s/master/main/ Makefile ***)
9-
$(warning *** ***)
10-
$(warning *************************************************)
3+
$(warning **************************************************************)
4+
$(warning *** ***)
5+
$(warning *** You are on the 'master' branch of i-d-template. ***)
6+
$(warning *** This branch is not supported. ***)
7+
$(warning *** Please update to use 'main'. ***)
8+
$(warning *** ***)
9+
ifneq (,$(shell git submodule status $(LIBDIR) 2>/dev/null))
10+
$(warning *** git -C $(LIBDIR) fetch origin ***)
11+
$(warning *** git -C $(LIBDIR) checkout main ***)
12+
else
13+
$(warning *** sed -i~ s/master/main/ Makefile ***)
14+
$(warning *** rm -rf $(LIBDIR) ***)
15+
endif
16+
$(warning *** ***)
17+
$(warning **************************************************************)
1118

1219
drafts := $(sort $(basename $(wildcard $(foreach pattern,? *-[-a-z]? *-?[a-z] *[a-z0-9]??,$(foreach ext,xml org md,draft-$(pattern).$(ext))))))
1320

0 commit comments

Comments
 (0)