File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / quipu / dish / dish.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
Branches: MAIN, BSD
CVS tags: HEAD, BSD43reno
BSD 4.3reno

#ifdef PP
#include <isode/manifest.h>
#include <isode/quipu/util.h>
#else 
#include "manifest.h"
#include "quipu/util.h"
#endif

/*
	OPTIONS...

	PP:	Build a version of dish with the PP enhancements.
		Needs libpp.a and libdl.a from PP (PP 4.2 and above).
		Made automatically in PP/Tools/dlist.

	MANAGE: Build a management version of Dish.
		Needs libmanage.a from ISODE/others/quipu/uips/manage
		Made automatically in ISODE/others/quipu/uips/manage.
		

 */

#ifdef MANAGE
IFP call_add_alias ();
IFP call_del_alias ();
#endif

#ifdef PP
IFP call_dlist ();
#endif

main (argc, argv)
int             argc;
char          **argv;
{

	quipu_syntaxes ();

	revoke_syntax();	

#ifdef PP
	pp_quipu_init (argv[0]);
#endif

	dish_init (argc,argv);

#ifdef PP
	pp_quipu_run ();

        add_dish_command ("lmnpq", call_dlist, 2);
        add_dish_help    ("lmnpq", "[-dncheck] [-orcheck] [-orupdate] [-check] [-update]", 
			   FALSE, FALSE,
                          "List Manager Now using PP and Quipu,");
#endif

#ifdef MANAGE
	add_dish_command ("add_alias", call_add_alias, 5);
	add_dish_help	 ("add_alias", "[-flags]", FALSE, FALSE, 
			  "add an alias entry,");
	add_dish_command ("del_alias", call_del_alias, 5);
	add_dish_help	 ("del_alias", "[-flags]", FALSE, FALSE, 
			  "delete an alias entry,");
#endif

	add_dish_help ("quit","", FALSE, FALSE, "Quit the program.");
	add_dish_help (NULLCP,NULLCP,0,0,NULLCP);

	do_dish ();
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.