[Pkg-jed-commit] r122 - trunk/packages/jed-extra/debian

Guenter Milde milde-guest at costa.debian.org
Tue Nov 1 13:00:05 UTC 2005


Author: milde-guest
Date: 2005-11-01 13:00:04 +0000 (Tue, 01 Nov 2005)
New Revision: 122

Added:
   trunk/packages/jed-extra/debian/sort-modes.sl
Modified:
   trunk/packages/jed-extra/debian/README.Maintainer
   trunk/packages/jed-extra/debian/build-orig.tar_gz
Log:
new SLang script to sort the modes into directories


Modified: trunk/packages/jed-extra/debian/README.Maintainer
===================================================================
--- trunk/packages/jed-extra/debian/README.Maintainer	2005-10-29 20:26:06 UTC (rev 121)
+++ trunk/packages/jed-extra/debian/README.Maintainer	2005-11-01 13:00:04 UTC (rev 122)
@@ -144,6 +144,8 @@
 Contained modes
 ---------------
 
+See the list in "jedmodes-list.txt".
+
 Instead of just a download of Jedmodes-CVS, we should offer an
 "intelligent" choice of packages: purge obsolete packages and add
 interesting new ones (most obviously Paul's modes outsoured to separate
@@ -153,114 +155,6 @@
 :note: Should the choice be "inclusive" (as much as sensible) or "selective"
        (as few as sensible, excluding "exotic" modes)?
 
-
-Modes at Jedmodes
-~~~~~~~~~~~~~~~~~
-
-Types: *A*ddition *D*rop-In *E*nhancement *O*bsolete *U*tils e*X*clude
-
-
-Type Name           Abstract
-
- X   a2ps:          Pretty-printing tools
- X   apache:        mode for editing Apache configuration files
- E   apsmode:       pretty printing mode using a2ps
- X   autotext:      autotext a la MS Word
- X   awk:           mode for editing Awk scripts
- D   brief:         Brief editor emulation
- A   browse_url:    Functions for display of web pages from within JED.
- X   bufed:         buffer manager
- U   bufutils:      Tools for buffer and windows handling
- D?  cal:           calendar and diary
- A   calc:          SLang calculator
- X   cdecl:         S-Lang version of K&R's dcl program
- E   ch_table:      A "popup_buffer" with a table of characters
- U   circle:        Circular array with relational indexing
- A   colors:        collection of color schemes
- A   complete:      keyword completion function
- A   css1:          Mode for Cascading Style Sheets (CSS)
- A   csvutils:      Utilities to work with csv data
- O   cua:           CUA (Windows/Mac/CDE/KDE-like) bindings for Jed
- A   cuamark:       CUA style of marking ("volatile regions")
- O   cuamisc:       Helper functions for the cua suite
- A   cuamouse:      CUA compatible mouse mode
- A   custmode:      Custom syntax highlighting
- O   dabbrev:       Complete the current word looking for similar
-                    word-beginnings
- U   datutils:      Convenience functions for several Data_Types
- O   diagnose:      Diagnostic functions for SLang programmers
- X   dict:          A dict client.
- A   ding:          Ding dictionary lookup function and mode
- A   email:         mode for editing emails
- X   ffap:          Find File At Point
- E   filelist:      A special mode for file listings (ls, locate)
- X   fileview:      configurable file viewing function
- E   filter-buffer: Filter buffer: show/hide lines that match a pattern
- A   gdbmrecent:    another recent mode
- A   gnuplot:       Mode for the Gnuplot plotting program
- A   grep:          JED interface to the `grep` command
- E   history:       Save the content of the minibuffer across jed sessions
- O   home-lib:      Initialize libraries for jed extensions easily
- X   howto:         howto-reader
- D   hyperhelp:     Hypertext help browser.
- D   hyperman:      hypertextish man pager
- X   info:          Info reader for JED
- A   ishell:        Interactive shell ("workbook mode")
- D   ispell:        spell checking utilities
- A   jedasp:        Try to simulate MS IIS Active Server Pages with JED
- X   jedgtk:        slgtk dialogs for JED
- X   jedmodes:      Utilities for the publication of modes at Jedmodes
- X   jedscape:      html browser
- X   kcomplete:     keyword completion from the syntax table
- A   keywords:      Create keyword lists for syntax tables
- D   latex-jlm:     Yet another latex mode for Jed
- A   libdir:        Support for library directories with jed extensions
- A   life:          Conway's Game of Life
- A   listing:       Mode for listings of e.g. files or findings
- A   make:          Mode for 'Makefile' files
- A   make_ini:      Initialize non-standard modes automatically
- A   manedit:
- A   md5:           MD5 message digest algorithm implemented in SLang
- A   menutils:      popup menu extensions
- A   minued:        Minibuffer edit mode
- X   misc:          miscellaneous modes
- A   mtools:        Interface to mtools for easy floppy read/write under
-                    UNIX
- A   mupad:         Mode for Mupad (computer algebra system) files.
- E   navigate:      "History feature" known from many browsers
- E   numbuf:        Number the buffers and bind Alt-[n] to go to buffer n
- D   occur:         occur with context
- X   outline:       outline mode
- X   pcre:          Perl-compatible searching functions
- A   po_mode:       Mode for editing PO-files
- A   print:         printer interface
- D   recent:        Provide easy access to recently opened/saved files.
- X   rfcview:       RFC viewer
- O   rmail:         MUA suite
- A   rst:           Mode for reStructured Text
- O   scrnhelp:      Show little help buffers
- U   sl_utils:      Basic SLang programming utils
- A   snake:         Eat the apples and stay away from the walls
- A   sql:           Syntax highlighting for SQL modes
- U   strutils:      String processing functions
- X   subpar:        paragraph reformatter
- X   tar:           interface to GNU tar
- A   temabbrv:      On request replaces the word at cursor with a
-                    user-defined template
- X   templates:     Open templates and do some replacements
- U   tm:            TM documentation parser and TM creation tools
- X   tree:          Recursive directory listing utility
- X   turbo:         dynamic word completion (like in StarOffice)
- U   txtutils:      Tools for text processing (marking, string processing,
-                    formatting)
- E   uri:           Let jed handle Universal Ressource Indicators (URIs)
- E   vi:            vi editor emulation mode
- A   view:          A generic view mode for readonly buffers
- A   window:        Window management routines
- A   x-keydefs:     extended set of Key_* variables for xjed
- X   yodl:          mode for editing yodl documents
-
-
 Possible Levels of Support
 --------------------------
 

Modified: trunk/packages/jed-extra/debian/build-orig.tar_gz
===================================================================
--- trunk/packages/jed-extra/debian/build-orig.tar_gz	2005-10-29 20:26:06 UTC (rev 121)
+++ trunk/packages/jed-extra/debian/build-orig.tar_gz	2005-11-01 13:00:04 UTC (rev 122)
@@ -17,10 +17,6 @@
 
 cd jed-extra-$VER
 
-# dabbrev is in upstream
-# scrnhelp is superseded by help.sl
-rm -r dabbrev scrnhelp
-
 checker() { sed 1,/^[^%]/p $1 | grep -Eq 'GPL|GNU General Public License'; }
 no_gpl=
 for i in *; do

Added: trunk/packages/jed-extra/debian/sort-modes.sl
===================================================================
--- trunk/packages/jed-extra/debian/sort-modes.sl	2005-10-29 20:26:06 UTC (rev 121)
+++ trunk/packages/jed-extra/debian/sort-modes.sl	2005-11-01 13:00:04 UTC (rev 122)
@@ -0,0 +1,110 @@
+% TODO?: slsh or jed-script shebang line
+
+% Semi-Constants
+% --------------
+% 
+% customize these ...
+ 
+private variable modelist = "jedmodes-list.txt";
+private variable build_dir = "jed-extra-upstream";
+private variable tarname = build_dir;
+private variable lib_dir = "jed-extra-lib";
+private variable drop_in_dir = path_concat(lib_dir, "drop-in");
+
+private variable destinations = Assoc_Type[String_Type, ""];
+destinations["A"] = lib_dir;
+destinations["E"] = lib_dir;
+destinations["U"] = lib_dir;
+destinations["D"] = drop_in_dir;
+
+
+% Main
+% ----
+
+% Variables for internale use
+private variable cwd=getcwd(), rv, line, modedir, file, dest, fp;
+
+% Preparation
+% -----------
+
+
+rv = chdir(buffer_dirname());
+
+% set up a working directory and change there
+rv = mkdir(build_dir);
+rv = chdir(build_dir);
+% the dirs to sort into
+rv = mkdir(lib_dir);
+rv = mkdir(drop_in_dir);
+
+% get the sources tar archive from Jedmodes
+% (better done in 'rules')
+# iffalse
+rv = system("wget http://jedmodes.sf.net/cvs/jedmodes.tgz")
+if (rv != 0)
+    verror("could not get the upstream tar, %s", errno_string());
+# endif
+
+% unpack: this will create a directory mode/ in the build-dir
+rv = system("tar -xzf jedmodes.tgz");
+if (rv != 0)
+  verror("could not unpack jedmodes.tgz, %s", errno_string());
+
+% Sorting
+% -------
+
+% The source files are in subdirs of 'mode/' and should be sorted to
+% 'libdir' and 'drop_in_dir'.
+% 'modelist' contains a list of modes at Jedmodes and their categorization.
+
+fp = fopen(path_concat("..", modelist), "r");
+if (fp == NULL)
+  verror("fopen %s failed, %s", modelist, errno_string());
+
+while (-1 != fgets(&line, fp))
+{
+   line = strtok(line);
+   % skip comments, empty lines, and continuations
+   if (orelse{length(line) < 2 }{line[0] == "#"})
+     continue;
+   % show(line[0], line[1]);
+   modedir = path_concat("mode", line[1]);
+   dest = destinations[line[0]];
+   if (dest == "")
+     { 
+        vshow("skipping: %s ", strjoin(line, " "));
+        continue;
+     }
+   % show(mode, dest);
+   foreach (listdir(modedir))
+     {
+        file = ();
+        rv = copy_file(path_concat(modedir, file), 
+                       path_concat(dest, file));
+        if (rv != 0)
+          vshow("error copying '%s' to '%s', %s", 
+                path_concat(modedir, file), dest, errno_string());
+     }
+}
+
+rv = fclose(fp);
+
+
+% pack and clean up
+% -----------------
+
+% (better be done in 'rules')
+#iffalse
+rv = system(sprintf("tar -czf %s.tar.gz %s", tarname, lib_dir));
+if (rv != 0)
+  vshow("error packing %s, %s, %d", build_dir, errno_string(), rv);
+
+
+% (now pack the drop-in dir, if it is not a subdir of lib_dir)
+
+% clean up
+% remove "mode/", lib_dir and drop_in_dir
+#endif
+
+% reset the working dir
+rv = chdir(cwd);




More information about the Pkg-jed-commit mailing list