]> git.saurik.com Git - apple/shell_cmds.git/blobdiff - Makefile.postamble
shell_cmds-116.tar.gz
[apple/shell_cmds.git] / Makefile.postamble
index f2fd4e959d647d4f3654cb860822519e58795478..b60b7ed4e8ae720e7a69894d87e13a13f49773d2 100644 (file)
@@ -1,4 +1,94 @@
 include $(CoreOSMakefiles)/ProjectBuilder/Makefile.Postamble.Common
 
+BUILTIN_LINKS = alias.1 \
+       alloc.1 \
+       bg.1 \
+       bind.1 \
+       bindkey.1 \
+       break.1 \
+       breaksw.1 \
+       builtins.1 \
+       case.1 \
+       cd.1 \
+       chdir.1 \
+       command.1 \
+       complete.1 \
+       continue.1 \
+       default.1 \
+       dirs.1 \
+       do.1 \
+       done.1 \
+       echotc.1 \
+       elif.1 \
+       else.1 \
+       end.1 \
+       endif.1 \
+       endsw.1 \
+       esac.1 \
+       eval.1 \
+       exec.1 \
+       exit.1 \
+       export.1 \
+       fc.1 \
+       fg.1 \
+       fi.1 \
+       filetest.1 \
+       for.1 \
+       foreach.1 \
+       getopts.1 \
+       glob.1 \
+       goto.1 \
+       hash.1 \
+       hashstat.1 \
+       history.1 \
+       hup.1 \
+       if.1 \
+       jobid.1 \
+       jobs.1 \
+       limit.1 \
+       log.1 \
+       logout.1 \
+       ls-F.1 \
+       notify.1 \
+       onintr.1 \
+       popd.1 \
+       pushd.1 \
+       read.1 \
+       readonly.1 \
+       rehash.1 \
+       repeat.1 \
+       return.1 \
+       sched.1 \
+       set.1 \
+       setenv.1 \
+       settc.1 \
+       setty.1 \
+       setvar.1 \
+       shift.1 \
+       source.1 \
+       stop.1 \
+       suspend.1 \
+       switch.1 \
+       telltc.1 \
+       then.1 \
+       times.1 \
+       trap.1 \
+       type.1 \
+       ulimit.1 \
+       umask.1 \
+       unalias.1 \
+       uncomplete.1 \
+       unhash.1 \
+       unlimit.1 \
+       unset.1 \
+       unsetenv.1 \
+       until.1 \
+       wait.1 \
+       where.1 \
+       while.1
+
 after_install::
-       $(INSTALL_FILE) $(SRCROOT)/Manpages/*.1 $(DSTROOT)/usr/share/man/man1
+       @echo Installing manpage links...
+       @for manpage in $(BUILTIN_LINKS); do \
+               $(LN) -f $(DSTROOT)/usr/share/man/man1/builtin.1 $(DSTROOT)/usr/share/man/man1/$${manpage}; \
+       done