Mercurial > vanilla
diff core/filesystem/filesystem.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
line wrap: on
line diff
--- a/core/filesystem/filesystem.sh Fri Oct 15 16:07:30 2021 +0200 +++ b/core/filesystem/filesystem.sh Wed Oct 27 11:32:16 2021 +0200 @@ -21,34 +21,37 @@ PKGLICENSE="ISC" PKGSUMMARY="base filesystem directories" -install -d $DESTDIR/bin -install -d $DESTDIR/dev -install -d $DESTDIR/dev/pts -install -d $DESTDIR/etc -install -d $DESTDIR/etc/rc.d -install -d $DESTDIR/home -install -d $DESTDIR/include -install -d $DESTDIR/lib -install -d $DESTDIR/mnt -install -d $DESTDIR/proc -install -d $DESTDIR/root -install -d $DESTDIR/share +build() +{ + install -d $DESTDIR/bin + install -d $DESTDIR/dev + install -d $DESTDIR/dev/pts + install -d $DESTDIR/etc + install -d $DESTDIR/etc/rc.d + install -d $DESTDIR/home + install -d $DESTDIR/include + install -d $DESTDIR/lib + install -d $DESTDIR/mnt + install -d $DESTDIR/proc + install -d $DESTDIR/root + install -d $DESTDIR/share -for i in 1 2 3 4 5 6 7 8; do - install -d $DESTDIR/share/man/man$i -done + for i in 1 2 3 4 5 6 7 8; do + install -d $DESTDIR/share/man/man$i + done -install -d $DESTDIR/src -install -d $DESTDIR/sys -install -d $DESTDIR/var/lib/vpk -install -d $DESTDIR/var/log -install -d $DESTDIR/var/empty -install -d $DESTDIR/var/spool -install -dm 1777 $DESTDIR/tmp -install -dm 1777 $DESTDIR/var/run -install -dm 1777 $DESTDIR/var/tmp + install -d $DESTDIR/src + install -d $DESTDIR/sys + install -d $DESTDIR/var/lib/vpk + install -d $DESTDIR/var/log + install -d $DESTDIR/var/empty + install -d $DESTDIR/var/spool + install -dm 1777 $DESTDIR/tmp + install -dm 1777 $DESTDIR/var/run + install -dm 1777 $DESTDIR/var/tmp -# Compatibility symlinks. -ln -sf / $DESTDIR/usr -ln -sf /bin $DESTDIR/sbin -ln -sf /var/run $DESTDIR/run + # Compatibility symlinks. + ln -sf / $DESTDIR/usr + ln -sf /bin $DESTDIR/sbin + ln -sf /var/run $DESTDIR/run +}