This website has been translated by machine translation software and has not been subsequently revised by translators. Further information at: link. Hide
the accesskey _ mod _ content
-

Addition of licensing headers

  • Short Name:
    AddHeader
    Summary:
    The solution has two Linux scripts. The first, called “ verifies _ cabeceras.sh ”, generates 3 listings reflecting the files that have licensing header, files that have licensing header along with This and the files that have no header. By default, is configured to analyze files JAVA, XML, JSP, CSS, DTD HTML and PROPERTIES.
    The second script, called "addition _ cabeceras.sh", adds the headers of discharge to the files you want. By default, is configured to add headers to files JAVA, XML, JSP, CSS, DTD HTML and PROPERTIES.
    Target audience:
    Any public administration, citizen, company, AGE, REGIONAL GOVERNMENTS, Local Entities
    Agencies Responsible:
    Political ministry Territorial and Public Function
    Secretariat of state of Public Function
    General Secretariat of Digital Administration
    Usage:
    Installable product
    Contact:

    You can contact the customer support of specifying as CTT type "licensing Consultation and free software"

    https :// ssweb.seap.minhap.es/help/consultation/CTT

     

    Type of Solution:
    Application
    Status of the Solution:
    Production
    Organic Area:
    State
    Functional Area:
    Government and the public Sector
    License:
    EUPL (European Public License)
    Interoperability level:
    Technical
    Operating system:
    Linux

    Description

    The solution has two Linux scripts. The first, called “ verifies _ cabeceras.sh ”, check if files whose size matches any of the following: JAVA, XML, JSP, CSS, DTD HTML and PROPERTIES; feature licensing header and generates 3 text files. These are:

    • Fichero "resultado_ficheros_con_cabecera.txt": contiene el listado de todos los ficheros que disponen de una cabecera (no tiene por qué ser una cabecera de licenciamiento).
    • Fichero "resultado_ficheros_con_cabecera_extendido.txt": contiene el listado de todos los ficheros que disponen de una cabecera junto a su cabecera (no tiene por qué ser una cabecera de licenciamiento).
    • Fichero "resultado_ficheros_sin_cabecera.txt": contiene el listado de los ficheros que no disponen de una cabecera.

    The file "result _ files _ no _ cabecera.txt" we use as a basis for the creation of the file/s TXT, data source for the execution of the script "addition _ cabeceras.sh".

    El script permita ampliar fácilmente el listado de extensiones ya que está estructurado en procedimientos.

    The script also has the use of optional parameters. These parameters can change the directory and to analyse extensions.

    Por último, el script cuenta con una ayuda que se accede añadiendo el parámetro "-h" al nombre del script.

    El segundo script, llamado "adicion_cabeceras.sh", añade las cabeceras de licenciamiento (guardadas en un fichero fuente) a los ficheros cuya extensión coincida con alguna de las siguientes: JAVA, XML, JSP, CSS, DTD, HTML y PROPERTIES.

    You can add or remove extensions and change the list of files to modify. For this account with a file called "variables.cfg that reflected the following variables:

    • "fichero": fichero/s fuente dividido/s internamente en dos secciones: cabecera y listado de archivos a modificar. La sección "cabecera" contendrá la cabecera que se desee insertar y, el listado de archivos, los archivos a cambiar.
    • "cabecera": esta variable contiene las extensiones de los ficheros a modificar.
    • directory "": directory which contains the files to change.

    This script, like the previous one, easily to expand the list of extensions already that is structured in procedures.

    The script also has the use of optional parameters. These parameters can change the source file, the directory and the extension of the files which add licensing headers.

    It also allows for a modification of all files whose size matches those listed above, within an entire directory and concrete.

    Finally, the script has a help that is accessed by adding the parameter "-h" to the name of the script.

    Subscriptions

    In this area you can register to receive notification of changes that occur in news, documents or forums associated with the settlement or the active semantic.

    The fields with an asterisk * are required. It must mark at least one of the subscription rushes (News, documents or forums) and indicate the email in the text field indicated for the high or low of subscription.

    Enter the email with which you want to receive notifications of the solution or the active semantic.

    *

    You can consult the data protection policy of PAe and CTT in its legal notice

    Enter the email to unsubscribe from the unsubscribe.
General access point
General access point
Maintainer

Interesting links Solutions