Tiny Core Base > TCB Talk
Suggestion to embrace the yaml format for .info files
CNK:
@mocore: Yes I was looking at using GNU Recutils for some tasks related to managing extension info files and it matches the info format very closely, so you could probably generate a Recutils database with just a little more than a "cat *.info". The main extra thing is you need to add a '+' at the start of new lines in field values (see here).
As usual I haven't gotten around to any of it myself and there are more useful projects for me to (not) get around to first...
patrikg: JSON? Much worse, I like the readability of the current Recutils-style.
mocore:
*fanfare*
ftr ...
title : "Script for retrieving selected fields from .tcz.info files" @ https://forum.tinycorelinux.net/index.php/topic,27456.msg176787.html
script : ParseInfoFile.sh
url : https://forum.tinycorelinux.net/index.php?action=dlattach;topic=27456.0;attach=6971
thaughts : outsidethebox
--- Quote from: Rich on December 22, 2024, 10:34:12 PM ---This script was inspired by a thread that talked about handling .info files.
What the planned endgame there is, I still don't know.
I did find these statements a bit disturbing:
--- Quote --- ... the current info files are intended for human consumption as plain text
not for programmatic / machine readability & processing ...
--- End quote ---
and
--- Quote --- ... Yes, adopting a standard would increase machine readability. ...
--- End quote ---
It sounds like the idea is to make life easier for computers and more difficult
for people creating the .info file.
--- End quote ---
note : @rich thanks for the script/comments 8)
observation : correlational between disturbing / misapprehensions and posts / scripts in Programming & Scripting - Unofficial
conclusion : more misapprehensions more scripts ;)
mocore:
@CNK
it appears each item in the Free Software Directory (FSD)
has a .rec file
and the fsd includes a total of "(17041)" items !
idk how many are packaged in each core version/arch repo(s)
so (ftr) it appears that
any one considering tcz-packaging a package included in FSD could "import" existing fields from the projects ./FSD (.rec) file
perhaps with ParseInfoFile.sh ....
... which might be construed as
- making the lives of "people who (attempt to) use computers to produce .tcz extensions" easier
eg : the recutils FSD.rec
https://git.savannah.gnu.org/cgit/recutils.git/tree/FSD
--- Quote ---# -*- mode: rec -*-
#
# Information for the Free Software Directory maintained
# by the Free Software Foundation at http://www.fsf.org/directory
%rec: FSD_Entry http://www.jemarch.net/downloads/FSD.rec
Title: GNU Recutils
Description:
+ GNU Recutils is a set of tools and libraries to access human-editable
+ text-based databases called recfiles. The GNU recutils suite
+ comprises a Texinfo manual describing the rec format, a C library
+ (librec) providing a rich set of functions to access rec files, a set
+ of C utilities (recinf, recsel, recins, recset and recfix) that can be
+ used in shell scripts, and an Emacs mode (rec-mode).
GNU: yes
Homepage: http://www.gnu.org/software/recutils
PublicVCSCheckout: git clone git://git.sv.gnu.org/recutils.git
License: GPLv3PLUS
License: GFDLv21PLUS
Maintainer: Jose E. Marchesi <jemarch@gnu.org>
Version: 1.7
MaturityLevel: Production
DevelList: http://www.gnu.org/mailman/listinfo/bug-recutils
HelpList: http://www.gnu.org/mailman/listinfo/help-recutils
InterfaceStyle: CommandLine
InterfaceStyle: Console
# End of FSD
--- End quote ---
https://git.savannah.gnu.org/cgit/recutils.git/tree/etc/FSD.rec
--- Quote ---# FSD.rec - Record descriptor for FSD entries
#
# This file contains the record descriptor for entries in the Free
# Software Directory.
#
# The canonical location of this file is
# http://www.jemarch.net/downloads/FSD.rec
# Copyright (C) 2010, 2020, 2022 Jose E. Marchesi
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
%rec: FSD_Entry
%mandatory: Title
%type: Title line
%type: GNU bool
%type: MaturityLevel enum
+ Undefined Planning PreAlpha Alpha Beta
+ Production Mature Orphaned
%type: License enum
+ GPLv2 GPLv2PLUS GPLv3 GPLv3PLUS
+ GFDLv21PLUS
%type: InterfaceStyle enum
+ CommandLine Console Daemon XWindow Web Email
# End of FSD.rec
--- End quote ---
NewUser:
Isn't the info file for the person installing the extension?
Rich:
Hi NewUser
Yes, it's for the user installing the extension.
Navigation
[0] Message Index
[*] Previous page
Go to full version