Makefile
branchwindows
changeset 349 b271be84da5e
parent 348 b155c43eaa56
equal deleted inserted replaced
348:b155c43eaa56 349:b271be84da5e
    15 
    15 
    16 # WARNING: this is experimental
    16 # WARNING: this is experimental
    17 setup-useradd: installfiles useradd inituser
    17 setup-useradd: installfiles useradd inituser
    18 
    18 
    19 # WARNING: this is experimental
    19 # WARNING: this is experimental
    20 setup-windows: installfiles adduser-windows inituser-windows
    20 setup-windows: installfiles adduser-windows
    21 
    21 
    22 installetc:
    22 installetc:
    23 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)
    23 	$(INSTALL) -d $(DESTDIR)$(ETCDIR)
    24 	$(INSTALL) -m 644 -t $(DESTDIR)$(ETCDIR) \
    24 	$(INSTALL) -m 644 -t $(DESTDIR)$(ETCDIR) \
    25 	    src/init/conf/access.conf
    25 	    src/init/conf/access.conf
    74 	su -l -c "$(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)" $(NEWUSER)
    74 	su -l -c "$(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)" $(NEWUSER)
    75 
    75 
    76 # WARNING: this is experimental
    76 # WARNING: this is experimental
    77 inituser-windows:
    77 inituser-windows:
    78 	mkdir /home/$(NEWUSER)
    78 	mkdir /home/$(NEWUSER)
       
    79 	chown $(NEWUSER) /home/$(NEWUSER)
    79 	chmod 755 $(DESTDIR)$(LIBDIR)/init/*
    80 	chmod 755 $(DESTDIR)$(LIBDIR)/init/*
    80 	ssh $(NEWUSER)@localhost "sh $(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)"
    81 	ssh $(NEWUSER)@localhost "sh $(DESTDIR)$(LIBDIR)/init/hginit $(DESTDIR)$(LIBDIR)"
    81 
    82