mirror of
https://github.com/clearlinux/common.git
synced 2026-09-05 13:11:29 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50dce59f66 | ||
|
|
089cb1b6b6 | ||
|
|
3c76c8ff41 | ||
|
|
bc355116ae | ||
|
|
2263c2cc23 | ||
|
|
3e53d2c8f4 | ||
|
|
abba4bc351 | ||
|
|
56c84563c3 | ||
|
|
30aac6114d | ||
|
|
14a49e69a3 | ||
|
|
2bc3354ce8 | ||
|
|
658f3655f8 | ||
|
|
6bec4f7dd7 | ||
|
|
7d26584649 | ||
|
|
d309e565a7 | ||
|
|
8a5f1ccf07 | ||
|
|
5c3916cd20 | ||
|
|
d3ba502fa7 | ||
|
|
3fb868c3a9 | ||
|
|
9c109bcd84 | ||
|
|
3f723df7db | ||
|
|
e5d8879be6 | ||
|
|
51d154950f | ||
|
|
c1db07181a | ||
|
|
a3635036b3 | ||
|
|
bcdaa56d6d | ||
|
|
1ff6b2708d | ||
|
|
f2e52a194e | ||
|
|
261c6a8cfd | ||
|
|
3fd783daf9 | ||
|
|
09df0bd218 | ||
|
|
80513e6a77 | ||
|
|
c727ce3e5e | ||
|
|
7b3623e199 | ||
|
|
2aed8ce561 | ||
|
|
908afb2637 | ||
|
|
13d61f38fc | ||
|
|
3a34726589 | ||
|
|
f7747fad82 | ||
|
|
f562dba8ac | ||
|
|
a875acb1fe | ||
|
|
2de768ab6d | ||
|
|
6ce9826071 | ||
|
|
d96968cc98 | ||
|
|
4b284ecb9b | ||
|
|
746d69c99b | ||
|
|
14f1e53183 | ||
|
|
a734764581 | ||
|
|
0c9a4e6802 | ||
|
|
c44e74f556 | ||
|
|
16e5086381 | ||
|
|
ae3cbddb46 | ||
|
|
7b1ffd3045 | ||
|
|
75610ac5f7 | ||
|
|
8b98eabe53 | ||
|
|
8b7cfc2cf1 | ||
|
|
ddb800af7e | ||
|
|
c514292f56 | ||
|
|
a1b55a619a | ||
|
|
0896766e26 | ||
|
|
68da68007d | ||
|
|
35cdf3d618 | ||
|
|
c646187f11 | ||
|
|
af28bdadf7 | ||
|
|
39c9a566a6 | ||
|
|
b0ab451ae0 | ||
|
|
ac1c648189 | ||
|
|
2939f3c5f8 | ||
|
|
e361b3ab2f | ||
|
|
6081437611 | ||
|
|
d6c8858c6e | ||
|
|
9d5c67d124 | ||
|
|
72406d0525 | ||
|
|
1368df937f | ||
|
|
4668b03fdd | ||
|
|
d612ea1d6d | ||
|
|
36d49108a6 | ||
|
|
cbfa62d79e | ||
|
|
312f6398a9 | ||
|
|
ee431ed33f | ||
|
|
349d8c6645 | ||
|
|
1aecb3dcf5 | ||
|
|
be88b856de | ||
|
|
e610c46517 | ||
|
|
f78b8dad99 | ||
|
|
19e7a08dee | ||
|
|
3a7b28e5fa | ||
|
|
8997481daf | ||
|
|
896832831f | ||
|
|
1978d3268c | ||
|
|
7d9588c779 | ||
|
|
7794fa715c | ||
|
|
1c79b04db3 | ||
|
|
b52570a7ad | ||
|
|
1a0e21943f | ||
|
|
c4fe341972 | ||
|
|
23cc04134a | ||
|
|
9614d9e14e | ||
|
|
7f94ad0fc5 | ||
|
|
443c6b9694 | ||
|
|
5d7039fb9a | ||
|
|
f2de7b7dc6 | ||
|
|
446c96bf65 | ||
|
|
0e420e434d | ||
|
|
be0cdd6c5d | ||
|
|
7111d57d6c | ||
|
|
96850c538a | ||
|
|
96fd23e88b | ||
|
|
6f5fd11673 | ||
|
|
7ea85257af | ||
|
|
4ccec6a4d0 | ||
|
|
c76272e46a | ||
|
|
1559d4e0b5 | ||
|
|
3ab672318e | ||
|
|
890363f65f | ||
|
|
e90b6f8c72 |
+73
-15
@@ -20,12 +20,15 @@ LATEST_RPMS = $(wildcard rpms/*.rpm)
|
|||||||
DEBUGINFO_RPM = $(wildcard rpms/${PKG_NAME}-debuginfo-$(shell $(call queryspec,%{V}-%{R},${SPECFILE})).*.rpm)
|
DEBUGINFO_RPM = $(wildcard rpms/${PKG_NAME}-debuginfo-$(shell $(call queryspec,%{V}-%{R},${SPECFILE})).*.rpm)
|
||||||
RPMS ?= $(LATEST_RPMS)
|
RPMS ?= $(LATEST_RPMS)
|
||||||
|
|
||||||
WITH_SUDO = $(shell cmp /usr/bin/mock /usr/sbin/mock &> /dev/null && echo sudo )
|
WITH_SUDO = sudo
|
||||||
|
|
||||||
# MOCK_CONFIG_VAL is set in Makefile.shared
|
# MOCK_CONFIG_VAL is set in Makefile.shared
|
||||||
MOCK_SMP_FLAGS=$(patsubst -j%, -D_smp_mflags\ -j%,$(filter -j%, $(MAKEFLAGS)))
|
MOCK_SMP_FLAGS=$(patsubst -j%, -D_smp_mflags\ -j%,$(filter -j%, $(MAKEFLAGS)))
|
||||||
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL) $(MOCK_SMP_FLAGS) $(MOCK_OPTS)
|
MOCK ?= $(WITH_SUDO) /usr/bin/mock -r $(MOCK_CONFIG_VAL) $(MOCK_SMP_FLAGS) $(MOCK_OPTS)
|
||||||
|
|
||||||
|
MOCK_CLEANUP_OPT := $(if $(CLEANUP),--cleanup-after,--no-cleanup-after)
|
||||||
|
AUTOSPEC_CLEANUP_OPT := $(if $(CLEANUP),-C)
|
||||||
|
|
||||||
ifneq ($(wildcard upstream),)
|
ifneq ($(wildcard upstream),)
|
||||||
__allsources := $(notdir $(strip $(shell cat upstream)))
|
__allsources := $(notdir $(strip $(shell cat upstream)))
|
||||||
__missingsources := $(filter-out $(wildcard ${__allsources}), ${__allsources})
|
__missingsources := $(filter-out $(wildcard ${__allsources}), ${__allsources})
|
||||||
@@ -71,7 +74,7 @@ mockproper:
|
|||||||
$(MOCK) --clean --uniqueext=$(PKG_NAME)
|
$(MOCK) --clean --uniqueext=$(PKG_NAME)
|
||||||
|
|
||||||
configemail:
|
configemail:
|
||||||
@test -d .git || git init
|
@test -d .git || git init -b main
|
||||||
@$(call subjectprefix,$(PKG_NAME))
|
@$(call subjectprefix,$(PKG_NAME))
|
||||||
@echo -n "Subject prefix email configured to: "
|
@echo -n "Subject prefix email configured to: "
|
||||||
@git config --get format.subjectPrefix
|
@git config --get format.subjectPrefix
|
||||||
@@ -88,7 +91,7 @@ prebuild-checks:
|
|||||||
#help which creates a src.rpm file from the spec file.
|
#help which creates a src.rpm file from the spec file.
|
||||||
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options.
|
#help Use MOCK_OPTS environment varible to pass down arbitrary mock options.
|
||||||
build: prebuild-checks configemail $(SPECFILE) upstream $(SRPMFILE)
|
build: prebuild-checks configemail $(SPECFILE) upstream $(SRPMFILE)
|
||||||
$(MOCK) $(SRPMFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
$(MOCK) $(SRPMFILE) --result=results/ $(MOCK_CLEANUP_OPT) --uniqueext=$(PKG_NAME)
|
||||||
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
||||||
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
||||||
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
||||||
@@ -96,7 +99,7 @@ build: prebuild-checks configemail $(SPECFILE) upstream $(SRPMFILE)
|
|||||||
|
|
||||||
#help build-nocheck: Same as 'make build', but do not run the package's test suite.
|
#help build-nocheck: Same as 'make build', but do not run the package's test suite.
|
||||||
build-nocheck: configemail $(SPECFILE) upstream $(SRPMFILE)
|
build-nocheck: configemail $(SPECFILE) upstream $(SRPMFILE)
|
||||||
$(MOCK) $(SRPMFILE) --nocheck --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
$(MOCK) $(SRPMFILE) --nocheck --result=results/ $(MOCK_CLEANUP_OPT) --uniqueext=$(PKG_NAME)
|
||||||
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
||||||
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
||||||
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
@perl $(TOPLVL)/projects/common/count.pl results/build.log &> testresults
|
||||||
@@ -117,7 +120,7 @@ shell:
|
|||||||
.PHONY: $(SRPMFILE)
|
.PHONY: $(SRPMFILE)
|
||||||
$(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice clean-old-content
|
$(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice clean-old-content
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ --no-cleanup-after --uniqueext=$(PKG_NAME)
|
$(MOCK) --buildsrpm --source=./ --spec=$(SPECFILE) --result=results/ $(MOCK_CLEANUP_OPT) --uniqueext=$(PKG_NAME)
|
||||||
mv results/root.log results/srpm-root.log
|
mv results/root.log results/srpm-root.log
|
||||||
mv results/build.log results/srpm-build.log
|
mv results/build.log results/srpm-build.log
|
||||||
|
|
||||||
@@ -129,7 +132,7 @@ $(SRPMFILE): $(SPECFILE) $(__allsources) localreponotice clean-old-content
|
|||||||
# initialized locally, or if the remote contains no commits.
|
# initialized locally, or if the remote contains no commits.
|
||||||
pullrebase:
|
pullrebase:
|
||||||
@if [ -z "$$SKIP_GIT" ] && [ -e .git ]; then \
|
@if [ -z "$$SKIP_GIT" ] && [ -e .git ]; then \
|
||||||
if ! git rev-parse --verify --quiet origin/master > /dev/null; then \
|
if ! git rev-parse --verify --quiet origin/main > /dev/null; then \
|
||||||
echo "Remote not yet initialized. Continuing."; \
|
echo "Remote not yet initialized. Continuing."; \
|
||||||
exit 0; \
|
exit 0; \
|
||||||
fi; \
|
fi; \
|
||||||
@@ -143,7 +146,7 @@ pullrebase:
|
|||||||
echo "Current branch up-to-date. Continuing."; \
|
echo "Current branch up-to-date. Continuing."; \
|
||||||
exit 0; \
|
exit 0; \
|
||||||
fi; \
|
fi; \
|
||||||
echo "Rebasing to origin/master"; \
|
echo "Rebasing to origin/main"; \
|
||||||
if git status --porcelain | grep -q '^.[^?]'; \
|
if git status --porcelain | grep -q '^.[^?]'; \
|
||||||
then \
|
then \
|
||||||
git stash save; \
|
git stash save; \
|
||||||
@@ -179,7 +182,7 @@ autospec: preautospec-checks pullrebase localreponotice clean-old-content
|
|||||||
$${SETVERSION:+ --version $${SETVERSION}} \
|
$${SETVERSION:+ --version $${SETVERSION}} \
|
||||||
$${NON_INTERACTIVE:+ --non_interactive} \
|
$${NON_INTERACTIVE:+ --non_interactive} \
|
||||||
$${SKIP_GIT:+ --skip-git} \
|
$${SKIP_GIT:+ --skip-git} \
|
||||||
$${CLEANUP:+ -C} \
|
$(AUTOSPEC_CLEANUP_OPT) \
|
||||||
$(firstword $(NEWURL) $(URL));
|
$(firstword $(NEWURL) $(URL));
|
||||||
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
$(MAKE) link-new-rpms PKG_REPO_DIR="."
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
@@ -214,14 +217,24 @@ autospecnostate:
|
|||||||
scanlicense:
|
scanlicense:
|
||||||
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --config $(AUTOSPEC_CONF) --license-only $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME)
|
python3 $(TOPLVL)/projects/autospec/autospec/autospec.py -t . --config $(AUTOSPEC_CONF) --license-only $(firstword $(NEWURL) $(URL)) --name $(PKG_NAME)
|
||||||
|
|
||||||
#help bump: Increments the release file by one.
|
#help bump: Increments the package release number by one and commits the result. If
|
||||||
|
#help the variable BUMP_MSG is set, its value is used as the commit summary.
|
||||||
|
#help Otherwise a generic commit summary is used.
|
||||||
bump:
|
bump:
|
||||||
git pull --rebase
|
git pull --rebase
|
||||||
$(MAKE) bumpnogit
|
$(MAKE) bumpnogit
|
||||||
git add $(SPECFILE) release
|
git add $(SPECFILE) release
|
||||||
git commit -a -m "version bump from $(shell $(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))) to `$(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))`"
|
fromver=$(shell $(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))); \
|
||||||
|
tover=`$(call queryspec,%{VERSION}-%{RELEASE}\n,$(SPECFILE))`; \
|
||||||
|
if [[ -n "$(BUMP_MSG)" ]]; then \
|
||||||
|
bumpmsg="$(BUMP_MSG)"; \
|
||||||
|
else \
|
||||||
|
bumpmsg="version bump from $$fromver to $$tover"; \
|
||||||
|
fi; \
|
||||||
|
git commit -a -m "$$bumpmsg"
|
||||||
|
|
||||||
#help bumpnogit: Increments the release file by one and does not commit changes.
|
#help bumpnogit: Increments the package release number by one and does not commit
|
||||||
|
#help changes.
|
||||||
bumpnogit:
|
bumpnogit:
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
oldrel=$(shell $(call queryspec,%{RELEASE}\n,$(SPECFILE))); \
|
oldrel=$(shell $(call queryspec,%{RELEASE}\n,$(SPECFILE))); \
|
||||||
@@ -307,8 +320,8 @@ prekoji-checks:
|
|||||||
koji: prekoji-checks kojidef
|
koji: prekoji-checks kojidef
|
||||||
@$(MAKE) spdxcheck
|
@$(MAKE) spdxcheck
|
||||||
@$(MAKE) checkblacklist
|
@$(MAKE) checkblacklist
|
||||||
@if [ "$(CURRENT_BRANCH)" != "master" ] && [ "$(CURRENT_BRANCH)" != "main" ]; then \
|
@if [ "$(CURRENT_BRANCH)" != "main" ]; then \
|
||||||
echo "Error: Must be on the \"master\" or \"main\" branch to submit to koji" >&2; \
|
echo "Error: Must be on the \"main\" branch to submit to koji" >&2; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
if ! git diff --quiet HEAD -- ${SPECFILE}; then \
|
if ! git diff --quiet HEAD -- ${SPECFILE}; then \
|
||||||
@@ -316,7 +329,7 @@ koji: prekoji-checks kojidef
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi; \
|
fi; \
|
||||||
git fetch; \
|
git fetch; \
|
||||||
if git rev-parse --verify --quiet origin/master >/dev/null; then \
|
if git rev-parse --verify --quiet origin/main >/dev/null; then \
|
||||||
git pull --rebase; \
|
git pull --rebase; \
|
||||||
fi; \
|
fi; \
|
||||||
if git ls-remote --tags --exit-code origin $(SRPMVERS) >/dev/null; then \
|
if git ls-remote --tags --exit-code origin $(SRPMVERS) >/dev/null; then \
|
||||||
@@ -324,8 +337,15 @@ koji: prekoji-checks kojidef
|
|||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
git tag $(SRPMVERS)
|
git tag $(SRPMVERS)
|
||||||
git push origin $(CURRENT_BRANCH):master refs/tags/$(SRPMVERS)
|
git push origin $(CURRENT_BRANCH):main refs/tags/$(SRPMVERS)
|
||||||
$(KOJI_CMD) build $$KOJI_NOWAIT $(KOJI_TAG) $(PKG_BASE_URL)/$(PKG_NAME)?#$(SRPMVERS)
|
$(KOJI_CMD) build $$KOJI_NOWAIT $(KOJI_TAG) $(PKG_BASE_URL)/$(PKG_NAME)?#$(SRPMVERS)
|
||||||
|
@if [ -f bump.list ]; then \
|
||||||
|
$(MAKE) koji-waitrepo; \
|
||||||
|
msg="Bump for $(shell $(call queryspec,%{NAME} %{VERSION}\n,$(SPECFILE)))"; \
|
||||||
|
for bump_dep in $$(cat bump.list); do \
|
||||||
|
(cd ../"$$bump_dep" && $(MAKE) bump BUMP_MSG="$$msg" && $(MAKE) koji-nowait) \
|
||||||
|
done \
|
||||||
|
fi
|
||||||
|
|
||||||
#help rekoji: In case a previous 'make koji' failed, trigger a rebuild for the
|
#help rekoji: In case a previous 'make koji' failed, trigger a rebuild for the
|
||||||
#help same tag.
|
#help same tag.
|
||||||
@@ -349,6 +369,44 @@ koji-nowait:
|
|||||||
rekoji-nowait:
|
rekoji-nowait:
|
||||||
$(MAKE) KOJI_NOWAIT="--nowait --background" rekoji
|
$(MAKE) KOJI_NOWAIT="--nowait --background" rekoji
|
||||||
|
|
||||||
|
#help koji-waitrepo: Wait for current package changes to become available in the
|
||||||
|
#help koji repo. If PKG_NAME is overridden on the command line, wait on changes for
|
||||||
|
#help that package instead. This capability allows the developer to "chain" builds
|
||||||
|
#help for submission to koji according to the state of the package repos on their
|
||||||
|
#help system. Additional options for `koji wait-repo` can be specified via the
|
||||||
|
#help WAIT_OPTS variable.
|
||||||
|
koji-waitrepo: kojidef
|
||||||
|
@if [[ ! "${PKG_NAME}" =~ ^[A-Za-z0-9._+-]+$$ ]]; then \
|
||||||
|
echo "[ERROR] Invalid package name \"${PKG_NAME}\""; \
|
||||||
|
exit 1; \
|
||||||
|
fi; \
|
||||||
|
if [[ "${PKG_NAME}" != "$(notdir ${CURDIR})" ]]; then \
|
||||||
|
$(MAKE) -s -C ../${PKG_NAME} koji-waitrepo; \
|
||||||
|
else \
|
||||||
|
koji wait-repo --build=${SRPMVERS} ${WAIT_OPTS} ${KOJI_TAG}-build; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
update-versions:
|
||||||
|
|
||||||
|
.PHONY: update
|
||||||
|
#help update: Tries to run update.sh if it exists. update.sh is expected
|
||||||
|
#help to check for version updates, exit (successfully) if none are found
|
||||||
|
#help or update the package and push the update to koji.
|
||||||
|
#help If no update.sh exists, update the version, autospec and push the
|
||||||
|
#help update to koji (bumping the bump.list if found).
|
||||||
|
update:
|
||||||
|
@if [ -f update.sh ]; then \
|
||||||
|
./update.sh; \
|
||||||
|
else \
|
||||||
|
$(MAKE) -s update-versions && \
|
||||||
|
$(MAKE) autospec CLEANUP=1 && \
|
||||||
|
if [ -f bump.list ]; then \
|
||||||
|
$(MAKE) -s koji; \
|
||||||
|
else \
|
||||||
|
$(MAKE) -s koji-nowait; \
|
||||||
|
fi \
|
||||||
|
fi \
|
||||||
|
|
||||||
logcheck:
|
logcheck:
|
||||||
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
@perl $(TOPLVL)/projects/common/logcheck.pl results/build.log
|
||||||
|
|
||||||
|
|||||||
+18
-13
@@ -52,7 +52,7 @@ $(clone_PKGS): $(PACKAGES_FILE) packages/common/Makefile.common
|
|||||||
remotepkg=$(call remotepkgname,$$pkg); \
|
remotepkg=$(call remotepkgname,$$pkg); \
|
||||||
[ -d packages/$$pkg ] || ( \
|
[ -d packages/$$pkg ] || ( \
|
||||||
echo "Checking out: packages/$$pkg"; \
|
echo "Checking out: packages/$$pkg"; \
|
||||||
git clone $(PKG_BASE_URL)/$$remotepkg packages/$$pkg; \
|
git clone -b main $(PKG_BASE_URL)/$$remotepkg packages/$$pkg; \
|
||||||
cd packages/$$pkg; \
|
cd packages/$$pkg; \
|
||||||
$(call gitoliteurl,packages/$$pkg); \
|
$(call gitoliteurl,packages/$$pkg); \
|
||||||
$(call subjectprefix,$$pkg); \
|
$(call subjectprefix,$$pkg); \
|
||||||
@@ -68,13 +68,18 @@ ${PULL_PKGS}:
|
|||||||
if [ ! -d "$$p/.git" ]; then echo "Nothing to pull for $$p - $$p/.git missing"; exit 0; fi; \
|
if [ ! -d "$$p/.git" ]; then echo "Nothing to pull for $$p - $$p/.git missing"; exit 0; fi; \
|
||||||
cd "$$p" ; \
|
cd "$$p" ; \
|
||||||
if git remote | grep origin >/dev/null 2>&1; then \
|
if git remote | grep origin >/dev/null 2>&1; then \
|
||||||
O=$$(git rev-parse origin/master 2>/dev/null); \
|
case "$$p" in \
|
||||||
|
("projects/"*) BRANCH=master ;; \
|
||||||
|
("packages/"*) BRANCH=main ;; \
|
||||||
|
(*) BRANCH=master ;; \
|
||||||
|
esac; \
|
||||||
|
O=$$(git rev-parse origin/"$$BRANCH" 2>/dev/null); \
|
||||||
git fetch --tags origin >/dev/null 2>&1; \
|
git fetch --tags origin >/dev/null 2>&1; \
|
||||||
N=$$(git rev-parse origin/master); \
|
N=$$(git rev-parse origin/"$$BRANCH"); \
|
||||||
if [ "$$O" != "$$N" ]; then \
|
if [ "$$O" != "$$N" ]; then \
|
||||||
echo "Updating: $$p"; \
|
echo "Updating: $$p"; \
|
||||||
if ! git merge --ff-only origin/master 2>/dev/null; then \
|
if ! git merge --ff-only origin/"$$BRANCH" 2>/dev/null; then \
|
||||||
echo "$$p: Cannot fast-forward $$(git rev-parse --abbrev-ref HEAD) to origin/master" ; \
|
echo "$$p: Cannot fast-forward $$(git rev-parse --abbrev-ref HEAD) to origin/$$BRANCH" ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit $$O..$$N; echo; \
|
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit $$O..$$N; echo; \
|
||||||
fi ; \
|
fi ; \
|
||||||
@@ -159,19 +164,19 @@ status: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
|||||||
if [ -d "$$p/.git" ] && [ -n "$$(git -C $$p status -uno --porcelain)" ]; then echo "Uncommitted changes in $$p:"; git -C "$$p" status --short; fi ;\
|
if [ -d "$$p/.git" ] && [ -n "$$(git -C $$p status -uno --porcelain)" ]; then echo "Uncommitted changes in $$p:"; git -C "$$p" status --short; fi ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help diff: Runs git diff for all package repos and displays the output using
|
#help diff: Runs git diff for all package repos and displays the diffstat using
|
||||||
#help diffstat. Requires that diffstat is installed.
|
#help the --stat flag.
|
||||||
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
diff: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
(cd $$p; git status --porcelain | grep -vq '^?? ' && (echo "Uncommitted changes in: $$p"; git diff | diffstat -p1); :) ;\
|
(cd $$p; git status --porcelain | grep -vq '^?? ' && (echo "Uncommitted changes in: $$p"; git --no-pager diff --stat); :) ;\
|
||||||
done
|
done
|
||||||
|
|
||||||
#help log: Run git log origin/master..HEAD for all package repos, thus
|
#help log: Run git log origin/main..HEAD for all package repos, thus
|
||||||
#help displaying any committed but unpushed changes.
|
#help displaying any committed but unpushed changes.
|
||||||
log: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
log: $(PACKAGES_FILE) $(addprefix packages/,$(PKGS_LOCAL))
|
||||||
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
@for p in projects/common $(addprefix packages/,$(PKGS_LOCAL)); do \
|
||||||
( cd $$p; if [ "$$(git rev-parse --verify HEAD)" != "$$(git rev-parse --verify origin/master)" ] ; then \
|
( cd $$p; if [ -n "$$(git rev-list origin/main..HEAD)" ] ; then \
|
||||||
echo $$p ; git --no-pager log --pretty="format:%s" origin/master..HEAD ; echo ; echo;\
|
echo $$p ; git --no-pager log --pretty="format:%s" origin/main..HEAD ; echo ; echo;\
|
||||||
fi ; ) \
|
fi ; ) \
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -211,7 +216,7 @@ autospecnew: preautospecnew-checks localreponotice
|
|||||||
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
||||||
( \
|
( \
|
||||||
cd $(TOPLVL)/packages/$(NAME); \
|
cd $(TOPLVL)/packages/$(NAME); \
|
||||||
git init; \
|
git init -b main; \
|
||||||
git remote add origin $(PKG_BASE_URL)/$(NAME); \
|
git remote add origin $(PKG_BASE_URL)/$(NAME); \
|
||||||
$(call gitoliteurl,packages/$(NAME)); \
|
$(call gitoliteurl,packages/$(NAME)); \
|
||||||
$(call subjectprefix,$(NAME)); \
|
$(call subjectprefix,$(NAME)); \
|
||||||
@@ -262,7 +267,7 @@ autospecnewgo: preautospecnew-checks localreponotice
|
|||||||
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
mkdir -p $(TOPLVL)/packages/$(NAME); \
|
||||||
( \
|
( \
|
||||||
cd $(TOPLVL)/packages/$(NAME); \
|
cd $(TOPLVL)/packages/$(NAME); \
|
||||||
git init; \
|
git init -b main; \
|
||||||
git remote add origin $(PKG_BASE_URL)/$(NAME); \
|
git remote add origin $(PKG_BASE_URL)/$(NAME); \
|
||||||
$(call gitoliteurl,packages/$(NAME)); \
|
$(call gitoliteurl,packages/$(NAME)); \
|
||||||
$(call subjectprefix,$(NAME)); \
|
$(call subjectprefix,$(NAME)); \
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Download the [user setup](user-setup.sh) script and run it on your Clear Linux
|
|||||||
system as an unprivileged user.
|
system as an unprivileged user.
|
||||||
|
|
||||||
```
|
```
|
||||||
$ curl -O https://raw.githubusercontent.com/clearlinux/common/master/user-setup.sh
|
$ curl -O https://raw.githubusercontent.com/clearlinux/common/main/user-setup.sh
|
||||||
$ chmod +x user-setup.sh
|
$ chmod +x user-setup.sh
|
||||||
$ ./user-setup.sh
|
$ ./user-setup.sh
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ Apache-1.0
|
|||||||
Apache-1.1
|
Apache-1.1
|
||||||
Apache-2.0
|
Apache-2.0
|
||||||
App-s2p
|
App-s2p
|
||||||
|
Arphic-1999
|
||||||
Artistic-1.0
|
Artistic-1.0
|
||||||
Artistic-1.0-Perl
|
Artistic-1.0-Perl
|
||||||
Artistic-1.0-cl8
|
Artistic-1.0-cl8
|
||||||
@@ -59,11 +60,13 @@ BSD-Protection
|
|||||||
BSD-Source-Code
|
BSD-Source-Code
|
||||||
BSL-1.0
|
BSL-1.0
|
||||||
BUSL-1.1
|
BUSL-1.1
|
||||||
|
Baekmuk
|
||||||
Bahyph
|
Bahyph
|
||||||
Barr
|
Barr
|
||||||
Beerware
|
Beerware
|
||||||
BitTorrent-1.0
|
BitTorrent-1.0
|
||||||
BitTorrent-1.1
|
BitTorrent-1.1
|
||||||
|
Bitstream-Vera
|
||||||
BlueOak-1.0.0
|
BlueOak-1.0.0
|
||||||
Borceux
|
Borceux
|
||||||
C-UDA-1.0
|
C-UDA-1.0
|
||||||
@@ -77,6 +80,7 @@ CC-BY-2.5-AU
|
|||||||
CC-BY-3.0
|
CC-BY-3.0
|
||||||
CC-BY-3.0-AT
|
CC-BY-3.0-AT
|
||||||
CC-BY-3.0-DE
|
CC-BY-3.0-DE
|
||||||
|
CC-BY-3.0-IGO
|
||||||
CC-BY-3.0-NL
|
CC-BY-3.0-NL
|
||||||
CC-BY-3.0-US
|
CC-BY-3.0-US
|
||||||
CC-BY-4.0
|
CC-BY-4.0
|
||||||
@@ -176,6 +180,7 @@ FDK-AAC
|
|||||||
FSFAP
|
FSFAP
|
||||||
FSFUL
|
FSFUL
|
||||||
FSFULLR
|
FSFULLR
|
||||||
|
FSFULLRWD
|
||||||
FTL
|
FTL
|
||||||
Fair
|
Fair
|
||||||
Frameworx-1.0
|
Frameworx-1.0
|
||||||
@@ -248,6 +253,7 @@ JPNIC
|
|||||||
JSON
|
JSON
|
||||||
Jam
|
Jam
|
||||||
JasPer-2.0
|
JasPer-2.0
|
||||||
|
Knuth-CTAN
|
||||||
LAL-1.2
|
LAL-1.2
|
||||||
LAL-1.3
|
LAL-1.3
|
||||||
LGPL-2.0
|
LGPL-2.0
|
||||||
@@ -270,6 +276,8 @@ LPPL-1.1
|
|||||||
LPPL-1.2
|
LPPL-1.2
|
||||||
LPPL-1.3a
|
LPPL-1.3a
|
||||||
LPPL-1.3c
|
LPPL-1.3c
|
||||||
|
LZMA-SDK-9.11-to-9.20
|
||||||
|
LZMA-SDK-9.22
|
||||||
Latex2e
|
Latex2e
|
||||||
Leptonica
|
Leptonica
|
||||||
LiLiQ-P-1.1
|
LiLiQ-P-1.1
|
||||||
@@ -291,10 +299,12 @@ MPL-1.0
|
|||||||
MPL-1.1
|
MPL-1.1
|
||||||
MPL-2.0
|
MPL-2.0
|
||||||
MPL-2.0-no-copyleft-exception
|
MPL-2.0-no-copyleft-exception
|
||||||
|
MS-LPL
|
||||||
MS-PL
|
MS-PL
|
||||||
MS-RL
|
MS-RL
|
||||||
MTLL
|
MTLL
|
||||||
MakeIndex
|
MakeIndex
|
||||||
|
Minpack
|
||||||
MirOS
|
MirOS
|
||||||
Motosoto
|
Motosoto
|
||||||
MulanPSL-1.0
|
MulanPSL-1.0
|
||||||
@@ -307,6 +317,7 @@ NBPL-1.0
|
|||||||
NCGL-UK-2.0
|
NCGL-UK-2.0
|
||||||
NCSA
|
NCSA
|
||||||
NGPL
|
NGPL
|
||||||
|
NICTA-1.0
|
||||||
NIST-PD
|
NIST-PD
|
||||||
NIST-PD-fallback
|
NIST-PD-fallback
|
||||||
NLOD-1.0
|
NLOD-1.0
|
||||||
@@ -381,6 +392,7 @@ PolyForm-Noncommercial-1.0.0
|
|||||||
PolyForm-Small-Business-1.0.0
|
PolyForm-Small-Business-1.0.0
|
||||||
PostgreSQL
|
PostgreSQL
|
||||||
Python-2.0
|
Python-2.0
|
||||||
|
Python-2.0.1
|
||||||
QPL-1.0
|
QPL-1.0
|
||||||
Qhull
|
Qhull
|
||||||
RHeCos-1.1
|
RHeCos-1.1
|
||||||
@@ -461,6 +473,7 @@ Zlib
|
|||||||
blessing
|
blessing
|
||||||
bzip2-1.0.5
|
bzip2-1.0.5
|
||||||
bzip2-1.0.6
|
bzip2-1.0.6
|
||||||
|
checkmk
|
||||||
copyleft-next-0.3.0
|
copyleft-next-0.3.0
|
||||||
copyleft-next-0.3.1
|
copyleft-next-0.3.1
|
||||||
curl
|
curl
|
||||||
@@ -475,7 +488,10 @@ iMatix
|
|||||||
libpng-2.0
|
libpng-2.0
|
||||||
libselinux-1.0
|
libselinux-1.0
|
||||||
libtiff
|
libtiff
|
||||||
|
libutil-David-Nugent
|
||||||
|
mpi-permissive
|
||||||
mpich2
|
mpich2
|
||||||
|
mplus
|
||||||
psfrag
|
psfrag
|
||||||
psutils
|
psutils
|
||||||
wxWindows
|
wxWindows
|
||||||
|
|||||||
Reference in New Issue
Block a user