Skip to content

Commit d486987

Browse files
authored
Merge pull request #13 from CodeChenL/main
feat: add udc_functions.sh and modify src file structure
2 parents aeb8799 + 2bf2d57 commit d486987

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/.vscode*
22
/overlay
33
/VERSION
4+
services.json

Makefile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ test:
1818
# Build
1919
#
2020
.PHONY: build
21-
build: build-man build-doc
21+
build: build-man build-doc build-data
22+
23+
24+
DATA := services.json
25+
.PHONY: build-data
26+
build-data: $(DATA)
27+
28+
.PHONY: services.json
29+
services.json:
30+
ls debian/*.service | jq --raw-input '[., inputs] | map(ltrimstr("debian/$(PROJECT).") | rtrimstr(".service"))' > $@
2231

2332
SRC-MAN := man
2433
SRCS-MAN := $(wildcard $(SRC-MAN)/*.md)
@@ -48,12 +57,16 @@ $(SRC-DOC)/SOURCE: $(SRC-DOC)
4857
distclean: clean
4958

5059
.PHONY: clean
51-
clean: clean-man clean-doc clean-deb
60+
clean: clean-man clean-data clean-doc clean-deb
5261

5362
.PHONY: clean-man
5463
clean-man:
5564
rm -rf $(MANS)
5665

66+
.PHONY: clean-data
67+
clean-data:
68+
rm -rf $(DATA)
69+
5770
.PHONY: clean-doc
5871
clean-doc:
5972
rm -rf $(DOCS)

debian/control

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Priority: standard
55
Standards-Version: 4.6.0
66
Build-Depends: debhelper (>=12~),
77
devscripts,
8+
jq,
89
lintian,
910
pandoc,
1011
shellcheck,

debian/install

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
src/radxa-otgutils /usr/sbin
1+
src/radxa-otgutils /usr/sbin/
2+
services.json /usr/share/radxa-otgutils/
23
man/*.8 /usr/share/man/man8

0 commit comments

Comments
 (0)