Date: Wed, 24 Apr 2002 16:53:47 -0500 (CDT) From: Dan Nelson <dnelson@allantgroup.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/37432: www; script to generate plot of ports growth Message-ID: <200204242153.g3OLrl0f002161@dan.emsphone.com>
next in thread | raw e-mail | index | archive | help
>Number: 37432 >Category: docs >Synopsis: www; script to generate plot of ports growth >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Apr 24 15:00:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dan Nelson >Release: FreeBSD 5.0-CURRENT i386 >Organization: The Allant Group >Environment: System: FreeBSD dan.emsphone.com 5.0-CURRENT FreeBSD 5.0-CURRENT #161: Mon Apr 15 11:51:21 CDT 2002 dan@dan.emsphone.com:/usr/src/sys/i386/compile/DANSMP i386 >Description: From http://www.freebsd.org/ports/ : The FreeBSD Ports and Packages Collection offers a simple way for users and administrators to install applications. The ports collection has been <a href="http://www.FreeBSD.org/~asami/papers/growth.gif"> growing at a tremendous rate</a>. Problem is, that gif is out of date; it's almost 2 years old. It sort of reminds me of Disco Stu on the Simpsons: "Did you know that disco record sales were up 400% for the year ending 1976? If these trends continue... AYYY!" >How-To-Repeat: >Fix: getinfo.sh will scan the INDEX file in /usr/ports, count the lines in each revision, and use ports.plt to generate a plot similar to asami's original one. The ports.log in this sharfile has been seeded with counts from all revisions, even before the repo cleanup in March, so it has all the datapoints asami's plot had. Just run the script once every few months to stay current. # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # getinfo.sh # ports.plt # ports.log # echo x - getinfo.sh sed 's/^X//' >getinfo.sh << 'END-of-getinfo.sh' X#! /bin/sh -e X X# Get a linecount for all the revisions listed in 'cvs log' and append X# to our current list. This lets us keep info for revisions that have X# been axed from the repository. Xcvs log /usr/ports/INDEX | Xsed -ne "s/^date: \([^;]*\);.*$/\1/p" | Xwhile read date ; do X echo $date X cvs update -D "$date" /usr/ports/INDEX X echo $date $(wc -l < /usr/ports/INDEX) >> ports.log Xdone X# Put INDEX back the way we found it. Xcvs update -A /usr/ports/INDEX X X# Remove dupes. Xsort -u ports.log > ports.log1 Xmv ports.log1 ports.log X X# Generate graph. Xgnuplot ports.plt X X# Interlace. Xpngtopnm ports.png | pnmtopng -i > ports.png1 Xmv ports.png1 ports.png END-of-getinfo.sh echo x - ports.plt sed 's/^X//' >ports.plt << 'END-of-ports.plt' Xset terminal png color Xset output "ports.png" Xset ylabel "Number of ports" Xset timefmt "%Y/%m/%d %H:%M:%S" Xset format x "%Y" Xset xdata time Xset grid X# Uncomment to make ranges match X# http://people.freebsd.org/~asami/papers/growth.gif X# set xrange ["1995/01":"2000/11"] X# set yrange [0:4000] Xset multiplot Xplot "ports.log" using 1:3 notitle with points Xplot "ports.log" using 1:3 smooth bezier notitle with lines END-of-ports.plt echo x - ports.log sed 's/^X//' >ports.log << 'END-of-ports.log' X1995/01/14 11:27:05 150 X1995/02/12 13:44:28 182 X1995/03/21 01:30:53 209 X1995/03/21 03:12:12 209 X1995/04/01 07:57:13 204 X1995/04/01 12:42:08 204 X1995/04/09 11:06:36 210 X1995/04/12 15:44:22 210 X1995/04/12 15:48:22 210 X1995/04/15 23:01:20 211 X1995/04/19 00:12:09 216 X1995/04/26 08:21:03 219 X1995/05/03 03:31:37 233 X1995/05/13 04:12:52 247 X1995/05/15 06:10:04 269 X1995/05/16 09:29:18 265 X1995/05/27 08:15:17 269 X1995/05/30 11:40:06 270 X1995/05/31 07:40:06 271 X1995/06/04 06:44:29 272 X1995/06/06 12:30:10 272 X1995/07/01 12:05:53 280 X1995/07/13 01:39:33 286 X1995/07/18 00:46:11 293 X1995/07/20 20:43:55 294 X1995/07/29 11:13:45 296 X1995/08/08 10:52:17 302 X1995/08/14 10:45:56 314 X1995/08/18 08:16:10 314 X1995/08/19 09:22:46 316 X1995/08/21 07:42:16 317 X1995/08/22 09:24:47 319 X1995/08/23 07:16:16 319 X1995/08/26 09:20:14 325 X1995/08/28 10:36:23 326 X1995/09/14 11:54:22 333 X1995/09/22 11:34:45 334 X1995/09/23 09:25:01 335 X1995/09/26 10:09:10 335 X1995/10/03 10:55:01 341 X1995/10/10 08:45:27 346 X1995/10/12 08:17:31 349 X1995/10/13 10:46:06 351 X1995/10/17 09:48:54 352 X1995/10/20 11:00:16 355 X1995/11/09 10:02:45 361 X1995/11/09 12:21:46 361 X1995/11/15 11:36:12 365 X1995/11/16 03:17:35 365 X1995/11/26 11:44:54 367 X1995/11/27 04:20:14 369 X1995/12/09 01:37:55 376 X1995/12/10 15:42:52 377 X1995/12/10 15:56:45 377 X1995/12/20 09:54:51 377 X1996/01/16 00:16:55 383 X1996/01/17 10:18:53 385 X1996/01/31 11:30:21 387 X1996/02/29 08:09:30 392 X1996/03/06 08:45:35 394 X1996/03/09 13:32:43 400 X1996/03/10 00:48:42 403 X1996/03/22 07:45:31 410 X1996/03/29 06:38:50 415 X1996/04/01 07:49:22 417 X1996/04/09 09:32:12 423 X1996/04/12 09:07:45 442 X1996/04/26 10:37:13 448 X1996/04/30 21:37:16 450 X1996/05/04 09:46:49 454 X1996/06/19 08:48:26 470 X1996/07/10 11:23:13 480 X1996/07/10 23:05:10 483 X1996/07/12 12:10:53 485 X1996/07/23 21:04:51 488 X1996/07/30 21:57:01 494 X1996/08/02 09:39:05 504 X1996/08/06 19:39:50 510 X1996/08/09 08:56:56 517 X1996/08/11 10:11:56 517 X1996/08/16 08:58:28 521 X1996/08/19 12:57:08 528 X1996/08/20 23:16:20 532 X1996/09/11 08:56:26 539 X1996/09/17 09:23:56 547 X1996/09/26 09:36:32 556 X1996/10/10 07:18:54 556 X1996/10/16 01:51:47 563 X1996/10/16 10:14:13 563 X1996/10/24 11:35:49 595 X1996/10/30 09:15:55 604 X1996/11/05 23:58:29 622 X1996/11/09 13:46:31 630 X1996/11/12 11:07:40 640 X1996/11/16 13:33:41 654 X1996/11/19 01:49:04 660 X1996/11/26 11:39:41 690 X1996/12/04 12:02:17 690 X1996/12/07 14:10:32 699 X1996/12/10 06:38:31 703 X1996/12/17 06:33:00 709 X1996/12/18 06:39:49 712 X1997/01/03 15:48:40 739 X1997/01/08 13:55:08 744 X1997/01/11 13:32:05 751 X1997/01/12 14:03:19 752 X1997/01/22 10:07:07 759 X1997/02/06 09:19:42 771 X1997/02/14 10:54:57 780 X1997/02/16 13:04:00 789 X1997/02/25 10:25:08 801 X1997/03/04 06:42:15 815 X1997/03/06 12:15:31 833 X1997/03/07 00:07:48 830 X1997/03/11 21:35:14 831 X1997/03/18 09:04:58 835 X1997/03/28 12:14:29 845 X1997/04/09 04:03:06 853 X1997/04/09 10:09:15 854 X1997/04/10 19:26:40 854 X1997/04/10 22:25:46 854 X1997/04/15 04:50:16 862 X1997/04/18 10:24:48 867 X1997/04/27 07:32:00 874 X1997/04/29 03:40:39 880 X1997/05/10 11:11:51 893 X1997/05/19 10:10:36 897 X1997/05/20 10:07:59 900 X1997/05/21 22:27:47 904 X1997/05/28 23:45:39 909 X1997/06/03 11:33:41 912 X1997/06/04 10:24:39 945 X1997/06/07 10:45:14 948 X1997/06/10 11:11:49 954 X1997/06/13 05:08:35 957 X1997/06/19 09:11:46 973 X1997/07/02 08:45:49 1009 X1997/07/08 11:32:24 1018 X1997/07/10 10:34:47 1022 X1997/07/17 09:49:22 1028 X1997/08/13 09:43:06 1046 X1997/08/27 06:55:18 1054 X1997/09/09 11:36:06 1067 X1997/09/18 04:29:03 1079 X1997/09/30 09:59:23 1087 X1997/10/08 11:23:30 1104 X1997/10/18 09:52:54 1117 X1997/10/25 10:19:39 1124 X1997/10/25 14:41:44 1124 X1997/10/30 01:54:46 1126 X1997/11/11 01:03:18 1161 X1997/11/15 12:30:07 1168 X1997/11/19 04:04:38 1182 X1997/11/25 11:35:13 1198 X1997/12/03 06:29:44 1209 X1997/12/11 05:46:48 1214 X1997/12/17 05:46:00 1222 X1997/12/23 09:55:02 1225 X1997/12/26 00:08:12 1226 X1997/12/28 23:24:13 1231 X1997/12/31 23:55:18 1233 X1998/01/06 09:14:04 1239 X1998/01/18 14:04:35 1245 X1998/01/21 11:00:35 1240 X1998/01/29 00:42:58 1245 X1998/02/18 11:12:07 1274 X1998/02/26 05:25:24 1294 X1998/03/03 11:06:56 1303 X1998/03/23 13:56:16 1324 X1998/03/23 14:05:22 1324 X1998/03/24 05:20:01 1324 X1998/03/29 00:02:15 1338 X1998/04/17 11:06:42 1345 X1998/04/22 13:45:12 1359 X1998/04/28 06:28:15 1384 X1998/06/07 03:05:26 1482 X1998/06/10 09:32:41 1491 X1998/06/16 14:22:02 1508 X1998/06/28 14:27:50 1520 X1998/07/03 08:30:00 1536 X1998/07/20 19:10:44 1608 X1998/07/21 15:56:57 1621 X1998/07/22 11:26:17 1620 X1998/08/08 00:57:37 1637 X1998/08/18 15:55:42 1638 X1998/08/19 22:34:10 1687 X1998/09/01 08:28:15 1710 X1998/09/17 20:44:24 1725 X1998/10/06 21:24:50 1739 X1998/10/16 06:00:46 1749 X1998/10/26 09:45:24 1797 X1998/10/30 10:55:32 1809 X1998/11/11 04:58:07 1827 X1998/11/12 01:38:25 1828 X1998/11/14 12:11:20 1828 X1998/11/17 06:41:04 1838 X1998/11/23 20:49:25 1871 X1998/11/27 00:33:28 1876 X1998/11/30 01:50:01 1877 X1998/12/13 22:08:30 1924 X1998/12/26 03:18:12 1988 X1999/01/08 19:51:14 2036 X1999/01/11 10:45:22 2042 X1999/01/19 00:35:19 2041 X1999/01/26 08:29:04 2064 X1999/02/12 07:04:18 2084 X1999/02/14 09:30:09 2089 X1999/02/14 10:41:18 2089 X1999/02/22 11:38:10 2096 X1999/03/01 09:21:35 2101 X1999/03/02 01:55:39 2100 X1999/03/15 09:45:20 2115 X1999/03/21 10:12:40 2141 X1999/03/29 11:03:59 2141 X1999/04/05 09:40:24 2189 X1999/04/12 23:51:01 2204 X1999/04/20 00:25:42 2230 X1999/04/21 11:41:29 2230 X1999/05/04 10:04:38 2305 X1999/05/05 07:22:57 2308 X1999/05/06 12:11:40 2308 X1999/05/13 09:20:53 2360 X1999/05/13 11:58:33 2360 X1999/05/14 06:43:15 2359 X1999/05/14 11:54:54 2359 X1999/05/26 06:28:39 2374 X1999/06/08 00:05:54 2402 X1999/06/15 22:44:44 2431 X1999/06/29 22:28:37 2474 X1999/07/04 23:41:32 2494 X1999/07/06 11:17:48 2496 X1999/07/18 09:58:13 2502 X1999/07/24 11:40:25 2502 X1999/08/02 12:15:44 2517 X1999/08/09 01:39:33 2539 X1999/08/20 10:59:29 2559 X1999/08/24 23:12:46 2565 X1999/09/09 03:17:29 2628 X1999/09/11 02:58:56 2646 X1999/09/14 22:58:50 2646 X1999/09/20 10:46:40 2648 X1999/09/30 11:06:50 2671 X1999/10/05 11:45:15 2685 X1999/10/10 10:24:06 2703 X1999/10/14 10:49:31 2711 X1999/10/24 06:46:02 2723 X1999/11/02 04:25:04 2733 X1999/11/12 11:34:15 2773 X1999/11/20 12:23:03 2794 X1999/12/08 14:17:17 2839 X1999/12/11 22:56:16 2847 X1999/12/28 09:55:51 2909 X2000/01/02 23:28:17 2925 X2000/01/10 15:02:05 2946 X2000/01/14 13:16:26 2966 X2000/01/21 12:41:24 2972 X2000/01/27 11:16:21 2987 X2000/01/29 13:33:41 3029 X2000/02/02 00:52:11 3051 X2000/02/06 16:13:24 3061 X2000/02/11 23:04:45 3077 X2000/02/16 15:43:54 3102 X2000/02/18 01:25:53 3103 X2000/02/23 00:15:05 3120 X2000/02/24 19:17:07 3126 X2000/03/01 08:57:29 3138 X2000/03/07 09:49:42 3144 X2000/03/14 18:59:19 3157 X2000/03/30 23:23:07 3187 X2000/04/03 09:26:02 3200 X2000/04/15 05:49:13 3214 X2000/04/20 00:09:18 3224 X2000/04/25 02:05:55 3230 X2000/05/04 01:02:33 3251 X2000/05/07 11:33:04 3257 X2000/05/12 08:28:03 3268 X2000/05/26 04:48:17 3288 X2000/06/07 09:40:35 3339 X2000/06/08 11:48:31 3356 X2000/06/16 22:56:18 3403 X2000/06/29 01:41:36 3435 X2000/07/04 20:11:03 3470 X2000/07/07 06:53:38 3483 X2000/07/13 09:10:14 3565 X2000/07/19 18:57:46 3605 X2000/07/21 18:15:35 3605 X2000/07/22 19:27:12 3613 X2000/08/04 09:18:32 3676 X2000/08/09 21:49:21 3688 X2000/08/15 20:21:40 3724 X2000/08/19 08:22:02 3736 X2000/08/28 22:41:59 3772 X2000/09/05 19:23:28 3797 X2000/09/15 00:42:50 3845 X2000/09/21 02:26:09 3918 X2000/09/22 08:47:16 3922 X2000/09/23 01:36:52 3922 X2000/09/28 23:31:15 3944 X2000/10/04 23:39:50 3958 X2000/10/08 11:47:56 3959 X2000/10/13 07:56:02 3972 X2000/10/22 01:05:27 4006 X2000/10/22 01:59:47 4006 X2000/10/25 20:46:21 4004 X2000/11/01 01:03:14 4070 X2000/11/02 22:35:43 4083 X2000/11/03 19:42:03 4101 X2000/11/04 10:30:38 4101 X2000/11/13 07:20:23 4120 X2000/11/16 22:15:23 4127 X2000/11/17 12:19:21 4127 X2000/11/26 04:51:41 4142 X2000/12/15 06:19:18 4229 X2000/12/22 02:54:22 4275 X2000/12/28 17:08:03 4296 X2001/01/04 05:08:59 4363 X2001/01/11 07:05:48 4470 X2001/01/17 17:09:28 4483 X2001/01/25 02:52:10 4504 X2001/02/03 00:57:16 4517 X2001/02/09 03:08:59 4536 X2001/02/17 07:06:58 4569 X2001/02/23 17:26:51 4584 X2001/03/01 03:33:41 4594 X2001/03/08 17:29:07 4655 X2001/03/22 09:20:18 4791 X2001/03/29 02:22:10 4823 X2001/04/05 21:22:50 4900 X2001/04/16 10:02:44 5004 X2001/04/18 03:20:45 5036 X2001/04/18 21:37:31 5045 X2001/04/20 08:30:49 5045 X2001/05/03 21:11:47 5103 X2001/05/26 02:06:09 5211 X2001/05/31 16:17:34 5260 X2001/06/14 19:52:43 5349 X2001/06/21 18:04:27 5381 X2001/06/28 06:53:49 5412 X2001/07/04 18:36:07 5448 X2001/07/18 17:11:06 5523 X2001/07/26 07:04:28 5557 X2001/08/02 07:17:54 5590 X2001/08/11 06:28:35 5615 X2001/08/16 21:21:26 5647 X2001/08/25 01:25:19 5704 X2001/09/03 23:19:50 5813 X2001/09/13 07:07:13 5849 X2001/09/16 01:02:45 5849 X2001/09/26 06:11:27 5893 X2001/10/14 20:04:52 5918 X2001/10/26 05:03:53 5981 X2001/11/03 17:31:58 6013 X2001/11/19 07:13:49 6077 X2002/01/06 18:43:47 6376 X2002/01/29 04:56:34 6470 X2002/03/10 01:57:10 6672 X2002/03/11 11:48:19 6675 X2002/04/06 00:50:47 6777 X2002/04/06 01:02:08 6777 END-of-ports.log exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204242153.g3OLrl0f002161>