Skip to content

Commit

Permalink
Real version this time, with a parallel build fix
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Bercot <ska@appnovation.com>
  • Loading branch information
skarnet committed Jan 28, 2022
1 parent 2716cab commit 25daa01
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
30 changes: 15 additions & 15 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ $(OUTPUT)/s6-overlay-symlinks-arch-$(VERSION).tar.xz: symlinks-overlay-arch
rootfs-overlay-noarch: $(OUTPUT)/rootfs-overlay-noarch/init
rootfs-overlay-noarch-tarball: $(OUTPUT)/s6-overlay-noarch-$(VERSION).tar.xz

TMPDIR := $(OUTPUT)/rootfs-overlay-noarch.tmp
TMPDIR1 := $(OUTPUT)/rootfs-overlay-noarch.tmp

$(OUTPUT)/rootfs-overlay-noarch/init: layout/rootfs-overlay/init
exec rm -rf $(TMPDIR)
exec rm -rf $(TMPDIR1)
exec mkdir -p $(OUTPUT)
exec cp -a layout/rootfs-overlay $(TMPDIR)
find $(TMPDIR) -type f -name .empty -print | xargs rm -f --
find $(TMPDIR) -name '*@VERSION@*' -print | while read name ; do mv -f "$$name" `echo "$$name" | sed -e 's/@VERSION@/$(VERSION)/'` ; done
find $(TMPDIR) -type f -size +0c -print | xargs sed -i -e 's|@SHEBANGDIR@|$(SHEBANGDIR)|g; s/@VERSION@/$(VERSION)/g;' --
exec ln -s s6-overlay-$(VERSION) $(TMPDIR)/package/admin/s6-overlay
exec mv -f $(TMPDIR) $(OUTPUT)/rootfs-overlay-noarch
exec cp -a layout/rootfs-overlay $(TMPDIR1)
find $(TMPDIR1) -type f -name .empty -print | xargs rm -f --
find $(TMPDIR1) -name '*@VERSION@*' -print | while read name ; do mv -f "$$name" `echo "$$name" | sed -e 's/@VERSION@/$(VERSION)/'` ; done
find $(TMPDIR1) -type f -size +0c -print | xargs sed -i -e 's|@SHEBANGDIR@|$(SHEBANGDIR)|g; s/@VERSION@/$(VERSION)/g;' --
exec ln -s s6-overlay-$(VERSION) $(TMPDIR1)/package/admin/s6-overlay
exec mv -f $(TMPDIR1) $(OUTPUT)/rootfs-overlay-noarch

$(OUTPUT)/s6-overlay-noarch-$(VERSION).tar.xz: rootfs-overlay-noarch
exec rm -f $@.tmp
Expand All @@ -92,16 +92,16 @@ $(OUTPUT)/s6-overlay-symlinks-noarch-$(VERSION).tar.xz: symlinks-overlay-noarch
syslogd-overlay-noarch: $(OUTPUT)/syslogd-overlay-noarch/etc/s6-overlay/s6-rc.d/syslogd/run
syslogd-overlay-noarch-tarball: $(OUTPUT)/syslogd-overlay-noarch-$(VERSION).tar.xz

TMPDIR := $(OUTPUT)/syslogd-overlay-noarch.tmp
TMPDIR2 := $(OUTPUT)/syslogd-overlay-noarch.tmp

$(OUTPUT)/syslogd-overlay-noarch/etc/s6-overlay/s6-rc.d/syslogd/run: layout/syslogd-overlay/etc/s6-overlay/s6-rc.d/syslogd/run
exec rm -rf $(TMPDIR)
exec rm -rf $(TMPDIR2)
exec mkdir -p $(OUTPUT)
exec cp -a layout/syslogd-overlay $(TMPDIR)
find $(TMPDIR) -type f -name .empty -print | xargs rm -f --
find $(TMPDIR) -name '*@VERSION@*' -print | while read name ; do mv -f "$$name" `echo "$$name" | sed -e 's/@VERSION@/$(VERSION)/'` ; done
find $(TMPDIR) -type f -size +0c -print | xargs sed -i -e 's|@SHEBANGDIR@|$(SHEBANGDIR)|g; s/@VERSION@/$(VERSION)/g;' --
exec mv -f $(TMPDIR) $(OUTPUT)/syslogd-overlay-noarch
exec cp -a layout/syslogd-overlay $(TMPDIR2)
find $(TMPDIR2) -type f -name .empty -print | xargs rm -f --
find $(TMPDIR2) -name '*@VERSION@*' -print | while read name ; do mv -f "$$name" `echo "$$name" | sed -e 's/@VERSION@/$(VERSION)/'` ; done
find $(TMPDIR2) -type f -size +0c -print | xargs sed -i -e 's|@SHEBANGDIR@|$(SHEBANGDIR)|g; s/@VERSION@/$(VERSION)/g;' --
exec mv -f $(TMPDIR2) $(OUTPUT)/syslogd-overlay-noarch

$(OUTPUT)/syslogd-overlay-noarch-$(VERSION).tar.xz: syslogd-overlay-noarch
exec rm -f $@.tmp
Expand Down
2 changes: 1 addition & 1 deletion conf/defaults.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# e.g.: make SHEBANGDIR=/usr/bin VERSION=3.0.0.1

# The version of the software being built.
VERSION := 3.0.0.0
VERSION := 3.0.0.2

# Where stuff is going to be built. Change for out-of-tree builds.
OUTPUT := output
Expand Down

0 comments on commit 25daa01

Please sign in to comment.