minix/etc/Makefile
Ben Gras 9748a6536e Fixed an mtree bugs that caused permissions and ownerships for / to
be wrong.

Made the install process quieter when install already done.

rc and daily now is more readonly-/usr aware (for cd).
2005-05-03 15:41:02 +00:00

24 lines
871 B
Makefile

ETC=/etc/
USRETC=/usr/etc/
FILES1=fstab group hostname.file inet.conf motd mtab passwd profile protocols rc services termcap ttytab utmp
FILES2=shadow
FILES3=daily dhcptags.conf rc
all::
clean::
install::
@echo "Installing /etc and /usr/etc.."
mkdir -p $(ETC)
@for f in $(FILES1); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 755 $(ETC)/$$f; fi; done
@for f in $(FILES2); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 600 $(ETC)/$$f; fi; done
@echo "Making hierarchy.."
sh mtree.sh mtree/minix.tree
@for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
@echo "Making devices.."
cd /dev && sh /usr/src/commands/scripts/MAKEDEV.sh std 2>/dev/null
@echo "Making user homedirs.."
for u in bin ast; do (cd ast && tar cf - .[a-z]* ) | (cd ~$u && tar xf - ); done