pkg_base/derived/PkgBaseBundle.m3


MODULE PkgBaseBundle;
Generated by m3bundle; see its manpage.

IMPORT Bundle, BundleRep, Text;
IMPORT Thread, Wr, TextWr;

TYPE T = Bundle.T OBJECT OVERRIDES
           get      := LookUp;
           getNames := GetNames;
         END;

TYPE Texts = REF ARRAY OF TEXT;

VAR
  bundle: T     := NIL;
  names : Texts := NIL;

PROCEDURE Get(): Bundle.T =
  BEGIN
    IF (bundle = NIL) THEN bundle := NEW (T) END;
    RETURN bundle;
  END Get;

PROCEDURE GetNames (<*UNUSED*> self: T): Texts =
  BEGIN
    IF names = NIL THEN
      names := NEW (Texts, NUMBER (Names));
      names^ := Names;
    END;
    RETURN names;
  END GetNames;

PROCEDURE LookUp (<*UNUSED*> self: T;  element: TEXT): TEXT =
  BEGIN
    FOR i := 0 TO LAST (Names)-1 DO
      IF Text.Equal (Names[i], element) THEN
        IF Elements[i] = NIL THEN Elements[i] := GetElt (i) END;
        RETURN Elements[i];
      END;
    END;
    RETURN NIL;
  END LookUp;

CONST Names = ARRAY [0..1] OF TEXT {
  "PkgBase.DefaultData",
  NIL
};

VAR Elements := ARRAY [0..1] OF TEXT {
  NIL (* E0 .. E0_12 *),
  NIL
};

PROCEDURE GetElt (n: INTEGER): TEXT =
  <*FATAL Thread.Alerted, Wr.Failure *>
  VAR wr := TextWr.New ();
  BEGIN
    CASE n OF
    | 0 =>
        Wr.PutText (wr, E0);
        Wr.PutText (wr, E0_0);
        Wr.PutText (wr, E0_1);
        Wr.PutText (wr, E0_2);
        Wr.PutText (wr, E0_3);
        Wr.PutText (wr, E0_4);
        Wr.PutText (wr, E0_5);
        Wr.PutText (wr, E0_6);
        Wr.PutText (wr, E0_7);
        Wr.PutText (wr, E0_8);
        Wr.PutText (wr, E0_9);
        Wr.PutText (wr, E0_10);
        Wr.PutText (wr, E0_11);
        Wr.PutText (wr, E0_12);
    ELSE (*skip*)
    END;
    RETURN TextWr.ToText (wr);
  END GetElt;

CONST E0 =
   "# ---------------------------------------------------------------------"
 & "-------\n# DEC SRC Modula-3 packages\n# -------------------------------"
 & "---------------------------------------------\npkgkind DEC_SRC_M3_UNIX\n"
 & "  ostype \"bsd|unix|linux|sunos|solaris\" has file \"src/m3makefile\" a"
 & "nd dir \"src\"\n  inherit actions BASIC_VC_UNIX_OVERRIDES\n  inherit ac"
 & "tions BASIC_VC\n  action build \t\t\t\"m3build {?OPT} {?M3BUILDOPT} 2> "
 & ".errors && m3err .errors\"\n  action buildlocal\t\t\"m3build {?OPT} {?M"
 & "3BUILDOPT} {?optVerbose} {?optQuiet} -O  2> .errors && m3err .errors\"\n"
 & "  action builtok \t\t\"test -f .errors && m3err .errors\"\n  action shi"
 & "pglobal\t\t\"m3ship {?OPT} {?M3SHIPOPT} {?optVerbose} {?optQuiet} 2> .e"
 & "rrors && m3err .errors\"\n  action shipproject\t\t\"m3ship {?OPT} {?M3S"
 & "HIPOPT} {?optVerbose} {?optQuiet} 2> .errors && m3err .errors\"\n  acti"
 & "on shiplocal\t\t\"echo no shipping needed\"\n  action clean\t\t\t\"m3bu"
 & "ild {?OPT} {?M3BUILDOPT} {?optVerbose} {?optQuiet} clean 2> .errors && "
 & "m3err .errors\"\n  action realclean\t\t\"rm {?OPT} {?RMOPT} -f PkgDep P"
 & "kgCDT PkgCRT .errors ; m3build clean\"\n  action mkdep\t\t\t\"m3dep {?O"
 & "PT} > PkgDep ; m3ovr -v {:LOCATIONS} > src/m3overrides 2> /dev/null\"\n"
 & "\n# -------------------------------------------------------------------"
 & "---------\n# DEC SRC Modula-3 packages on NT\n# -----------------------"
 & "-----------------------------------------------------\npkgkind DEC_SRC_"
 & "M3_WIN32\n  ostype \"winnt|windows|win32|nt|cygwin\" has file \"src/m3m"
 & "akefile\" and dir \"src\"\n  #action externalshell\t\t\"cmd.exe /c \"\n"
 & "  inherit actions BASIC_VC\n  action build \t\t\t\"m3build {?OPT} {?M3B"
 & "UILDOPT} 2> PkgErr && m3err PkgErr\"\n  action buildlocal\t\t\"m3build "
 & "{?OPT} {?M3BUILDOPT} -O  2> PkgErr && m3err PkgErr\"\n  action builtok "
 & "\t\t\"test -f .errors && m3err .errors\"\n  action shipglobal\t\t\"m3sh"
 & "ip {?OPT} {?M3SHIPOPT} 2> PkgErr && m3err PkgErr\"\n  action shipprojec"
 & "t\t\t\"m3ship {?OPT} {?M3SHIPOPT} 2> PkgErr && m3err PkgErr\"\n  action"
 & " shiplocal\t\t\"echo no shipping needed\"\n  action clean\t\t\t\"m3buil"
 & "d {?OPT} {?M3BUILDOPT} clean 2> PkgErr && m3err PkgEr";

CONST E0_0 =
   "r\"\n  action realclean\t\t\"m3msh rm {?OPT} {?RMOPT}  PkgDep PkgCDT Pk"
 & "gCRT PkgErr ; m3build clean\"\n  #action mkdep\t\t\t\"m3dep {?OPT} {?M3"
 & "DEPOPT} > PkgDep\"\n  action mkdep\t\t\t\"m3dep {?OPT} {?M3DEPOPT} > Pk"
 & "gDep &&  m3ovr -v {!LOCATIONS} > src/m3overrides 2> PkgErr\"\n\n# -----"
 & "-----------------------------------------------------------------------"
 & "\n# Critical Mass Reactor Modula-3 packages\n# ------------------------"
 & "----------------------------------------------------\npkgkind CRITICAL_"
 & "MASS_M3_UNIX\n  ostype \"bsd|unix|linux|sunos|solaris\" has file \"src/"
 & "m3makefile\" and dir \"src\"\n  inherit actions BASIC_VC_UNIX_OVERRIDES"
 & "\n  inherit actions BASIC_VC\n  action build \t\t\t\"cm3 {?OPT} {?CM3OP"
 & "T} -build 2> .errors && m3err .errors\"\n  action buildlocal\t\t\"cm3 {"
 & "?OPT} {?CM3OPT} -build -override  2> .errors && m3err .errors\"\n  acti"
 & "on builtok \t\t\"test -f .errors && m3err .errors\"\n  action shipgloba"
 & "l\t\t\"cm3 {?OPT} {?CM3OPT} -ship 2> .errors && m3err .errors\"\n  acti"
 & "on shipproject\t\t\"cm3 {?OPT} {?CM3OPT} -ship 2> .errors && m3err .err"
 & "ors\"\n  action shiplocal\t\t\"echo no shipping needed\"\n  action clea"
 & "n\t\t\t\"cm3 {?OPT} {?CM3OPT} -clean 2> .errors && m3err .errors\"\n  a"
 & "ction realclean\t\t\"rm {?OPT} {?RMOPT} -f PkgDep PkgCDT PkgCRT .errors"
 & " ; cm3 {?OPT} {?CM3OPT} -clean\"\n  action mkdep\t\t\t\"m3dep {?OPT} {?"
 & "M3DEPOPT} > PkgDep ; m3ovr -v {!LOCATIONS} > src/m3overrides 2> /dev/nu"
 & "ll\"\n\n# -------------------------------------------------------------"
 & "---------------\n# Critical Mass Reactor Modula-3 packages\n# ---------"
 & "-------------------------------------------------------------------\npk"
 & "gkind CRITICAL_MASS_M3_WIN32\n  ostype \"winnt|windows|win32|nt|cygwin\""
 & " has file \"src/m3makefile\" and dir \"src\"\n  #action externalshell\t"
 & "\t\"cmd.exe /c \"\n  inherit actions BASIC_VC\n  action build \t\t\t\"c"
 & "m3 {?OPT} {?CM3OPT} -build 2> PkgErr && m3err PkgErr\"\n  action buildl"
 & "ocal\t\t\"cm3 {?OPT} {?CM3OPT} -build -override  2> PkgErr && m3err Pkg"
 & "Err\"\n  action builtok \t\t\"test -f .errors && m3err .errors\"\n  act"
 & "ion shipglobal\t\t\"cm3 {?OPT} {?CM3OPT} -ship 2> PkgErr &";

CONST E0_1 =
   "& m3err PkgErr\"\n  action shipproject\t\t\"cm3 {?OPT} {?CM3OPT} -ship "
 & "2> PkgErr && m3err PkgErr\"\n  action shiplocal\t\t\"echo no shipping n"
 & "eeded\"\n  action clean\t\t\t\"cm3 {?OPT} {?CM3OPT} -clean 2> PkgErr &&"
 & " m3err PkgErr\"\n  action realclean\t\t\"m3msh rm {?OPT} {?RMOPT}  PkgD"
 & "ep PkgCDT PkgCRT PkgErr ; cm3 {?OPT} {?CM3OPT} -clean\"\n  #action mkde"
 & "p\t\t\t\"m3dep {?OPT} {?M3DEPOPT} > PkgDep\"\n  action mkdep\t\t\t\"m3d"
 & "ep {?OPT} {?M3DEPOPT} > PkgDep &&  m3ovr -v {!LOCATIONS} > src/m3overri"
 & "des 2> PkgErr\"\n\n# --------------------------------------------------"
 & "--------------------------\n# CM3 5.1 System Packages on UNIX\n# ------"
 & "----------------------------------------------------------------------\n"
 & "pkgkind CRITICAL_MASS_M3_SYS_UNIX\n  ostype \"bsd|unix|linux|sunos|sola"
 & "ris\" has file \"src/m3makefile\" and dir \"src\"\n  inherit actions BA"
 & "SIC_VC_UNIX_OVERRIDES\n  inherit actions BASIC_VC\n  inherit actions CR"
 & "ITICAL_MASS_M3_SYS\n\n# -----------------------------------------------"
 & "-----------------------------\n# CM3 5.1 System Packages on Win32\n# --"
 & "-----------------------------------------------------------------------"
 & "---\npkgkind CRITICAL_MASS_M3_SYS_WIN32\n  ostype \"winnt|windows|win32"
 & "|nt|cygwin\" has file \"src/m3makefile\" and dir \"src\"\n  inherit act"
 & "ions CRITICAL_MASS_M3_SYS\n\n# ----------------------------------------"
 & "------------------------------------\n# CM3 5.1 System Packages\n# ----"
 & "-----------------------------------------------------------------------"
 & "-\npkgkind CRITICAL_MASS_M3_SYS\n  has file \"src/m3makefile\" and dir "
 & "\"src\"\n  inherit actions BASIC_VC\n  action build \t\t\t\"m3msh -- rm"
 & " .bok && cm3 {?OPT} {?CM3OPT} -DROOT={?ROOT} -build 2> PkgErr && m3msh "
 & "-- touch .bok\"\n  action buildlocal\t\t\"m3msh -- rm .bok && cm3 {?OPT"
 & "} {?CM3OPT} -DROOT={?ROOT} -build -override && m3msh -- touch .bok\"\n "
 & " action builtok \t\t\"test -f .bok\"\n  action shipglobal\t\t\"cm3 -DRO"
 & "OT={?ROOT} {?OPT} {?CM3OPT} -ship 2> PkgErr && m3err PkgErr\"\n  action"
 & " shipproject\t\t\"cm3 -DROOT={?ROOT} {?OPT} {?CM3OPT} -ship 2> PkgErr &"
 & "& m3err PkgErr\"\n  action shiplocal\t\t\"e";

CONST E0_2 =
   "cho no shipping needed\"\n  action clean\t\t\t\"cm3 -DROOT={?ROOT} {?OP"
 & "T} {?CM3OPT} -clean 2> PkgErr && m3err PkgErr\"\n  action realclean\t\t"
 & "\"m3msh rm {?OPT} {?RMOPT}  PkgDep PkgCDT PkgCRT PkgErr ; cm3 -DROOT={?"
 & "ROOT} {?OPT} {?CM3OPT} -clean\"\n  action mkdep\t\t\t\"m3dep {?OPT} {?M"
 & "3DEPOPT} > PkgDep && test -f src/m3overrides || m3ovr -v {!LOCATIONS} >"
 & " src/m3overrides 2> PkgErr\"\n\n# -------------------------------------"
 & "---------------------------------------\n# COMPACT C and C++ packages\n"
 & "# ---------------------------------------------------------------------"
 & "-------\npkgkind COMPACT_CC_UNIX\n  ostype \"bsd|unix|linux|sunos|solar"
 & "is\" has dir \"src\" and dir \"inc\" and \n  dir \"doc\" and file \"Pkg"
 & "Desc\"\n  inherit actions COMPACT_VC_UNIX_OVERRIDES\n  inherit actions "
 & "COMPACT_VC\n  inherit actions COMPACT_BUILD\n\n# ----------------------"
 & "------------------------------------------------------\n# COMPACT C and"
 & " C++ packages\n# ------------------------------------------------------"
 & "----------------------\npkgkind COMPACT_CC_WIN32\n  ostype \"winnt|wind"
 & "ows|win32|nt|cygwin\" has dir \"src\" and dir \"inc\" and \n  dir \"doc"
 & "\" and file \"PkgDesc\"\n  inherit actions COMPACT_VC\n  inherit action"
 & "s COMPACT_BUILD\n\n# --------------------------------------------------"
 & "--------------------------\n# COMPACT JAVA packages\n# ----------------"
 & "------------------------------------------------------------\npkgkind C"
 & "OMPACT_JAVA_UNIX\n  ostype \"bsd|unix|linux|sunos|solaris\"\n  inherit "
 & "predicates COMPACT_JAVA\n  inherit actions COMPACT_JAVA\n  inherit acti"
 & "ons COMPACT_VC_UNIX_OVERRIDES\n\npkgkind COMPACT_JAVA_WIN32\n  ostype \""
 & "winnt|windows|win32|nt|cygwin\"\n  inherit predicates COMPACT_JAVA\n  i"
 & "nherit actions COMPACT_JAVA\n\npkgkind COMPACT_JAVA\n  has dir \"java\""
 & " and dir \"html\" and file \"PkgDesc\" and nomatch \".*\\\\.java\"\n  i"
 & "nherit actions COMPACT_VC\n  inherit actions COMPACT_BUILD\n\n# -------"
 & "---------------------------------------------------------------------\n"
 & "# SIMPLE COMPACT JAVA packages\n# -------------------------------------"
 & "----------------------------------";

CONST E0_3 =
   "-----\npkgkind SIMPLE_COMPACT_JAVA_UNIX\n  ostype \"bsd|unix|linux|suno"
 & "s|solaris\"\n  inherit predicates SIMPLE_COMPACT_JAVA\n  inherit action"
 & "s SIMPLE_COMPACT_JAVA\n  inherit actions COMPACT_VC_UNIX_OVERRIDES\n\np"
 & "kgkind SIMPLE_COMPACT_JAVA_WIN32\n  ostype \"winnt|windows|win32|nt|cyg"
 & "win\"\n  inherit predicates SIMPLE_COMPACT_JAVA\n  inherit actions SIMP"
 & "LE_COMPACT_JAVA\n\npkgkind SIMPLE_COMPACT_JAVA\n  has file \"PkgDesc\" "
 & "and match \".*\\.java\" and nodir \"java\"\n  inherit actions COMPACT_V"
 & "C_UNIX_OVERRIDES\n  inherit actions COMPACT_VC\n  inherit actions COMPA"
 & "CT_BUILD\n\n# ---------------------------------------------------------"
 & "-------------------\n# COMPACT SIMPLE packages\n# ---------------------"
 & "-------------------------------------------------------\npkgkind COMPAC"
 & "T_SIMPLE_UNIX\n  ostype \"bsd|unix|linux|sunos|solaris\"\n  inherit pre"
 & "dicates COMPACT_SIMPLE\n  inherit actions COMPACT_VC_UNIX_OVERRIDES\n  "
 & "inherit actions COMPACT_SIMPLE\n\npkgkind COMPACT_SIMPLE_WIN32\n  ostyp"
 & "e \"winnt|windows|win32|nt|cygwin\"\n  inherit predicates COMPACT_SIMPL"
 & "E\n  inherit actions COMPACT_SIMPLE\n\npkgkind COMPACT_SIMPLE\n  inheri"
 & "t predicates COMPACT_PKG\n  inherit actions COMPACT_VC\n  action build\t"
 & "\t\t\"-\"\n  action buildlocal\t\t\"-\"\n  action builtok \t\t\"-\"\n  "
 & "action shipglobal\t\t\"-\"\n  action shipproject\t\t\"-\"\n  action shi"
 & "plocal\t\t\"-\"\n  action clean\t\t\t\"-\"\n  action realclean\t\t\"m3m"
 & "sh rm {?OPT} {?RMOPT} PkgDep PkgCDT PkgCRT .errors ; pkgm -X {?PKGMOPT}"
 & " -F -realclean\"\n  action mkdep\t\t\t\"echo \'\' >> PkgDep\"\n\n# ----"
 & "-----------------------------------------------------------------------"
 & "-\n# SIMPLE VC packages\n# --------------------------------------------"
 & "--------------------------------\n# These are packages that offer only "
 & "the basic version control operations but \n# may actually be reocgnized"
 & ", as they contain a PkgTags file. BASIC_VC \n# packages are just an abs"
 & "traction and cannot be actually detected, as they\n# have no defining s"
 & "tructure or content.\npkgkind SIMPLE_VC_UNIX\n  ostype \"bsd|unix|linux"
 & "|sunos|solaris\"\n  inherit predicates SIMPLE_VC\n  i";

CONST E0_4 =
   "nherit actions BASIC_VC_UNIX_OVERRIDES\n  inherit actions SIMPLE_VC\n\n"
 & "pkgkind SIMPLE_VC_WIN32\n  ostype \"winnt|windows|win32|nt|cygwin\"\n  "
 & "inherit predicates SIMPLE_VC\n  inherit actions SIMPLE_VC\n\npkgkind SI"
 & "MPLE_VC\n  has file \"PkgTags\"\n  inherit actions BASIC_VC\n  action b"
 & "uild\t\t\t\"-\"\n  action buildlocal\t\t\"-\"\n  action builtok \t\t\"-"
 & "\"\n  action shipglobal\t\t\"-\"\n  action shipproject\t\t\"-\"\n  acti"
 & "on shiplocal\t\t\"-\"\n  action clean\t\t\t\"-\"\n  action realclean\t\t"
 & "\"m3msh rm {?OPT} {?RMOPT} PkgDep PkgCDT PkgCRT .errors\"\n  action mkd"
 & "ep\t\t\t\"echo \'\' >> PkgDep\"\n\n# ----------------------------------"
 & "------------------------------------------\n# COMPACT project managemen"
 & "t packages\n# ---------------------------------------------------------"
 & "-------------------\npkgkind COMPACT_PRJM_UNIX\n  ostype \"bsd|unix|lin"
 & "ux|sunos|solaris\"\n  inherit predicates COMPACT_PRJM\n  inherit action"
 & "s COMPACT_VC_UNIX_OVERRIDES\n  inherit actions COMPACT_PRJM\n\npkgkind "
 & "COMPACT_PRJM_WIN32\n  ostype \"winnt|windows|win32|nt|cygwin\"\n  inher"
 & "it predicates COMPACT_PRJM\n  inherit actions COMPACT_PRJM\n\npkgkind C"
 & "OMPACT_PRJM\n  inherit predicates COMPACT_PRJ\n  inherit actions COMPAC"
 & "T_VC\n  action build\t\t\t\"prjm {?OPT} {?PKGMOPT} {?optForce} {?optVer"
 & "bose} {?optDebug} {?optQuiet} -buildglobal\"\n  action buildlocal\t\t\""
 & "prjm {?OPT} {?PRJMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet"
 & "} -buildlocal\"\n  action builtok\t\t\"prjm {?OPT} {?PRJMOPT} {?optForc"
 & "e} {?optVerbose} {?optDebug} {?optQuiet} -builtok\"\n  action shipgloba"
 & "l\t\t\"echo \'shipping of sub-projects disabled\'\"\n  action shipproje"
 & "ct\t\t\"echo \'shipping of sub-projects disabled\'\"\n  action shiploca"
 & "l\t\t\"echo \'shipping of sub-projects disabled\'\"\n  action clean\t\t"
 & "\t\"prjm {?OPT} {?PRJMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQ"
 & "uiet} -clean\"\n  action realclean\t\t\"prjm {?OPT} {?PRJMOPT} {?optFor"
 & "ce}  -realclean\"\n  action mkdep\t\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?op"
 & "tForce} {?optVerbose} {?optDebug} {?optQuiet} -deps\"\n\n# ------------"
 & "----------------------------------------------------------------\n# pro"
 & "bably BROKEN";

CONST E0_5 =
   " packages with only a PkgTags, PkgDep, PkgCRT, or PkgCDT\n# file left\n"
 & "# ---------------------------------------------------------------------"
 & "-------\npkgkind COMPACT_PKG_TAGS_UNIX\n  ostype \"bsd|unix|linux|sunos"
 & "|solaris\"\n  inherit predicates COMPACT_PKG_TAGS\n  inherit actions CO"
 & "MPACT_VC_UNIX_OVERRIDES\n  inherit actions COMPACT_PKG_TAGS\n\npkgkind "
 & "COMPACT_PKG_TAGS_WIN32\n  ostype \"winnt|windows|win32|nt|cygwin\"\n  i"
 & "nherit predicates COMPACT_PKG_TAGS\n  inherit actions COMPACT_PKG_TAGS\n"
 & "\npkgkind COMPACT_PKG_DEPS_UNIX\n  ostype \"bsd|unix|linux|sunos|solari"
 & "s\"\n  inherit predicates COMPACT_PKG_DEPS\n  inherit actions COMPACT_V"
 & "C_UNIX_OVERRIDES\n  inherit actions COMPACT_PKG_DEPS\n\npkgkind COMPACT"
 & "_PKG_DEPS_WIN32\n  ostype \"winnt|windows|win32|nt|cygwin\"\n  inherit "
 & "predicates COMPACT_PKG_DEPS\n  inherit actions COMPACT_PKG_DEPS\n\npkgk"
 & "ind COMPACT_PKG_CRT_UNIX\n  ostype \"bsd|unix|linux|sunos|solaris\"\n  "
 & "inherit predicates COMPACT_PKG_CRT\n  inherit actions COMPACT_VC_UNIX_O"
 & "VERRIDES\n  inherit actions COMPACT_PKG_CRT\n\npkgkind COMPACT_PKG_CRT_"
 & "WIN32\n  ostype \"winnt|windows|win32|nt|cygwin\"\n  inherit predicates"
 & " COMPACT_PKG_CRT\n  inherit actions COMPACT_PKG_CRT\n\npkgkind COMPACT_"
 & "PKG_CDT_UNIX\n  ostype \"bsd|unix|linux|sunos|solaris\"\n  inherit pred"
 & "icates COMPACT_PKG_CDT\n  inherit actions COMPACT_VC_UNIX_OVERRIDES\n  "
 & "inherit actions COMPACT_PKG_CDT\n\npkgkind COMPACT_PKG_CDT_WIN32\n  ost"
 & "ype \"winnt|windows|win32|nt|cygwin\"\n  inherit predicates COMPACT_PKG"
 & "_CDT\n  inherit actions COMPACT_PKG_CDT\n\npkgkind M3_OVR_UNIX\n  ostyp"
 & "e \"bsd|unix|linux|sunos|solaris\"\n  inherit predicates M3_OVR\n  inhe"
 & "rit actions BASIC_VC_UNIX_OVERRIDES\n  inherit actions M3_OVR\n\npkgkin"
 & "d M3_OVR_WIN32\n  ostype \"winnt|windows|win32|nt|cygwin\"\n  inherit p"
 & "redicates M3_OVR\n  inherit actions M3_OVR\n\npkgkind COMPACT_PRJ_SNAPS"
 & "_UNIX\n  ostype \"bsd|unix|linux|sunos|solaris\"\n  inherit predicates "
 & "COMPACT_PRJ_SNAPS\n  inherit actions COMPACT_VC_UNIX_OVERRIDES\n  inher"
 & "it actions COMPACT_PRJ_SNAPS\n\npkgkind COMPACT_PRJ_SNAPS_WIN32\n  osty"
 & "pe \"winnt|windows|win32|nt|";

CONST E0_6 =
   "cygwin\"\n  inherit predicates COMPACT_PRJ_SNAPS\n  inherit actions COM"
 & "PACT_PRJ_SNAPS\n\npkgkind M3_OVR\n  has file src/m3overrides\n  inherit"
 & " actions BASIC_VC\n\n# ------------------------------------------------"
 & "----------------------------\n# COMPACT_PKG packages\n# ---------------"
 & "-------------------------------------------------------------\npkgkind "
 & "COMPACT_PKG\n  has file \"PkgDesc\"\n  inherit actions COMPACT_VC\n\npk"
 & "gkind COMPACT_PKG_TAGS\n  has file \"PkgTags\"\n  inherit actions COMPA"
 & "CT_VC\n\npkgkind COMPACT_PKG_DEPS\n  has file \"PkgDep\"\n  inherit act"
 & "ions COMPACT_VC\n\npkgkind COMPACT_PKG_CRT\n  has file \"PkgCRT\"\n  in"
 & "herit actions COMPACT_VC\n\npkgkind COMPACT_PKG_CDT\n  has file \"PkgCD"
 & "T\"\n  inherit actions COMPACT_VC\n\n# --------------------------------"
 & "--------------------------------------------\n# COMPACT_PRJ packages\n#"
 & " ----------------------------------------------------------------------"
 & "------\npkgkind COMPACT_PRJ\n  has file \"PrjDesc\"\n  inherit actions "
 & "COMPACT_VC\n\npkgkind COMPACT_PRJ_SNAPS\n  has dir \"snaps\"\n  inherit"
 & " actions COMPACT_VC\n\n# ----------------------------------------------"
 & "------------------------------\n# BASIC_VC_MAKE\n# --------------------"
 & "--------------------------------------------------------\npkgkind BASIC"
 & "_VC_MAKE_UNIX\n  ostype \"bsd|unix|linux|sunos|solaris\"\n  inherit pre"
 & "dicates BASIC_VC_MAKE\n  inherit actions BASIC_VC_UNIX_OVERRIDES\n  inh"
 & "erit actions BASIC_VC_MAKE\n\npkgkind BASIC_VC_MAKE_WIN32\n  ostype \"w"
 & "innt|windows|win32|nt|cygwin\"\n  inherit predicates BASIC_VC_MAKE\n  i"
 & "nherit actions BASIC_VC_MAKE\n\npkgkind BASIC_VC_MAKE\n  has file \"Mak"
 & "efile\"\n  inherit actions BASIC_VC\n  inherit actions MAKE_BUILD\n\n# "
 & "-----------------------------------------------------------------------"
 & "-----\n# MAKE_BUILD actions\n# ----------------------------------------"
 & "------------------------------------\npkgkind MAKE_BUILD\n  ostype none"
 & "\n  action build\t\t\t\"make {?OPT} {?MAKEOPT} all install\"\n  action "
 & "buildlocal\t\t\"make {?OPT} {?MAKEOPT}\"\n  action builtok\t\t\"make {?"
 & "OPT} {?MAKEOPT} builtok\"\n  action shipglob";

CONST E0_7 =
   "al\t\t\"make {?OPT} {?MAKEOPT} shipglobal\"\n  action shipproject\t\t\""
 & "make {?OPT} {?MAKEOPT} shipproject\"\n  action shiplocal\t\t\"make {?OP"
 & "T} {?MAKEOPT} shiplocal\"\n  action clean\t\t\t\"make {?OPT} {?MAKEOPT}"
 & " clean\"\n  action realclean\t\t\"make {?OPT} {?MAKEOPT} realclean\"\n "
 & " action mkdep\t\t\t\"make {?OPT} {?MAKEOPT} depend\"\n\n# -------------"
 & "---------------------------------------------------------------\n# COMP"
 & "ACT_BUILD actions\n# --------------------------------------------------"
 & "--------------------------\npkgkind COMPACT_BUILD\n  ostype none\n  act"
 & "ion build\t\t\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?opt"
 & "Debug} {?optQuiet} -build\"\n  action buildlocal\t\t\"pkgm {?OPT} {?PKG"
 & "MOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -build\"\n  act"
 & "ion builtok\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?"
 & "optDebug} {?optQuiet} -builtok\"\n  action shipglobal\t\t\"pkgm {?OPT} "
 & "{?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -ship glob"
 & "al\"\n  action shipproject\t\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?op"
 & "tVerbose} {?optDebug} {?optQuiet} -ship project\"\n  action shiplocal\t"
 & "\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQ"
 & "uiet} -ship local\"\n  action clean\t\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?"
 & "optForce} {?optVerbose} {?optDebug} {?optQuiet} -clean\"\n  action real"
 & "clean\t\t\"m3msh rm {?OPT} {?RMOPT} PkgDep PkgCDT PkgCRT .errors PkgTmp"
 & " ; pkgm -X {?PKGMOPT} -F -realclean\"\n  action mkdep\t\t\t\"pkgm -X {?"
 & "OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -deps"
 & "\"\n\n# ---------------------------------------------------------------"
 & "-------------\n# COMPACT_VC actions\n# --------------------------------"
 & "--------------------------------------------\npkgkind COMPACT_VC_UNIX_O"
 & "VERRIDES\n  ostype none\n  action isrelease\t\t\"pkgm -X {?OPT} {?PKGMO"
 & "PT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -isrelease > /dev"
 & "/null\"\n  action conflicts\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?optForce} "
 & "{?optVerbose} {?optDebug} {?optQuiet} -conflicts > /dev/null\"\n  actio"
 & "n uptodate\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?op";

CONST E0_8 =
   "tForce} {?optVerbose} {?optDebug} {?optQuiet} -uptodate > /dev/null\"\n"
 & "  action modified\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?optForce} {?optVerbo"
 & "se} {?optDebug} {?optQuiet} -modified > /dev/null\"\n\npkgkind COMPACT_"
 & "VC\n  ostype none\n  action isrelease\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?"
 & "optForce} {?optVerbose} {?optDebug} {?optQuiet} -isrelease > PkgTmp\"\n"
 & "  action conflicts\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?optForce} {?optVerb"
 & "ose} {?optDebug} {?optQuiet} -conflicts > PkgTmp\"\n  action uptodate\t"
 & "\t\"pkgm -X {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?o"
 & "ptQuiet} -uptodate > PkgTmp\"\n  action modified\t\t\"pkgm -X {?OPT} {?"
 & "PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -modified > "
 & "PkgTmp\"\n  action checkrelease\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?optFor"
 & "ce} {?optVerbose} {?optDebug} {?optQuiet} -isrelease\"\n  action checkc"
 & "onflicts\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?opt"
 & "Debug} {?optQuiet} -conflicts\"\n  action checkuptodate\t\t\"pkgm -X {?"
 & "OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -upto"
 & "date\"\n  action checkmodified\t\t\"pkgm -X {?OPT} {?PKGMOPT} {?optForc"
 & "e} {?optVerbose} {?optDebug} {?optQuiet} -modified\"\n  action currentd"
 & "eveltag\t\"pkgm -X {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDeb"
 & "ug} {?optQuiet} -cdt > PkgCDT\"\n  action currentreleasetag      \"pkgm"
 & " -X {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet}"
 & " -crt > PkgCRT\"\n  action currenttag             \"pkgm -X {?OPT} {?PK"
 & "GMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -ct > PkgCT\"\n"
 & "  action commitdevelmajor\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?optVe"
 & "rbose} {?optDebug} {?optQuiet} -commit major\"\n  action commitdevelmin"
 & "or\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?op"
 & "tQuiet} -commit minor\"\n  action commitdevelpatch\t\"pkgm {?OPT} {?PKG"
 & "MOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -commit patch\""
 & "\n  action commitreleasemajor\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?o"
 & "ptVerbose} {?optDebug} {?optQuiet} -release major\"\n  action commitrel"
 & "easeminor\t\"pkgm ";

CONST E0_9 =
   "{?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -re"
 & "lease minor\"\n  action commitreleasepatch\t\"pkgm {?OPT} {?PKGMOPT} {?"
 & "optForce} {?optVerbose} {?optDebug} {?optQuiet} -release patch\"\n  act"
 & "ion update\t\t\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?op"
 & "tDebug} {?optQuiet} -update {!TAG}\"\n  action checkout\t\t\"pkgm {?OPT"
 & "} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -c {!LOC"
 & "ATION} -checkout {!TAG} {!PKG}\"\n  action getlabel\t\t\"pkgm {?OPT} {?"
 & "PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQuiet} -getlabel {:"
 & "TAG} > .label\"\n  action currentlabel\t\t\"pkgm {?OPT} {?PKGMOPT} {?op"
 & "tForce} {?optVerbose} {?optDebug} {?optQuiet} -getlabel > .label\"\n  a"
 & "ction setlabel\t\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?"
 & "optDebug} {?optQuiet} -setlabel {!TAG} {!LABEL}\"\n  action listlabels\t"
 & "\t\"pkgm {?OPT} {?PKGMOPT} {?optForce} {?optVerbose} {?optDebug} {?optQ"
 & "uiet} -listlabels > .labels\"\n  action diff                   \"pkgm -"
 & "q {?OPT} {?PKGMOPT} {?optVerbose} {?optDebug} {?optQuiet} -{?diffPrefix"
 & "}diff {?selectedFiles}\"\n  action diff1                  \"pkgm -q {?O"
 & "PT} {?PKGMOPT} {?optVerbose} {?optDebug} {?optQuiet} -{?diffPrefix}diff"
 & " -t {!TAG1} {?selectedFiles}\"\n  action diff2                  \"pkgm "
 & "-q {?OPT} {?PKGMOPT} {?optVerbose} {?optDebug} {?optQuiet} -{?diffPrefi"
 & "x}diff -t {!TAG1} -t {!TAG2} {?selectedFiles}\"\n  action merge        "
 & "          \"pkgm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuie"
 & "t} -merge {!TAG1}\"\n  action merge2                 \"pkgm {?OPT} {?PK"
 & "GVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -merge {!TAG1} {!TAG2}\"\n"
 & "\n# -------------------------------------------------------------------"
 & "---------\n# BASIC_VC actions\n# --------------------------------------"
 & "--------------------------------------\npkgkind BASIC_VC_UNIX_OVERRIDES"
 & "\n  ostype none\n  action isrelease\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?opt"
 & "Verbose} {?optDebug} {?optQuiet} -isrelease > /dev/null\"\n  action con"
 & "flicts\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQui"
 & "et} -";

CONST E0_10 =
   "conflicts > /dev/null\"\n  action uptodate\t\t\"pkgvm {?OPT} {?PKGVMOPT"
 & "} {?optVerbose} {?optDebug} {?optQuiet} -uptodate > /dev/null\"\n  acti"
 & "on modified\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?o"
 & "ptQuiet} -modified > /dev/null\"\n\npkgkind BASIC_VC\n  ostype none\n  "
 & "action isrelease\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug"
 & "} {?optQuiet} -isrelease > PkgTmp\"\n  action conflicts\t\t\"pkgvm {?OP"
 & "T} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -conflicts > PkgTm"
 & "p\"\n  action uptodate\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?op"
 & "tDebug} {?optQuiet} -uptodate > PkgTmp\"\n  action modified\t\t\"pkgvm "
 & "{?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -modified > Pk"
 & "gTmp\"\n  action checkrelease\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbos"
 & "e} {?optDebug} {?optQuiet} -isrelease\"\n  action checkconflicts\t\t\"p"
 & "kgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -conflict"
 & "s\"\n  action checkuptodate\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose}"
 & " {?optDebug} {?optQuiet} -uptodate\"\n  action checkmodified\t\t\"pkgvm"
 & " {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -modified\"\n"
 & "  action currentdeveltag\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?op"
 & "tDebug} {?optQuiet} -cdt > PkgCDT\"\n  action currentreleasetag      \""
 & "pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -crt > P"
 & "kgCRT\"\n  action currenttag             \"pkgvm {?OPT} {?PKGVMOPT} {?o"
 & "ptVerbose} {?optDebug} {?optQuiet} -ct > PkgCT\"\n  action commitdevelm"
 & "ajor\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} "
 & "-commit major\"\n  action commitdevelminor\t\"pkgvm {?OPT} {?PKGVMOPT} "
 & "{?optVerbose} {?optDebug} {?optQuiet} -commit minor\"\n  action commitd"
 & "evelpatch\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQu"
 & "iet} -commit patch\"\n  action commitreleasemajor\t\"pkgvm {?OPT} {?PKG"
 & "VMOPT} {?optVerbose} {?optDebug} {?optQuiet} -release major\"\n  action"
 & " commitreleaseminor\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebu"
 & "g} {?optQuiet} -release minor\"\n  action commitreleasepatch\t\"pkgvm {"
 & "?OPT} {?PKGVMOPT} {?optVerbo";

CONST E0_11 =
   "se} {?optDebug} {?optQuiet} -release patch\"\n  action update\t\t\t\"pk"
 & "gvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -update {!"
 & "TAG}\"\n  action checkout\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {"
 & "?optDebug} {?optQuiet} -c {!LOCATION} -checkout {!TAG} {!PKG}\"\n  acti"
 & "on getlabel\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?o"
 & "ptQuiet} -getlabel {:TAG} > .label\"\n  action currentlabel\t\t\"pkgvm "
 & "{?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -getlabel > .l"
 & "abel\"\n  action setlabel\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {"
 & "?optDebug} {?optQuiet} -setlabel {!TAG} {!LABEL}\"\n  action listlabels"
 & "\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -l"
 & "istlabels > .labels\"\n  action diff                   \"pkgvm -q {?OPT"
 & "} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -{?diffPrefix}diff "
 & "{?selectedFiles}\"\n  action diff1                  \"pkgvm -q {?OPT} {"
 & "?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -{?diffPrefix}diff -t "
 & "{!TAG1} {?selectedFiles}\"\n  action diff2                  \"pkgvm -q "
 & "{?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -{?diffPrefix}"
 & "diff -t {!TAG1} -t {!TAG2} {?selectedFiles}\"\n  action merge          "
 & "        \"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet"
 & "} -merge {!TAG1}\"\n  action merge2                 \"pkgvm {?OPT} {?PK"
 & "GVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -merge {!TAG1} {!TAG2}\"\n"
 & "\n# -------------------------------------------------------------------"
 & "---------\n# DEFAULT package descriptions for fall-back definitions\n# "
 & "-----------------------------------------------------------------------"
 & "-----\npkgkind DEFAULT\n  # The next predicate should be FALSE every ti"
 & "me\n  has dir \"yXyXyx\" and file \"rQp7654RfVq99\"\n  action update\t\t"
 & "\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -upd"
 & "ate {!TAG}\"\n  action checkout\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerb"
 & "ose} {?optDebug} {?optQuiet} -c {!LOCATION} -checkout {!TAG} {!PKG}\"\n"
 & "  action getlabel\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebu"
 & "g} {?optQuie";

CONST E0_12 =
   "t} -getlabel {:TAG} > .label\"\n  action currentlabel\t\t\"pkgvm {?OPT}"
 & " {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -getlabel > .label\""
 & "\n  action setlabel\t\t\"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDe"
 & "bug} {?optQuiet} -setlabel {!TAG} {!LABEL}\"\n  action listlabels\t\t\""
 & "pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -listlab"
 & "els > .labels\"\n  action currentdeveltag\t\"pkgvm {?OPT} {?PKGVMOPT} {"
 & "?optVerbose} {?optDebug} {?optQuiet} -cdt > PkgCDT\"\n  action currentr"
 & "eleasetag      \"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optDebug} {?o"
 & "ptQuiet} -crt > PkgCRT\"\n  action currenttag             \"pkgvm {?OPT"
 & "} {?PKGVMOPT} {?optVerbose} {?optDebug} {?optQuiet} -ct > PkgCT\"\n  ac"
 & "tion diff                   \"pkgvm -q {?OPT} {?PKGVMOPT} {?optVerbose}"
 & " {?optDebug} {?optQuiet} -{?diffPrefix}diff {?selectedFiles}\"\n  actio"
 & "n diff1                  \"pkgvm -q {?OPT} {?PKGVMOPT} {?optVerbose} {?"
 & "optDebug} {?optQuiet} -{?diffPrefix}diff -t {!TAG1} {?selectedFiles}\"\n"
 & "  action diff2                  \"pkgvm -q {?OPT} {?PKGVMOPT} {?optVerb"
 & "ose} {?optDebug} {?optQuiet} -{?diffPrefix}diff -t {!TAG1} -t {!TAG2} {"
 & "?selectedFiles}\"\n  action merge                  \"pkgvm {?OPT} {?PKG"
 & "VMOPT} {?optVerbose} {?optDebug} {?optQuiet} -merge {!TAG1}\"\n  action"
 & " merge2                 \"pkgvm {?OPT} {?PKGVMOPT} {?optVerbose} {?optD"
 & "ebug} {?optQuiet} -merge {!TAG1} {!TAG2}\"\n";

BEGIN
END PkgBaseBundle.