[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Diferencias

Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

Ambos lados, revisión anteriorRevisión previa
Próxima revisiónAmbos lados, revisión siguiente
es:howtos:misc:anatomy_of_a_slackbuild [2020/01/24 15:23 (UTC)] – [Anatomía de un Slackbuild] rrampes:howtos:misc:anatomy_of_a_slackbuild [2020/01/24 15:47 (UTC)] – [Anatomía de un Slackbuild] rramp
Línea 146: Línea 146:
 Esto muestra la arquitectura de tu PC, en mi caso es x86_64. Esto muestra la arquitectura de tu PC, en mi caso es x86_64.
  
-Así que para resumir con respecto al bloque de código. Primero una sentencia "if" se ejecuta para ver si la variable "ARCH" está vacía. Si hay un valor para la variable ARCH, nada en el bloque de "if" y "case" interno se ejecutará; pero si una cadena vacia es encontrada (ARCH no tiene valor) una "sentencia case" es ejecutada (dentro del bloque de código if) para buscar una coincidencia. Si +Así que para resumir con respecto al bloque de código. Primero una sentencia "if" se ejecuta para ver si la variable "ARCH" está vacía. Si hay un valor para la variable ARCH, nada en el bloque de "if" y "case" interno se ejecutará; pero si una cadena vacía es encontrada (ARCH no tiene valor) una "sentencia case" es ejecutada (dentro del bloque de código if) para buscar una coincidencia. Si se encuentra una coincidencia la variable ARCH sera asignada con el valor de la coincidencia y la ejecución del case se detendría. Si la variable ARCH estaba vacia y no coincide con la lista, entonces entra en juego la línea que dice:
  
- If there is a value for the ARCH variable nothing in the block of  the "if" and inner "case" will run;but  if an empty string is found (ARCH has no value)  a "case statement" is run(within the if block of code)  to find a match.If a match was found the variable ARCH would be set to the value of the match found, and the execution of the case would come to a stop.  If the ARCH variable was empty and  no match was found in the case list , then the bottom line comes int play which is: +<code>uname -m </code> 
- +es usado para obtener el resultado y la variable ARCH es fijada con el resultado.
-<code>uname -m </code> is used to get a result and ARCH set to the result +
-  +
      
 Don't be   fazed by the question mark in i?86 ,the question mark is a place holder that allows for possibilities via regex. it could be "3" (i386) , "6"( i686) etc. Don't be   fazed by the question mark in i?86 ,the question mark is a place holder that allows for possibilities via regex. it could be "3" (i386) , "6"( i686) etc.
Línea 213: Línea 211:
 CFLAGS and CXXFLAGS are variables holding values that can be passed in at compile time. We will see later that the variable SLKFLAGS will be used to set them.  CFLAGS and CXXFLAGS are variables holding values that can be passed in at compile time. We will see later that the variable SLKFLAGS will be used to set them. 
  
-Next block of code:+Proximo bloque de código:
  
 <code> <code>
Línea 358: Línea 356:
 </code> </code>
  
-That line goes back to the original directory that Latex2html.SlackBuild was run from i previously quoted Desktop) opens up the SlackBuild with "cat"  command and copies it to the documentation directory +Esa línea vuelve al directorio original que Latex2html. SlackBuild fue ejecutado desde (yo previamente ingrese al Desktop) abre el SlackBuild con el comando "cat" y lo copia al directorio de documentación.
-Now before I submitted latex2html to slackbuilds obviously I did some testing and found that when the package was installed it had a fairly comprehensive output of what it could do just using: +
  
 +Ahora, antes de enviar latex2html a slackbuilds, obviamente hice algunas pruebas y encontré que cuando el paquete fue instalado tenía una salida bastante completa de lo que podía hacer simplemente usando: 
 <code> <code>
 $ latex2html --help $ latex2html --help
 </code>  </code> 
  
-Also I had access to comprehensive manual in pdf formatso in my case I did not write code for man pagesInstead I simply put a copy of "manual.pdf" into the /usr/doc/latex2html-2019.2 directory.+ 
 +También tuve acceso un completo manual en formato pdf; así que en mi caso no escribí código para las páginas de manualEn su lugar, simplemente puse una copia de "manual.pdf" en el directorio /usr/doc/latex2html-2019.2.
  
  
 es:howtos:misc:anatomy_of_a_slackbuild ()