Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Portail de données
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TEMPO
Portail de données
Merge requests
!1
ajouter GitLab-CI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ajouter GitLab-CI
gitlab-ci
into
main
Overview
0
Commits
1
Pipelines
3
Changes
6
Merged
Olivier Maury
requested to merge
gitlab-ci
into
main
2 weeks ago
Overview
0
Commits
1
Pipelines
3
Changes
6
Expand
Dans le cadre de la migration #10596, ajouter l'IC de GitLab.
0
0
Merge request reports
Compare
main
version 2
4a56b38d
2 weeks ago
version 1
15dca683
2 weeks ago
main (base)
and
latest version
latest version
376e9fe6
1 commit,
2 weeks ago
version 2
4a56b38d
1 commit,
2 weeks ago
version 1
15dca683
1 commit,
2 weeks ago
6 files
+
158
−
39
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
bin/sloccount.sh
+
18
−
25
Options
@@ -16,33 +16,26 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
TOKEI2SLOCCOUNT
=
$(
dirname
$0
)
/tokei2sloccount.py
ROOT_DIR
=
$(
dirname
$(
dirname
$0
))
TOKEI2CLOC
=
$(
dirname
$0
)
/tokei2cloc.py
TOKEITGZ
=
tokei-v7.0.3-x86_64-unknown-linux-gnu.tar.gz
if
[
!
-f
bin/tokei
]
;
then
mkdir
-p
~/tmp bin
if
[
!
-f
~/tmp/
$TOKEITGZ
]
;
then
wget
"https://github.com/Aaronepower/tokei/releases/download/v7.0.3/
$TOKEITGZ
"
-O
~/tmp/
$TOKEITGZ
TOKEI
=
$(
command
-v
tokei
)
if
[
!
-x
"
$TOKEI
"
]
;
then
TOKEITGZ
=
tokei-x86_64-unknown-linux-gnu.tar.gz
if
[
!
-f
bin/tokei
]
;
then
mkdir
-p
~/tmp
if
[
!
-f
~/tmp/
$TOKEITGZ
]
;
then
wget
"https://github.com/Aaronepower/tokei/releases/download/v12.1.2/
$TOKEITGZ
"
-O
~/tmp/
$TOKEITGZ
fi
tar
zxf ~/tmp/
$TOKEITGZ
-C
bin
fi
tar
zxf ~/tmp/
$TOKEITGZ
-C
bin
TOKEI
=
bin/tokei
fi
if
[
-f
bin/tokei
]
;
then
mkdir
-p
target
#bin/tokei -f -o json src | $TOKEI2SLOCCOUNT > target/sloccount.sc
bin/tokei
-f
-o
json src |
$TOKEI2CLOC
>
target/cloc.xml
exit
if
[
!
-f
$TOKEI
]
;
then
echo
"Strange,
$TOKEI
does not exist!"
exit
1
fi
SLOCCOUNT
=
$(
which sloccount
)
;
if
[
"
$SLOCCOUNT
"
!=
""
]
;
then
DATADIR
=
$(
dirname
$0
)
/.slocdata
;
if
[
!
-f
$DATADIR
]
;
then
mkdir
-p
$DATADIR
;
fi
mkdir
-p
target
;
/usr/bin/sloccount
--datadir
$DATADIR
--duplicates
--wide
--details
src
>
target/sloccount.sc
;
else
echo
"sloccount not found!"
;
fi
\ No newline at end of file
echo
"tokei is installed at
$TOKEI
"
$TOKEI
--version
mkdir
-p
$ROOT_DIR
/target
$TOKEI
-f
-o
json
$ROOT_DIR
/src |
$TOKEI2CLOC
>
target/cloc.xml
Loading