Renaming package => packaging.
parent
42a0d5dc31
commit
67114e257b
51
Makefile
51
Makefile
|
@ -1,4 +1,4 @@
|
||||||
PACKAGE = 'package'
|
PACKAGE = 'packaging'
|
||||||
VERSION = '0.8.0'
|
VERSION = '0.8.0'
|
||||||
|
|
||||||
PREFIX := /usr/local
|
PREFIX := /usr/local
|
||||||
|
@ -19,39 +19,39 @@ LDFLAGS :=
|
||||||
|
|
||||||
Q := @
|
Q := @
|
||||||
|
|
||||||
all: package assemble-apk.sh src/config.cr
|
all: packaging assemble-apk.sh src/config.cr
|
||||||
@:
|
@:
|
||||||
|
|
||||||
package: src/main.cr src/config.cr src/context.cr src/exception.cr src/instructions.cr src/main.cr src/package.cr src/recipe.cr src/sources.cr src/config.cr
|
packaging: src/main.cr src/backends.cr src/context.cr src/exception.cr src/instructions.cr src/main.cr src/package.cr src/recipe.cr src/sources.cr src/config.cr
|
||||||
@echo '[01;35m CR > [01;37mpackage[00m'
|
@echo '[01;35m CR > [01;37mpackaging[00m'
|
||||||
$(Q)crystal src/main.cr -o 'package'
|
$(Q)crystal src/main.cr -o 'packaging'
|
||||||
|
|
||||||
|
|
||||||
package.install: package
|
packaging.install: packaging
|
||||||
@echo '[01;31m IN > [01;37m$(BINDIR)/package[00m'
|
@echo '[01;31m IN > [01;37m$(BINDIR)/packaging[00m'
|
||||||
$(Q)mkdir -p '$(DESTDIR)$(BINDIR)'
|
$(Q)mkdir -p '$(DESTDIR)$(BINDIR)'
|
||||||
$(Q)install -m0755 package $(DESTDIR)$(BINDIR)/package
|
$(Q)install -m0755 packaging $(DESTDIR)$(BINDIR)/packaging
|
||||||
|
|
||||||
package.clean:
|
packaging.clean:
|
||||||
@echo '[01;37m RM > [01;37mpackage[00m'
|
@echo '[01;37m RM > [01;37mpackaging[00m'
|
||||||
$(Q)rm -f package
|
$(Q)rm -f packaging
|
||||||
|
|
||||||
package.uninstall:
|
packaging.uninstall:
|
||||||
@echo '[01;37m RM > [01;37m$(BINDIR)/package[00m'
|
@echo '[01;37m RM > [01;37m$(BINDIR)/packaging[00m'
|
||||||
$(Q)rm -f '$(DESTDIR)$(BINDIR)/package'
|
$(Q)rm -f '$(DESTDIR)$(BINDIR)/packaging'
|
||||||
|
|
||||||
assemble-apk.sh:
|
assemble-apk.sh:
|
||||||
|
|
||||||
assemble-apk.sh.install: assemble-apk.sh
|
assemble-apk.sh.install: assemble-apk.sh
|
||||||
@echo '[01;31m IN > [01;37m$(LIBEXECDIR)/package/assemble-apk.sh[00m'
|
@echo '[01;31m IN > [01;37m$(LIBEXECDIR)/packaging/assemble-apk.sh[00m'
|
||||||
$(Q)mkdir -p '$(DESTDIR)$(LIBEXECDIR)/package'
|
$(Q)mkdir -p '$(DESTDIR)$(LIBEXECDIR)/packaging'
|
||||||
$(Q)install -m0755 assemble-apk.sh $(DESTDIR)$(LIBEXECDIR)/package/assemble-apk.sh
|
$(Q)install -m0755 assemble-apk.sh $(DESTDIR)$(LIBEXECDIR)/packaging/assemble-apk.sh
|
||||||
|
|
||||||
assemble-apk.sh.clean:
|
assemble-apk.sh.clean:
|
||||||
|
|
||||||
assemble-apk.sh.uninstall:
|
assemble-apk.sh.uninstall:
|
||||||
@echo '[01;37m RM > [01;37m$(LIBEXECDIR)/package/assemble-apk.sh[00m'
|
@echo '[01;37m RM > [01;37m$(LIBEXECDIR)/packaging/assemble-apk.sh[00m'
|
||||||
$(Q)rm -f '$(DESTDIR)$(LIBEXECDIR)/package/assemble-apk.sh'
|
$(Q)rm -f '$(DESTDIR)$(LIBEXECDIR)/packaging/assemble-apk.sh'
|
||||||
|
|
||||||
src/config.cr: src/config.cr.in src
|
src/config.cr: src/config.cr.in src
|
||||||
@echo '[01;32m SED > [01;37msrc/config.cr[00m'
|
@echo '[01;32m SED > [01;37msrc/config.cr[00m'
|
||||||
|
@ -90,12 +90,12 @@ $(DESTDIR)$(INCLUDEDIR):
|
||||||
$(DESTDIR)$(MANDIR):
|
$(DESTDIR)$(MANDIR):
|
||||||
@echo '[01;35m DIR > [01;37m$(MANDIR)[00m'
|
@echo '[01;35m DIR > [01;37m$(MANDIR)[00m'
|
||||||
$(Q)mkdir -p $(DESTDIR)$(MANDIR)
|
$(Q)mkdir -p $(DESTDIR)$(MANDIR)
|
||||||
install: subdirs.install package.install assemble-apk.sh.install src/config.cr.install
|
install: subdirs.install packaging.install assemble-apk.sh.install src/config.cr.install
|
||||||
@:
|
@:
|
||||||
|
|
||||||
subdirs.install:
|
subdirs.install:
|
||||||
|
|
||||||
uninstall: subdirs.uninstall package.uninstall assemble-apk.sh.uninstall src/config.cr.uninstall
|
uninstall: subdirs.uninstall packaging.uninstall assemble-apk.sh.uninstall src/config.cr.uninstall
|
||||||
@:
|
@:
|
||||||
|
|
||||||
subdirs.uninstall:
|
subdirs.uninstall:
|
||||||
|
@ -105,7 +105,7 @@ test: all subdirs subdirs.test
|
||||||
|
|
||||||
subdirs.test:
|
subdirs.test:
|
||||||
|
|
||||||
clean: package.clean assemble-apk.sh.clean src/config.cr.clean
|
clean: packaging.clean assemble-apk.sh.clean src/config.cr.clean
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
|
@ -121,6 +121,7 @@ $(PACKAGE)-$(VERSION).tar.gz: distdir
|
||||||
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.gz[00m'
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.gz[00m'
|
||||||
$(Q)tar czf $(PACKAGE)-$(VERSION).tar.gz \
|
$(Q)tar czf $(PACKAGE)-$(VERSION).tar.gz \
|
||||||
$(PACKAGE)-$(VERSION)/src/config.cr.in \
|
$(PACKAGE)-$(VERSION)/src/config.cr.in \
|
||||||
|
$(PACKAGE)-$(VERSION)/src/backends.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/context.cr \
|
$(PACKAGE)-$(VERSION)/src/context.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/exception.cr \
|
$(PACKAGE)-$(VERSION)/src/exception.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/instructions.cr \
|
$(PACKAGE)-$(VERSION)/src/instructions.cr \
|
||||||
|
@ -135,6 +136,7 @@ $(PACKAGE)-$(VERSION).tar.xz: distdir
|
||||||
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.xz[00m'
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.xz[00m'
|
||||||
$(Q)tar cJf $(PACKAGE)-$(VERSION).tar.xz \
|
$(Q)tar cJf $(PACKAGE)-$(VERSION).tar.xz \
|
||||||
$(PACKAGE)-$(VERSION)/src/config.cr.in \
|
$(PACKAGE)-$(VERSION)/src/config.cr.in \
|
||||||
|
$(PACKAGE)-$(VERSION)/src/backends.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/context.cr \
|
$(PACKAGE)-$(VERSION)/src/context.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/exception.cr \
|
$(PACKAGE)-$(VERSION)/src/exception.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/instructions.cr \
|
$(PACKAGE)-$(VERSION)/src/instructions.cr \
|
||||||
|
@ -149,6 +151,7 @@ $(PACKAGE)-$(VERSION).tar.bz2: distdir
|
||||||
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.bz2[00m'
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.bz2[00m'
|
||||||
$(Q)tar cjf $(PACKAGE)-$(VERSION).tar.bz2 \
|
$(Q)tar cjf $(PACKAGE)-$(VERSION).tar.bz2 \
|
||||||
$(PACKAGE)-$(VERSION)/src/config.cr.in \
|
$(PACKAGE)-$(VERSION)/src/config.cr.in \
|
||||||
|
$(PACKAGE)-$(VERSION)/src/backends.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/context.cr \
|
$(PACKAGE)-$(VERSION)/src/context.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/exception.cr \
|
$(PACKAGE)-$(VERSION)/src/exception.cr \
|
||||||
$(PACKAGE)-$(VERSION)/src/instructions.cr \
|
$(PACKAGE)-$(VERSION)/src/instructions.cr \
|
||||||
|
@ -159,7 +162,7 @@ $(PACKAGE)-$(VERSION).tar.bz2: distdir
|
||||||
$(PACKAGE)-$(VERSION)/src/config.cr
|
$(PACKAGE)-$(VERSION)/src/config.cr
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo '[01;37m :: package-0.8.0[00m'
|
@echo '[01;37m :: packaging-0.8.0[00m'
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo '[01;37mGeneric targets:[00m'
|
@echo '[01;37mGeneric targets:[00m'
|
||||||
@echo '[00m - [01;32mhelp [37m Prints this help message.[00m'
|
@echo '[00m - [01;32mhelp [37m Prints this help message.[00m'
|
||||||
|
@ -185,7 +188,7 @@ help:
|
||||||
@echo ' - [01;34mVERSION [37m ${VERSION}[00m'
|
@echo ' - [01;34mVERSION [37m ${VERSION}[00m'
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo '[01;37mProject targets: [00m'
|
@echo '[01;37mProject targets: [00m'
|
||||||
@echo ' - [01;33mpackage [37m crystal[00m'
|
@echo ' - [01;33mpackaging [37m crystal[00m'
|
||||||
@echo ' - [01;33massemble-apk.sh[37m script[00m'
|
@echo ' - [01;33massemble-apk.sh[37m script[00m'
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo '[01;37mMakefile options:[00m'
|
@echo '[01;37mMakefile options:[00m'
|
||||||
|
|
12
project.zsh
12
project.zsh
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
package=package
|
package=packaging
|
||||||
version=0.8.0
|
version=0.8.0
|
||||||
|
|
||||||
variables+=(
|
variables+=(
|
||||||
|
@ -8,11 +8,11 @@ variables+=(
|
||||||
VERSION "$version"
|
VERSION "$version"
|
||||||
)
|
)
|
||||||
|
|
||||||
targets=(package assemble-apk.sh)
|
targets=(packaging assemble-apk.sh)
|
||||||
|
|
||||||
type[package]=crystal
|
type[packaging]=crystal
|
||||||
sources[package]=src/main.cr
|
sources[packaging]=src/main.cr
|
||||||
depends[package]="$(echo src/*.cr | sed 's| src/config.cr||') src/config.cr"
|
depends[packaging]="$(echo src/*.cr | sed 's| src/config.cr||') src/config.cr"
|
||||||
|
|
||||||
type[assemble-apk.sh]=script
|
type[assemble-apk.sh]=script
|
||||||
|
|
||||||
|
@ -33,5 +33,5 @@ function script.install {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install[assemble-apk.sh]='$(LIBEXECDIR)/package'
|
install[assemble-apk.sh]='$(LIBEXECDIR)/packaging'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: package
|
name: packaging
|
||||||
version: 0.1.1
|
version: 0.1.2
|
||||||
|
|
||||||
# authors:
|
# authors:
|
||||||
# - name <email@example.com>
|
# - name <email@example.com>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
# These values are changed by `make` at build-time.
|
# These values are changed by `make` at build-time.
|
||||||
OWN_LIBEXEC_DIR = "@LIBEXECDIR@/package"
|
OWN_LIBEXEC_DIR = "@LIBEXECDIR@/packaging"
|
||||||
SYSCONF_DIR = "@SYSCONFDIR@"
|
SYSCONF_DIR = "@SYSCONFDIR@"
|
||||||
|
|
||||||
module Package
|
module Package
|
||||||
|
|
|
@ -10,7 +10,7 @@ extend Package
|
||||||
context = Context.new()
|
context = Context.new()
|
||||||
context.repositories << "."
|
context.repositories << "."
|
||||||
|
|
||||||
configuration_file = "#{SYSCONF_DIR}/package.cfg"
|
configuration_file = "#{SYSCONF_DIR}/packaging.cfg"
|
||||||
configuration_file_requested = false
|
configuration_file_requested = false
|
||||||
|
|
||||||
requested_recipes = [] of String
|
requested_recipes = [] of String
|
||||||
|
|
Reference in New Issue