Compare commits

...

11 Commits

Author SHA1 Message Date
openeuler-ci-bot
ff6528768e
!6 [sync] PR-5: Update to 1.92
From: @openeuler-sync-bot 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2022-10-14 07:26:47 +00:00
s_c_c
154df8df6a Update to 1.92
(cherry picked from commit 32bf210d6b6a76a8b6e38b65a726b52698e17b71)
2022-10-14 10:03:04 +08:00
openeuler-ci-bot
dc689a1ae1 !4 add requires to avoid usage error
From: @myeuler
Reviewed-by: @licihua
Signed-off-by: @licihua
2021-01-29 19:12:10 +08:00
myeuler
243b11ecb1 add requires 2021-01-29 18:52:37 +08:00
openeuler-ci-bot
b270c5501e !3 update cloc to 1.86
Merge pull request !3 from fcwicky/master
2020-08-17 22:51:02 +08:00
fcwicky
6708b928f5 update package 2020-08-17 21:54:33 +08:00
fcwicky
c626762ad7 update cloc package 2020-08-17 21:33:50 +08:00
openeuler-ci-bot
27b2fc7100 !2 add yaml file for cloc
Merge pull request !2 from fcwicky/master
2020-08-13 14:12:24 +08:00
fcwicky
0515246d9c add yml file for cloc 2020-08-13 11:48:00 +08:00
openeuler-ci-bot
bdb19aded5 !1 init cloc package
Merge pull request !1 from myeuler/master
2020-04-07 20:40:45 +08:00
xw
0d48b91715 init cloc package 2020-04-04 00:15:43 +08:00
5 changed files with 94 additions and 34 deletions

View File

@ -1,22 +1,32 @@
# cloc
#### Description
Program line caculation tools
cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
```
npm install -g cloc # https://www.npmjs.com/package/cloc
sudo apt install cloc # Debian, Ubuntu
sudo yum install cloc # Red Hat, Fedora
sudo dnf install cloc # Fedora 22 or later
sudo pacman -S cloc # Arch
sudo emerge -av dev-util/cloc # Gentoo https://packages.gentoo.org/packages/dev-util/cloc
sudo apk add cloc # Alpine Linux
doas pkg_add cloc # OpenBSD
sudo pkg install cloc # FreeBSD
sudo port install cloc # macOS with MacPorts
brew install cloc # macOS with Homebrew
choco install cloc # Windows with Chocolatey
scoop install cloc # Windows with Scoop
```
#### Instructions
1. xxxx
2. xxxx
3. xxxx
cloc [options] <file(s)/dir(s)/git hash(es)> | <set 1> <set 2> | <report files>
#### Contribution
@ -24,13 +34,3 @@ Software architecture description
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,7 +1,7 @@
# cloc
#### 介绍
Program line caculation tools
cloc统计了各种编程语言的源代码中的空行、注释行和物理行数。
#### 软件架构
软件架构说明
@ -9,15 +9,25 @@ Program line caculation tools
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
```
npm install -g cloc # https://www.npmjs.com/package/cloc
sudo apt install cloc # Debian, Ubuntu
sudo yum install cloc # Red Hat, Fedora
sudo dnf install cloc # Fedora 22 or later
sudo pacman -S cloc # Arch
sudo emerge -av dev-util/cloc # Gentoo https://packages.gentoo.org/packages/dev-util/cloc
sudo apk add cloc # Alpine Linux
doas pkg_add cloc # OpenBSD
sudo pkg install cloc # FreeBSD
sudo port install cloc # macOS with MacPorts
brew install cloc # macOS with Homebrew
choco install cloc # Windows with Chocolatey
scoop install cloc # Windows with Scoop
```
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
cloc [options] <file(s)/dir(s)/git hash(es)> | <set 1> <set 2> | <report files>
#### 参与贡献
@ -25,13 +35,3 @@ Program line caculation tools
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

BIN
cloc-1.92.tar.gz Normal file

Binary file not shown.

56
cloc.spec Normal file
View File

@ -0,0 +1,56 @@
name: cloc
Version: 1.92
Release: 2
Summary: Program line caculation tools
License: GPLv2+
URL: https://github.com/AlDanial/cloc
Source0: https://github.com/AlDanial/cloc/releases/download/v%{version}/cloc-%{version}.tar.gz
BuildArch: noarch
BuildRequires: make
BuildRequires: perl-Regexp-Common
BuildRequires: perl-Parallel-ForkManager
Requires: perl-Regexp-Common
Requires: perl-Parallel-ForkManager
%description
cloc is a tool which can help to do program line caculation.
%prep
%setup -q -n %{name}-%{version}/Unix
%build
make
%install
make install DESTDIR="%{buildroot}"
%pre
%preun
%post
%postun
%check
%files
%license COPYING
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%changelog
* Sat Feb 26 2022 s_c_c <shichuchao@huawei.com> - 1.92-2
- Update version to 1.92
* Fri Jan 29 2021 myeuler <myeuler@163.com>
- add Requires needed
* Mon Aug 17 2020 fcwicky <307610302@qq.com>
- Update package
* Sun Mar 29 2020 Wei Xiong <myeuler@163.com>
- Package init

4
cloc.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: AlDanial/cloc
tag_prefix:
separator: "."