Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Commit

Permalink
Imprimir versión opcionalmente
Browse files Browse the repository at this point in the history
Gente, como ya no es posible hacer cambios hacia atrás, implementé
yo mismo el imprimir versión opcionalmente, pero diferente de como
se hace actualmente en 2.x. Si el usuario desea ver la versión,
debe setear la variable de entorno XTEBAN_PRINT_VERSION, de esta
forma xteban imprime la versión.

Esta charrería de cambio efectivamente hace cualquier intento de
mergear release-1.1 a 2.x imposible, o al menos, un horrible dolor
de cabeza, gracias a esta "genial" implementación.
  • Loading branch information
Lowercases committed Dec 10, 2011
1 parent 4be872a commit fcbd1ac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xteban.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define URL_VIDEO "http://www.youtube.com/watch?v=wC22UvgdKC8\n"
#define DAS_VERSIONEN_MAJOR "1"
Expand All @@ -18,7 +20,11 @@ print_das_versionen(void) {
}

main() {
print_das_versionen();
char *s;

s = getenv("XTEBAN_PRINT_VERSION");
if (s)
print_das_versionen();

printf("%s", URL_VIDEO);

Expand Down

0 comments on commit fcbd1ac

Please sign in to comment.