5
5
* * *
6
6
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
7
7
8
- Latest release: v1.96 (Dec. 18, 2022 )
8
+ Latest release: v1.98 (Aug. 19, 2023 )
9
9
10
10
<a href =" https://github.com/AlDanial/cloc/graphs/contributors " alt =" Contributors " >
11
11
<img src="https://img.shields.io/github/contributors/AlDanial/cloc" /></a>
@@ -64,11 +64,9 @@ Step 3: Invoke cloc to count your source files, directories, archives,
64
64
or git commits.
65
65
The executable name differs depending on whether you use the
66
66
development source version (` cloc ` ), source for a
67
- released version (` cloc-1.96.pl ` ) or a Windows executable
68
- (` cloc-1.96.1.exe ` ).
69
- (2023-01-10: a special
70
- [ 1.96.1 release] ( https://github.com/AlDanial/cloc/releases/tag/v1.96.1 ) of cloc was made to update the Windows executable to use the
71
- `` Win32::LongPath `` module.)
67
+ released version (` cloc-1.98.pl ` ) or a Windows executable
68
+ (` cloc-1.98.exe ` ).
69
+
72
70
On this page, ` cloc ` is the generic term
73
71
used to refer to any of these.
74
72
@@ -385,38 +383,44 @@ and Digest::MD5 installed locally.
385
383
<a name =" building_exe " ></a > [ ] ( {{{1 )
386
384
# [ Building a Windows Executable ▲ ; ] ( #___top " click to go to top of document ")
387
385
388
- The Windows downloads
389
- <tt >cloc-1.94.exe</tt >,
390
- <tt >cloc-1.92.exe</tt >,
391
- <tt >cloc-1.90.exe</tt > and
392
- <tt >cloc-1.88.exe</tt > were built on a 64 bit Windows 10 computer
393
- using
394
- [ Strawberry Perl] ( http://strawberryperl.com/ )
395
- 5.30.2 and
396
- [ PAR::Packer] ( http://search.cpan.org/~rschupp/PAR-Packer-1.050/lib/pp.pm )
397
- to build the ` .exe ` .
386
+ #### Create your own executable
387
+ The most robust option for creating a Windows executable of
388
+ cloc is to use [ ActiveState's Perl Development Kit] ( http://www.activestate.com/perl-dev-kit ) .
389
+ It includes a utility, ` perlapp ` , which can build stand-alone
390
+ Windows, Mac, and Linux binaries of Perl source code.
398
391
399
- Release 1.86 was built on a 64 bit Windows 10 virtual machine
400
- downloaded from https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ ;
401
- releases 1.74 through 1.84
402
- were was built on a 32 bit Windows 7 virtual machine
403
- using Strawberry Perl 5.26.1.1, while
404
- 1.70 and 1.72 were built with Strawberry Perl 5.24.0.1
405
- on an Amazon Web Services t2.micro instance running Microsoft Windows Server 2008
406
- (32 bit for 1.70 and 1.72; 64 bit for 1.74).
407
- Release 1.66 was built on a 32 bit Windows 7 VirtualBox image.
408
- Windows executables of cloc versions 1.60 and earlier were built with
409
- [ perl2exe] ( http://www.indigostar.com/perl2exe/ ) on a 32 bit Windows
410
- XP computer. A small modification was made to the cloc source code
411
- before passing it to perl2exe; lines 87 and 88 were uncommented:
392
+ [ perl2exe] ( http://www.indigostar.com/perl2exe/ )
393
+ will also do the trick. If you do have ` perl2exe ` , modify lines
394
+ 84-87 in the cloc source code for a minor code
395
+ modification that is necessary to make a cloc Windows executable.
396
+
397
+ Otherwise, to build a Windows executable with ` pp ` from
398
+ ` PAR::Packer ` , first install a Windows-based Perl distribution
399
+ (for example Strawberry Perl or ActivePerl) following their
400
+ instructions. Next, open a command prompt, aka a DOS window and install
401
+ the PAR::Packer module. Finally, invoke the newly installed ` pp `
402
+ command with the cloc source code to create an ` .exe ` file:
412
403
413
404
<pre >
414
- <font color =" gray " >85</font > # Uncomment next two lines when building Windows executable with perl2exe
415
- <font color =" gray " >86</font > # or if running on a system that already has Regexp::Common.
416
- <font color =" gray " >87</font > <font color =" red " >#use Regexp::Common;</font >
417
- <font color =" gray " >88</font > <font color =" red " >#$HAVE_Rexexp_Common = 1;</font >
405
+ C:> cpan -i Digest::MD5
406
+ C:> cpan -i Regexp::Common
407
+ C:> cpan -i Algorithm::Diff
408
+ C:> cpan -i PAR::Packer
409
+ C:> cpan -i Win32::LongPath
410
+ C:> pp -M Win32::LongPath -M Encode::Unicode -M Digest::MD5 -c -x -o cloc-1.98.exe cloc-1.98.pl
418
411
</pre >
419
412
413
+ A variation on the instructions above is if you installed the portable
414
+ version of Strawberry Perl, you will need to run ` portableshell.bat ` first
415
+ to properly set up your environment.
416
+
417
+ The Windows executable in the Releases section, <tt >cloc-1.98.exe</tt >,
418
+ was built on a 64 bit Windows 10 computer using
419
+ [ Strawberry Perl] ( http://strawberryperl.com/ )
420
+ 5.30.2 and
421
+ [ PAR::Packer] ( http://search.cpan.org/~rschupp/PAR-Packer-1.050/lib/pp.pm )
422
+ to build the ` .exe ` .
423
+
420
424
#### Is the Windows executable safe to run? Does it have malware?
421
425
422
426
Ideally, no one would need the Windows executable because they
@@ -432,6 +436,9 @@ executable and also check sites such
432
436
https://www.virustotal.com/ .
433
437
The entries for recent versions are:
434
438
439
+ cloc-1.98.exe:
440
+ https://www.virustotal.com/gui/file/88615d193ec8c06f7ceec3cc1d661088af997798d87ddff331d9e9f9128a6782?nocache=1
441
+
435
442
cloc-1.96.1.exe:
436
443
https://www.virustotal.com/gui/file/00b1c9dbbfb920dabd374418e1b86d2c24b8cd2b8705aeb956dee910d0d75d45?nocache=1
437
444
@@ -494,37 +501,6 @@ much larger than those built with perl2exe? My theory is that perl2exe
494
501
uses smarter tree pruning logic
495
502
than ` PAR::Packer ` , but that's pure speculation.
496
503
497
- #### Create your own executable
498
- The most robust option for creating a Windows executable of
499
- cloc is to use [ ActiveState's Perl Development Kit] ( http://www.activestate.com/perl-dev-kit ) .
500
- It includes a utility, ` perlapp ` , which can build stand-alone
501
- Windows, Mac, and Linux binaries of Perl source code.
502
-
503
- [ perl2exe] ( http://www.indigostar.com/perl2exe/ )
504
- will also do the trick. If you do have ` perl2exe ` , modify lines
505
- 84-87 in the cloc source code for a minor code
506
- modification that is necessary to make a cloc Windows executable.
507
-
508
- Otherwise, to build a Windows executable with ` pp ` from
509
- ` PAR::Packer ` , first install a Windows-based Perl distribution
510
- (for example Strawberry Perl or ActivePerl) following their
511
- instructions. Next, open a command prompt, aka a DOS window and install
512
- the PAR::Packer module. Finally, invoke the newly installed ` pp `
513
- command with the cloc source code to create an ` .exe ` file:
514
-
515
- <pre >
516
- C:> cpan -i Digest::MD5
517
- C:> cpan -i Regexp::Common
518
- C:> cpan -i Algorithm::Diff
519
- C:> cpan -i PAR::Packer
520
- C:> cpan -i Win32::LongPath
521
- C:> pp -M Win32::LongPath -M Encode::Unicode -M Digest::MD5 -c -x -o cloc-1.96.exe cloc-1.96.pl
522
- </pre >
523
-
524
- A variation on the instructions above is if you installed the portable
525
- version of Strawberry Perl, you will need to run ` portableshell.bat ` first
526
- to properly set up your environment.
527
-
528
504
[ ] ( 1}}} )
529
505
<a name =" Basic_Use " ></a > [ ] ( {{{1 )
530
506
# [ Basic Use ▲ ; ] ( #___top " click to go to top of document ")
@@ -1054,6 +1030,7 @@ ASP (asa, ashx, asp, axd)
1054
1030
ASP.NET (asax, ascx, asmx, aspx, master, sitemap, webinfo)
1055
1031
AspectJ (aj)
1056
1032
Assembly (a51, asm, nasm, S, s)
1033
+ Asymptote (asy)
1057
1034
AutoHotkey (ahk, ahkl)
1058
1035
awk (auk, awk, gawk, mawk, nawk)
1059
1036
Bazel (BUILD)
@@ -1068,7 +1045,7 @@ C (c, cats, ec, idc, pgc)
1068
1045
C Shell (csh, tcsh)
1069
1046
C# (cs)
1070
1047
C# Designer (designer.cs)
1071
- C++ (C, c++, cc, CPP, cpp, cxx, h++, inl, ipp, pcc, tcc, tpp)
1048
+ C++ (C, c++, c++m, cc, ccm, CPP, cpp, cppm, cxx, cxxm, h++, inl, ipp, ixx , pcc, tcc, tpp)
1072
1049
C/C++ Header (H, h, hh, hpp, hxx)
1073
1050
Cairo (cairo)
1074
1051
Cake Build Script (cake)
@@ -1082,9 +1059,11 @@ ClojureC (cljc)
1082
1059
ClojureScript (cljs)
1083
1060
CMake (cmake, cmake.in, CMakeLists.txt)
1084
1061
COBOL (CBL, cbl, ccp, COB, cob, cobol, cpy)
1062
+ CoCoA 5 (c5, cocoa5, cocoa5server, cpkg5)
1085
1063
CoffeeScript (_coffee, cakefile, cjsx, coffee, iced)
1086
1064
ColdFusion (cfm, cfml)
1087
1065
ColdFusion CFScript (cfc)
1066
+ Constraint Grammar (cg3, rlx)
1088
1067
Containerfile (Containerfile)
1089
1068
Coq (v)
1090
1069
Crystal (cr)
@@ -1149,6 +1128,7 @@ Groovy (gant, groovy, grt, gtpl, gvy, jenkinsfile)
1149
1128
Haml (haml, haml.deface)
1150
1129
Handlebars (handlebars, hbs)
1151
1130
Harbour (hb)
1131
+ Hare (ha)
1152
1132
Haskell (hs, hsc, lhs)
1153
1133
Haxe (hx, hxsl)
1154
1134
HCL (hcl, nomad, tf, tfvars)
@@ -1161,9 +1141,10 @@ IDL (dlm, idl, pro)
1161
1141
Idris (idr)
1162
1142
Igor Pro (ipf)
1163
1143
Imba (imba)
1164
- INI (buildozer.spec, ini, lektorproject, prefs)
1144
+ INI (buildozer.spec, editorconfig, ini, lektorproject, prefs)
1165
1145
InstallShield (ism)
1166
1146
IPL (ipl)
1147
+ Jai (jai)
1167
1148
Java (java)
1168
1149
JavaScript (_js, bones, cjs, es6, jake, jakefile, js, jsb, jscad, jsfl, jsm, jss, mjs, njs, pac, sjs, ssjs, xsjs, xsjslib)
1169
1150
JavaServer Faces (jsf)
@@ -1212,6 +1193,7 @@ MXML (mxml)
1212
1193
NAnt script (build)
1213
1194
NASTRAN DMAP (dmap)
1214
1195
Nemerle (n)
1196
+ NetLogo (nlogo, nls)
1215
1197
Nim (nim, nim.cfg, nimble, nimrod, nims)
1216
1198
Nix (nix)
1217
1199
Nunjucks (njk)
@@ -1317,6 +1299,7 @@ tspeg (jspeg, tspeg)
1317
1299
TTCN (ttcn, ttcn2, ttcn3, ttcnpp)
1318
1300
Twig (twig)
1319
1301
TypeScript (tsx, ts)
1302
+ Typst (typ)
1320
1303
Umka (um)
1321
1304
Unity-Prefab (mat, prefab)
1322
1305
Vala (vala)
@@ -1330,7 +1313,6 @@ Visual Basic (BAS, bas, ctl, dsr, frm, FRX, frx, VBHTML, vbhtml, v
1330
1313
Visual Basic .NET (VB, vb, vbproj)
1331
1314
Visual Basic Script (VBS, vbs)
1332
1315
Visual Fox Pro (SCA, sca)
1333
- Visual Studio Module (ixx)
1334
1316
Visual Studio Solution (sln)
1335
1317
Visualforce Component (component)
1336
1318
Visualforce Page (page)
0 commit comments