mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add /etc/sortix-release.
This commit is contained in:
parent
5ee7ff4e67
commit
bdd9e2851b
1 changed files with 12 additions and 0 deletions
12
Makefile
12
Makefile
|
@ -80,6 +80,8 @@ endif
|
|||
for ENTRY in $$(ls -A "$(SYSROOT)" | grep -Ev '^(dev|etc|home|mnt|root|src|tix|tmp|var)$$'); do \
|
||||
cp -RTv "$(SYSROOT)/$$ENTRY" "$(DESTDIR)/$$ENTRY" || exit $$?; \
|
||||
done
|
||||
cp -TPv "$(SYSROOT)/etc/os-release" "$(DESTDIR)/etc/os-release"
|
||||
cp -TPv "$(SYSROOT)/etc/sortix-release" "$(DESTDIR)/etc/sortix-release"
|
||||
|
||||
.PHONY: clean-build-tools
|
||||
clean-build-tools:
|
||||
|
@ -156,6 +158,16 @@ sysroot-system: sysroot-fsh sysroot-base-headers
|
|||
echo /usr >> "$(SYSROOT)/tix/manifest/system"
|
||||
echo /var >> "$(SYSROOT)/tix/manifest/system"
|
||||
echo /var/empty >> "$(SYSROOT)/tix/manifest/system"
|
||||
(echo 'NAME="Sortix"' && \
|
||||
echo 'VERSION="$(VERSION)"' && \
|
||||
echo 'ID=sortix' && \
|
||||
echo 'VERSION_ID="$(VERSION)"' && \
|
||||
echo 'PRETTY_NAME="Sortix $(VERSION)"' && \
|
||||
echo 'SORTIX_ABI=0.0' && \
|
||||
true) > "$(SYSROOT)/etc/sortix-release"
|
||||
echo /etc/sortix-release >> "$(SYSROOT)/tix/manifest/system"
|
||||
ln -sf sortix-release "$(SYSROOT)/etc/os-release"
|
||||
echo /etc/os-release >> "$(SYSROOT)/tix/manifest/system"
|
||||
find share | sed -e 's,^,/,' >> "$(SYSROOT)/tix/manifest/system"
|
||||
cp -RT share "$(SYSROOT)/share"
|
||||
export SYSROOT="$(SYSROOT)" && \
|
||||
|
|
Loading…
Reference in a new issue