Remove all remaining mentions of "subscriptions"
This commit is contained in:
parent
4aa750a0fe
commit
dd765787e8
15 changed files with 45 additions and 71 deletions
16
Makefile
16
Makefile
|
|
@ -1,3 +1,5 @@
|
|||
PACKAGE_NAME := $(shell python3 -c "import json; print(json.load(open('package.json'))['name'])")
|
||||
|
||||
all:
|
||||
NODE_ENV=$(NODE_ENV) npm run build
|
||||
|
||||
|
|
@ -8,14 +10,14 @@ clean:
|
|||
install: all install-only
|
||||
|
||||
install-only:
|
||||
mkdir -p $(DESTDIR)/usr/share/cockpit/subscription-manager
|
||||
cp -r dist/* $(DESTDIR)/usr/share/cockpit/subscription-manager
|
||||
mkdir -p $(DESTDIR)/usr/share/cockpit/$(PACKAGE_NAME)
|
||||
cp -r dist/* $(DESTDIR)/usr/share/cockpit/$(PACKAGE_NAME)
|
||||
mkdir -p $(DESTDIR)/usr/share/metainfo/
|
||||
cp org.cockpit-project.subscription-manager.metainfo.xml $(DESTDIR)/usr/share/metainfo/
|
||||
cp org.cockpit-project.$(PACKAGE_NAME).metainfo.xml $(DESTDIR)/usr/share/metainfo/
|
||||
|
||||
EXTRA_DIST = \
|
||||
README.md \
|
||||
org.cockpit-project.subscription-manager.metainfo.xml \
|
||||
org.cockpit-project.$(PACKAGE_NAME).metainfo.xml \
|
||||
package.json \
|
||||
.eslintrc.json \
|
||||
webpack.config.js \
|
||||
|
|
@ -25,13 +27,13 @@ EXTRA_DIST = \
|
|||
# when building a distribution tarball, call webpack with a 'production' environment
|
||||
dist-gzip: NODE_ENV=production
|
||||
dist-gzip: clean all
|
||||
tar czf subscription-manager-cockpit.tar.gz --transform 's,^,subscription-manager-cockpit/,' $$(cat webpack.inputs) $(EXTRA_DIST) dist/
|
||||
tar czf $(PACKAGE_NAME)-cockpit.tar.gz --transform 's,^,$(PACKAGE_NAME)-cockpit/,' $$(cat webpack.inputs) $(EXTRA_DIST) dist/
|
||||
|
||||
srpm: dist-gzip
|
||||
rpmbuild -bs \
|
||||
--define "_sourcedir `pwd`" \
|
||||
--define "_srcrpmdir `pwd`" \
|
||||
subscription-manager-cockpit.spec
|
||||
$(PACKAGE_NAME)-cockpit.spec
|
||||
|
||||
rpm: dist-gzip
|
||||
mkdir -p "`pwd`/output"
|
||||
|
|
@ -43,6 +45,6 @@ rpm: dist-gzip
|
|||
--define "_srcrpmdir `pwd`" \
|
||||
--define "_rpmdir `pwd`/output" \
|
||||
--define "_buildrootdir `pwd`/build" \
|
||||
subscription-manager-cockpit.spec
|
||||
$(PACKAGE_NAME)-cockpit.spec
|
||||
find `pwd`/output -name '*.rpm' -printf '%f\n' -exec mv {} . \;
|
||||
rm -r "`pwd`/rpmbuild"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue