Print this page
3395 add /etc/profile.d and /etc/.login.d


  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 
  26 PROG= profile .login ksh.kshrc system
  27 PROGSKEL= local.login local.profile local.cshrc .profile
  28 PROGROOT= .profile .bashrc
  29 
  30 include ../Makefile.cmd
  31 
  32 ROOTROOT= $(ROOT)/root



  33 ROOTETCSKEL= $(ROOTETC)/skel
  34 ROOTETCSKELPROG= $(PROGSKEL:%=$(ROOTETCSKEL)/%)
  35 ROOTROOTPROG= $(PROGROOT:%=$(ROOTROOT)/%)
  36 FILEMODE= 0644
  37 
  38 CLOBBERFILES = profile .bashrc .profile .login
  39 
  40 .login: login.csh
  41         $(RM) .login; 
  42         $(CP) login.csh .login
  43 
  44 profile: etc-profile.sh
  45         $(RM) profile
  46         $(CP) etc-profile.sh $@
  47 
  48 .profile: dot-profile.sh
  49         $(RM) .profile
  50         $(CP) dot-profile.sh $@
  51 
  52 .bashrc: bashrc.sh
  53         $(RM) .bashrc
  54         $(CP) bashrc.sh $@
  55 
  56 .KEEP_STATE:
  57 
  58 all: $(PROG) $(PROGSKEL)
  59 
  60 $(ROOTROOT)/% \
  61 $(ROOTETCSKEL)/%: %
  62         $(INS.file)
  63 
  64 $(ROOTROOT) \



  65 $(ROOTETCSKEL):
  66         $(INS.dir)
  67 
  68 install: all $(ROOTETCSKEL) $(ROOTETCPROG) $(ROOTETCSKELPROG) $(ROOTROOTPROG)
  69 
  70 clean:
  71 
  72 clobber:
  73         $(RM) $(CLOBBERFILES)
  74 
  75 lint:


  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 #
  22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  23 # Use is subject to license terms.
  24 #
  25 
  26 PROG= profile .login ksh.kshrc system
  27 PROGSKEL= local.login local.profile local.cshrc .profile
  28 PROGROOT= .profile .bashrc
  29 
  30 include ../Makefile.cmd
  31 
  32 ROOTROOT= $(ROOT)/root
  33 ROOTETCCSH= $(ROOTETC)/csh
  34 ROOTETCCSHLOGIND= $(ROOTETC)/csh/login.d
  35 ROOTETCPROFILED= $(ROOTETC)/profile.d
  36 ROOTETCSKEL= $(ROOTETC)/skel
  37 ROOTETCSKELPROG= $(PROGSKEL:%=$(ROOTETCSKEL)/%)
  38 ROOTROOTPROG= $(PROGROOT:%=$(ROOTROOT)/%)
  39 FILEMODE= 0644
  40 
  41 CLOBBERFILES = profile .bashrc .profile .login
  42 
  43 .login: login.csh
  44         $(RM) .login; 
  45         $(CP) login.csh .login
  46 
  47 profile: etc-profile.sh
  48         $(RM) profile
  49         $(CP) etc-profile.sh $@
  50 
  51 .profile: dot-profile.sh
  52         $(RM) .profile
  53         $(CP) dot-profile.sh $@
  54 
  55 .bashrc: bashrc.sh
  56         $(RM) .bashrc
  57         $(CP) bashrc.sh $@
  58 
  59 .KEEP_STATE:
  60 
  61 all: $(PROG) $(PROGSKEL)
  62 
  63 $(ROOTROOT)/% \
  64 $(ROOTETCSKEL)/%: %
  65         $(INS.file)
  66 
  67 $(ROOTROOT) \
  68 $(ROOTETCCSH) \
  69 $(ROOTETCCSHLOGIND) \
  70 $(ROOTETCPROFILED) \
  71 $(ROOTETCSKEL):
  72         $(INS.dir)
  73 
  74 install: all $(ROOTETCCSH) $(ROOTETCCSHLOGIND)  $(ROOTETCPROFILED) $(ROOTETCSKEL) $(ROOTETCPROG) $(ROOTETCSKELPROG) $(ROOTROOTPROG)
  75 
  76 clean:
  77 
  78 clobber:
  79         $(RM) $(CLOBBERFILES)
  80 
  81 lint: