head 1.20; access; symbols PTH_2_0_7:1.19 PTH_2_0_6:1.18 PTH_2_0_5:1.18 PTH_2_0_4:1.18 PTH_2_0_3:1.17 PTH_2_0_2:1.16 PTH_2_0_1:1.16 PTH_2_0_0:1.15 PTH_2_0b2:1.14 PTH_2_0b1:1.14 PTH_2_0b0:1.14 PTH_1_4:1.13.0.2 PTH_1_4_1:1.13 PTH_1_4_0:1.10 PTH_1_3_7:1.9 PTH_1_4a3:1.9 PTH_1_3_6:1.9 PTH_1_4a2:1.9 PTH_1_3_5:1.9 PTH_1_4a1:1.9 PTH_1_3_4:1.9 PTH_1_3:1.9.0.2 PTH_1_3_3:1.9 PTH_1_3_2:1.9 PTH_1_3_1:1.9 PTH_1_3_0:1.9 PTH_1_3b3:1.8 PTH_1_3b2:1.8 PTH_1_3b1:1.6 PTH_1_3a5:1.6 PTH_1_3a4:1.6 PTH_1_3a3:1.6 PTH_1_3a2:1.6 PTH_1_3a1:1.4; locks; strict; comment @# @; 1.20 date 2007.01.01.18.23.53; author rse; state Exp; branches; next 1.19; commitid 9DhdiirNzQPBIP0s; 1.19 date 2006.06.08.17.54.54; author rse; state Exp; branches; next 1.18; commitid x8N3mLVdQgkbdeAr; 1.18 date 2004.12.31.19.34.45; author rse; state Exp; branches; next 1.17; 1.17 date 2004.12.03.17.03.30; author rse; state Exp; branches; next 1.16; 1.16 date 2004.07.13.10.50.49; author rse; state Exp; branches; next 1.15; 1.15 date 2003.01.01.15.49.12; author rse; state Exp; branches; next 1.14; 1.14 date 2002.10.15.20.34.23; author rse; state Exp; branches; next 1.13; 1.13 date 2002.01.27.10.59.41; author rse; state Exp; branches; next 1.12; 1.12 date 2001.03.30.11.02.50; author rse; state Exp; branches; next 1.11; 1.11 date 2001.03.27.15.34.29; author rse; state Exp; branches; next 1.10; 1.10 date 2001.03.24.14.51.05; author rse; state Exp; branches; next 1.9; 1.9 date 2000.02.15.19.23.03; author rse; state Exp; branches; next 1.8; 1.8 date 2000.01.27.18.29.18; author rse; state Exp; branches; next 1.7; 1.7 date 2000.01.27.18.11.11; author rse; state Exp; branches; next 1.6; 1.6 date 99.12.30.21.59.01; author rse; state Exp; branches; next 1.5; 1.5 date 99.11.09.08.11.32; author rse; state Exp; branches; next 1.4; 1.4 date 99.11.03.12.31.28; author rse; state Exp; branches; next 1.3; 1.3 date 99.11.01.12.23.05; author rse; state Exp; branches; next 1.2; 1.2 date 99.11.01.12.19.33; author rse; state Exp; branches; next 1.1; 1.1 date 99.11.01.11.54.30; author rse; state Exp; branches; next ; desc @@ 1.20 log @Adjusted all copyright messages for new year 2007. @ text @## ## GNU Pth - The GNU Portable Threads ## Copyright (c) 1999-2007 Ralf S. Engelschall ## ## This file is part of GNU Pth, a non-preemptive thread scheduling ## library which can be found at http://www.gnu.org/software/pth/. ## ## This library is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public ## License as published by the Free Software Foundation; either ## version 2.1 of the License, or (at your option) any later version. ## ## This library 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 ## Lesser General Public License for more details. ## ## You should have received a copy of the GNU Lesser General Public ## License along with this library; if not, write to the Free Software ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ## USA, or contact Ralf S. Engelschall . ## ## striptease.pl: Strip down the Pth source tree to its minimum ## # ``Mobius strippers never # show you their back side.'' require 5.000; $|++; my $src = '.'; my $tmp = $ENV{'TMPDIR'} || '/tmp'; my $dst = "$tmp/pth-striptease"; sub kbof { my ($dir) = @@_; my ($b); $b = 0; for $file (glob("$dir/*")) { my @@S = stat($file); $b += $S[7]; } return $b / 1024; } printf("Stripping down source tree from %d KB to its minimum... ", &kbof($src)); system("rm -rf $dst") if (-d $dst); system("mkdir $dst") if (not -d $dst); open(FP, ">$dst/README.1st"); print FP <<"EOT"; This is a heavily stripped down version of the GNU Pth (GNU Portable Threads) package. It was automatically generated by a call to ``make striptease'' from within a full-sized GNU Pth source tree. DO NOT EDIT ANYTHING HERE. CHANGES WILL BE LOST IF AN UPDATED STRIPPED DOWN VERSION IS IMPORTED NEXT TIME TO THIS AREA. For the complete source go to http://www.gnu.org/software/pth/. EOT close(FP); @@files = (qw( COPYING README config.guess config.sub pth.h.in pth_p.h.in pth_acdef.h.in pth_acmac.h.in pth_vers.c pthread.c pthread.h.in )); @@source = (qw( pth_compat.c pth_debug.c pth_syscall.c pth_errno.c pth_ring.c pth_mctx.c pth_uctx.c pth_clean.c pth_time.c pth_tcb.c pth_util.c pth_pqueue.c pth_event.c pth_sched.c pth_data.c pth_msg.c pth_cancel.c pth_sync.c pth_attr.c pth_lib.c pth_fork.c pth_high.c pth_ext.c pth_string.c )); foreach $f (@@files) { system("cp -p $src/$f $dst/$f"); } $pth_c = <<'EOT'; /* ** GNU Pth - The GNU Portable Threads ** Copyright (c) 1999-2007 Ralf S. Engelschall ** ** This file is part of GNU Pth, a non-preemptive thread scheduling ** library which can be found at http://www.gnu.org/software/pth/. ** ** This library is free software; you can redistribute it and/or ** modify it under the terms of the GNU Lesser General Public ** License as published by the Free Software Foundation; either ** version 2 of the License, or (at your option) any later version. ** ** This library 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 ** Lesser General Public License for more details. ** ** You should have received a copy of the GNU Lesser General Public ** License along with this library; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 ** USA, or contact Ralf S. Engelschall . ** ** pth.c: Pth all-in-one source (AUTO-GENERATED, DO NOT EDIT!) */ #include "pth_p.h" EOT foreach $s (@@source) { open(FP, "<$src/$s"); $st = ''; $st .= $_ while (); close(FP); $st =~ s|^.+?#include "pth_p.h"\s*\n|/* ==== $s ==== */\n\n|si; $pth_c .= $st; } open(FP, ">$dst/pth.c"); print FP $pth_c; close(FP); open(FP, "<$src/configure"); $c = ''; $c .= $_ while (); close(FP); $c =~ s|chmod \+rx pth-config|: $&|s; $c =~ s|chmod \+rx pthread-config|: $&|s; $c =~ s|rm -f pthread-config|: $&|s; $c =~ s|pth-config||sg; $c =~ s|pthread-config||sg; $c =~ s|TB=`.+?`|TB=''|s; $c =~ s|TN=`.+?`|TN=''|s; $c =~ s|echo \"\$ac_t\"\"\" 1>\&6|: $&|sg; $c =~ s|echo \"\$ac_t\"\"\$\{TB\}.+?:\$\{TN\}" 1>&6|: $&|sg; $c =~ s|enable_batch=no|enable_batch=yes|sg; open(FP, ">$dst/configure"); print FP $c; close(FP); system("chmod a+rx $dst/configure"); system("shtoolize -q -o $dst/shtool version scpp"); system("cp $src/striptease.mk $dst/Makefile.in"); system("$src/shtool fixperm $dst"); system("rm -rf $src/* && cp -rp $dst/* $src/"); system("rm -rf $dst"); print "done.\n"; printf("Resulting source tree: %d KB\n", &kbof($src)); system("ls -l $src"); @ 1.19 log @Adjusted all copyright messages for new year 2006 @ text @d3 1 a3 1 ## Copyright (c) 1999-2006 Ralf S. Engelschall d92 1 a92 1 ** Copyright (c) 1999-2006 Ralf S. Engelschall @ 1.18 log @Adjusted all copyright messages for new year 2005. @ text @d3 1 a3 1 ## Copyright (c) 1999-2005 Ralf S. Engelschall d92 1 a92 1 ** Copyright (c) 1999-2005 Ralf S. Engelschall @ 1.17 log @Resurrect the old "make striptease" command by fixing the configure run-time in the stripped down source tree and fixing the list of source files. @ text @d3 1 a3 1 ## Copyright (c) 1999-2004 Ralf S. Engelschall d92 1 a92 1 ** Copyright (c) 1999-2004 Ralf S. Engelschall @ 1.16 log @Adjusted all copyright messages for new year 2004. @ text @d80 1 a80 1 pth_clean.c pth_time.c pth_tcb.c pth_util.c pth_pqueue.c pth_event.c d92 1 a92 1 ** Copyright (c) 1999-2001 Ralf S. Engelschall @ 1.15 log @Adjusted all copyright messages for new year 2003. @ text @d3 1 a3 1 ## Copyright (c) 1999-2003 Ralf S. Engelschall @ 1.14 log @remove trailing whitespaces @ text @d3 1 a3 1 ## Copyright (c) 1999-2002 Ralf S. Engelschall @ 1.13 log @copyright @ text @d25 1 a25 1 # ``Mobius strippers never @ 1.12 log @*** empty log message *** @ text @a1 2 ## Copyright (c) 1999-2001 Ralf S. Engelschall, All Rights Reserved. ## d3 1 a3 1 ## Copyright (c) 1999-2001 Ralf S. Engelschall @ 1.11 log @*** empty log message *** @ text @d137 3 a139 3 $c =~ s|chmod \+rx pth-config||s; $c =~ s|chmod \+rx pthread-config||s; $c =~ s|rm -f pthread-config||s; d144 2 a145 2 $c =~ s|echo \"\$ac_t\"\"\" 1>\&6||sg; $c =~ s|echo \"\$ac_t\"\"\$\{TB\}.+?:\$\{TN\}" 1>&6||sg; @ 1.10 log @*** empty log message *** @ text @d84 1 a84 1 pth_fork.c pth_high.c pth_ext.c @ 1.9 log @*** empty log message *** @ text @d2 1 a2 1 ## Copyright (c) 1999-2000 Ralf S. Engelschall, All Rights Reserved. d5 1 a5 1 ## Copyright (c) 1999-2000 Ralf S. Engelschall d94 1 a94 1 ** Copyright (c) 1999-2000 Ralf S. Engelschall @ 1.8 log @*** empty log message *** @ text @d27 2 a28 1 @ 1.7 log @*** empty log message *** @ text @d34 1 a34 1 my $dst = "$tmp/pth-striptease'; d36 13 a48 1 print "Stripping down source tree to its minimum... "; d160 1 a160 1 print "Resulting source tree:\n"; @ 1.6 log @*** empty log message *** @ text @d25 1 a25 1 ## striptease.pl: Strip down the Pth distribution to just 1/3 of size d30 2 d33 4 a36 1 my $dst = '/tmp/pth-striptease'; d101 1 a101 1 ** pth.c: Pth all-in-one source (AUTO-GENERATED - DO NOT EDIT!) d142 1 a142 1 system("$src/shtool fixperm -v $dst"); d144 6 @ 1.5 log @*** empty log message *** @ text @d2 1 a2 1 ## Copyright (c) 1999 Ralf S. Engelschall, All Rights Reserved. d5 1 a5 1 ## Copyright (c) 1999 Ralf S. Engelschall d76 1 a76 1 ** Copyright (c) 1999 Ralf S. Engelschall @ 1.4 log @*** empty log message *** @ text @d2 1 a2 1 ## Copyright (c) 1999 Ralf S. Engelschall, All Rights Reserved. d39 3 a41 3 This is a heavily stripped down version of the GNU Pth (GNU Portable Threads) package. It was automatically generated by a call to ``make striptease'' from within d44 1 a44 1 VERSION IS IMPORTED NEXT TIME TO THIS AREA. For the d51 2 a52 2 COPYING README d54 2 a55 2 pth.h.in pth_p.h.in d63 3 a65 3 pth_compat.c pth_debug.c pth_syscall.c pth_errno.c pth_ring.c pth_mctx.c pth_clean.c pth_time.c pth_tcb.c pth_util.c pth_pqueue.c pth_event.c pth_sched.c pth_data.c pth_msg.c pth_cancel.c pth_sync.c pth_attr.c pth_lib.c @ 1.3 log @*** empty log message *** @ text @d44 2 a45 1 VERSION IS IMPORTED NEXT TIME TO THIS AREA. @ 1.2 log @*** empty log message *** @ text @d137 1 a137 1 system("rm -f $src/* && cp $dst/* $src/"); @ 1.1 log @*** empty log message *** @ text @d31 1 a31 1 my $dst = 'striptease.dir'; d137 1 @