IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4686


Ignore:
Timestamp:
Jul 31, 2005, 9:57:31 AM (21 years ago)
Author:
eugene
Message:

adding help, version concepts

Location:
trunk/Ohana/src/opihi
Files:
25 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/Makefile

    r3525 r4686  
    5151$(SDIR)/usleep.$(ARCH).o     \
    5252$(SDIR)/sleep.$(ARCH).o      \
     53$(SDIR)/version.$(ARCH).o    \
    5354$(SDIR)/wait.$(ARCH).o       \
    5455$(SDIR)/which.$(ARCH).o
  • trunk/Ohana/src/opihi/cmd.basic/init.c

    r2598 r4686  
    3131int substr_func     PROTO((int, char **));
    3232int wait            PROTO((int, char **));
     33int version         PROTO((int, char **));
    3334int which           PROTO((int, char **));
    3435
     
    6667  {"strlen",        strlen_func,        "string length"},
    6768  {"substr",        substr_func,        "substring"},
     69  {"version",       version,            "list version information"},
    6870  {"wait",          wait,               "wait until return is typed"},
    6971  {"which",         which,              "show command *"}
  • trunk/Ohana/src/opihi/pantasks/Makefile

    r4684 r4686  
    1414DESTINC =       $(LINC)
    1515DESTMAN =       $(LMAN)
     16DESTHLP =       $(LHLP)/sched
    1617
    1718INCS    =       -I$(INC) -I$(LINC) -I$(XINC)
     
    2021LIBS2   =       -lbasiccmd -ldatacmd -lastrocmd -lshell -ldata
    2122LIBS    =       $(LIBS2) $(LIBS1)
    22 CFLAGS  =       $(INCS)
     23CFLAGS  =       $(INCS) -DHELPDIR_DEFAULT=$(DESTHLP)
    2324CCFLAGS =       $(LIBS)
    2425
     
    7475$(BIN)/scheduler.$(ARCH) : $(funcs) $(cmds) $(libs)
    7576
    76 install: $(DESTBIN)/scheduler
     77install: $(DESTBIN)/scheduler help
     78
     79help: cmd.basic.help cmd.data.help cmd.astro.help sched.help
    7780
    7881# utilities #################################################
     
    103106        rm -f $@
    104107        cp $^ $@
     108
     109%.help:
     110        @if [ ! -d $(DESTHLP) ]; then mkdir -p $(DESTHLP); fi
     111        rm -f $(HOME)/$*/help/*~
     112        rm -f $(HOME)/$*/help/#*
     113        cp $(HOME)/$*/help/* $(DESTHLP)/
    105114
    106115clean:
  • trunk/Ohana/src/opihi/pantasks/scheduler.c

    r4684 r4686  
    5555  set_str_variable ("PROMPT", opihi_prompt);
    5656  set_str_variable ("RCFILE", opihi_rcfile);
     57# define xstr(s) str(s)
     58# define str(s) #s
     59# ifdef HELPDIR_DEFAULT
     60  set_str_variable ("HELPDIR", xstr(HELPDIR_DEFAULT));
     61# endif
    5762
    5863  /* here we open the history file for append.  it this fails, we
Note: See TracChangeset for help on using the changeset viewer.