@ -0,0 +1,26 @@ |
|||||
|
--- ./execute_cmd.c.orig 2004-05-11 12:29:15.000000000 +0200 |
||||
|
+++ ./execute_cmd.c 2004-05-11 12:43:59.000000000 +0200 |
||||
|
@@ -3472,6 +3472,23 @@ |
||||
|
int sample_len; |
||||
|
|
||||
|
SETOSTYPE (0); /* Some systems use for USG/POSIX semantics */ |
||||
|
+ if ( getenv ("BASH_EXEC_DEBUG_FILE") ) |
||||
|
+ { |
||||
|
+ char *file = getenv ("BASH_EXEC_DEBUG_FILE"); |
||||
|
+ int fd = open (file, O_WRONLY|O_CREAT|O_APPEND, 0666); |
||||
|
+ if ( fd >= 0 ) |
||||
|
+ { |
||||
|
+ int i; |
||||
|
+ write (fd, command, strlen(command)); |
||||
|
+ for (i=0; args[i]; i++) |
||||
|
+ { |
||||
|
+ write (fd, " ", 1); |
||||
|
+ write (fd, args[i], strlen(args[i])); |
||||
|
+ } |
||||
|
+ write (fd, "\n", 1); |
||||
|
+ close (fd); |
||||
|
+ } |
||||
|
+ } |
||||
|
execve (command, args, env); |
||||
|
i = errno; /* error from execve() */ |
||||
|
SETOSTYPE (1); |
@ -0,0 +1,97 @@ |
|||||
|
/* |
||||
|
* --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
||||
|
* |
||||
|
* This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||
|
* Please add additional copyright information _after_ the line containing |
||||
|
* the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by |
||||
|
* the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
||||
|
* |
||||
|
* ROCK Linux: rock-src/misc/tools-source/descparser.c |
||||
|
* ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf |
||||
|
* |
||||
|
* 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 2 of the License, or |
||||
|
* (at your option) any later version. A copy of the GNU General Public |
||||
|
* License can be found at Documentation/COPYING. |
||||
|
* |
||||
|
* Many people helped and are helping developing ROCK Linux. Please |
||||
|
* have a look at http://www.rocklinux.org/ and the Documentation/TEAM |
||||
|
* file for details. |
||||
|
* |
||||
|
* --- ROCK-COPYRIGHT-NOTE-END --- |
||||
|
*/ |
||||
|
|
||||
|
/* this is a 1st proof-of-concept implementation */ |
||||
|
#include <stdio.h> |
||||
|
#include <string.h> |
||||
|
#include <stdlib.h> |
||||
|
#include <sys/types.h> |
||||
|
#include <regex.h> |
||||
|
|
||||
|
int check_condition(const char *cond) |
||||
|
{ |
||||
|
char *t = strdup(cond); |
||||
|
char *left = strtok(t, " \t\n"); |
||||
|
char *op = strtok(0, " \t\n"); |
||||
|
char *right = strtok(0, " \t\n"); |
||||
|
int retcode = 0; |
||||
|
|
||||
|
if ( !strcmp(op, "==") ) { |
||||
|
char regex[strlen(right)+3]; |
||||
|
char *text = getenv(left); |
||||
|
regex_t re; |
||||
|
|
||||
|
sprintf(regex, "^%s$", right); |
||||
|
if ( !text ) text = "_undef_"; |
||||
|
|
||||
|
if ( regcomp(&re, regex, REG_EXTENDED|REG_NOSUB) ) { |
||||
|
fprintf(stderr, "failed to compile regex: '%s'.\n", right); |
||||
|
exit(1); |
||||
|
} |
||||
|
if ( !regexec(&re, text, 0, 0, 0) ) retcode = 1; |
||||
|
regfree(&re); |
||||
|
} else { |
||||
|
fprintf(stderr, "Unknown operator: '%s'.\n", op); |
||||
|
exit(1); |
||||
|
} |
||||
|
|
||||
|
free(t); |
||||
|
return retcode; |
||||
|
} |
||||
|
|
||||
|
int main() |
||||
|
{ |
||||
|
char line[4096]; |
||||
|
int condstack[128]; |
||||
|
int condcount = -1; |
||||
|
int falselevel = 0; |
||||
|
|
||||
|
while ( fgets(line, 4096, stdin) ) { |
||||
|
if (line[0] == '#') { |
||||
|
if ( !strncmp(line, "#if ", 4) ) { |
||||
|
condstack[++condcount] = check_condition(line+4); |
||||
|
if ( !condstack[condcount] ) falselevel++; |
||||
|
} else |
||||
|
if ( !strncmp(line, "#else", 5) ) { |
||||
|
falselevel += condstack[condcount] ? +1 : -1; |
||||
|
condstack[condcount] = !condstack[condcount]; |
||||
|
} else |
||||
|
if ( !strncmp(line, "#elsif ", 7) ) { |
||||
|
if ( !condstack[condcount] ) { |
||||
|
condstack[condcount] = check_condition(line+7); |
||||
|
if ( condstack[condcount] ) falselevel--; |
||||
|
} else |
||||
|
falselevel++; |
||||
|
} else |
||||
|
if ( !strncmp(line, "#endif", 6) ) { |
||||
|
if ( !condstack[condcount--] ) falselevel--; |
||||
|
} |
||||
|
} else |
||||
|
if ( !falselevel ) |
||||
|
puts(line); |
||||
|
} |
||||
|
|
||||
|
return 0; |
||||
|
} |
||||
|
|
@ -1,35 +0,0 @@ |
|||||
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|
||||
[COPY] |
|
||||
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
||||
[COPY] Please add additional copyright information _after_ the line containing |
|
||||
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by |
|
||||
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
|
||||
[COPY] |
|
||||
[COPY] ROCK Linux: rock-src/package/rene/subversion-static/subversion-static.cache |
|
||||
[COPY] ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf |
|
||||
[COPY] |
|
||||
[COPY] This program is free software; you can redistribute it and/or modify |
|
||||
[COPY] it under the terms of the GNU General Public License as published by |
|
||||
[COPY] the Free Software Foundation; either version 2 of the License, or |
|
||||
[COPY] (at your option) any later version. A copy of the GNU General Public |
|
||||
[COPY] License can be found at Documentation/COPYING. |
|
||||
[COPY] |
|
||||
[COPY] Many people helped and are helping developing ROCK Linux. Please |
|
||||
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM |
|
||||
[COPY] file for details. |
|
||||
[COPY] |
|
||||
[COPY] --- ROCK-COPYRIGHT-NOTE-END --- |
|
||||
|
|
||||
[TIMESTAMP] 1073293630 Mon Jan 5 10:07:10 2004 |
|
||||
[CONFIG-ID] 2.0.0-rc5-x86-pentium-mmx-32-reference |
|
||||
[ROCKVER] 2.0.0-rc5 |
|
||||
|
|
||||
[LOGS] 5-subversion-static.log 9-subversion-static.log |
|
||||
|
|
||||
[BUILDTIME] 37350 (9) |
|
||||
[SIZE] 8.46 MB, 16 files |
|
||||
|
|
||||
[DEP] bash bdb41 binutils bzip2 coreutils diffutils expat findutils gawk |
|
||||
[DEP] gcc3 gdbm glibc23 grep libxml2 linux24-header make mktemp net-tools |
|
||||
[DEP] numpy patch perl5 python sed swig sysfiles tar util-linux zlib |
|
||||
|
|
@ -1,43 +0,0 @@ |
|||||
|
|
||||
[COPY] --- ROCK-COPYRIGHT-NOTE-BEGIN --- |
|
||||
[COPY] |
|
||||
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
||||
[COPY] Please add additional copyright information _after_ the line containing |
|
||||
[COPY] the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by |
|
||||
[COPY] the ./scripts/Create-CopyPatch script. Do not edit this copyright text! |
|
||||
[COPY] |
|
||||
[COPY] ROCK Linux: rock-src/package/rene/subversion-static/subversion-static.desc |
|
||||
[COPY] ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf |
|
||||
[COPY] |
|
||||
[COPY] This program is free software; you can redistribute it and/or modify |
|
||||
[COPY] it under the terms of the GNU General Public License as published by |
|
||||
[COPY] the Free Software Foundation; either version 2 of the License, or |
|
||||
[COPY] (at your option) any later version. A copy of the GNU General Public |
|
||||
[COPY] License can be found at Documentation/COPYING. |
|
||||
[COPY] |
|
||||
[COPY] Many people helped and are helping developing ROCK Linux. Please |
|
||||
[COPY] have a look at http://www.rocklinux.org/ and the Documentation/TEAM |
|
||||
[COPY] file for details. |
|
||||
[COPY] |
|
||||
[COPY] --- ROCK-COPYRIGHT-NOTE-END --- |
|
||||
|
|
||||
[I] A compelling replacement for CVS |
|
||||
|
|
||||
[T] The goal of the Subversion project is to build a version control |
|
||||
[T] system that is a compelling replacement for CVS in the open source |
|
||||
[T] community. |
|
||||
|
|
||||
[U] http://subversion.tigris.org/ |
|
||||
|
|
||||
[A] The Subversion Crew |
|
||||
[M] Rene Rebe <rene@rocklinux.org> |
|
||||
|
|
||||
[C] extra/server extra/development |
|
||||
|
|
||||
[L] OpenSource |
|
||||
[S] Beta |
|
||||
[V] 1.0.3 |
|
||||
[P] X -----5---9 864.000 |
|
||||
|
|
||||
[D] 245397896 subversion-1.0.3.tar.gz http://subversion.tigris.org/files/documents/15/13430/ |
|
||||
|
|