Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rpn-calculator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuanle Song
rpn-calculator
Commits
7e5d7fac
Commit
7e5d7fac
authored
7 years ago
by
Yuanle Song
Browse files
Options
Downloads
Patches
Plain Diff
add print-loc.sh
parent
2e6ff9ff
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
print-loc.sh
+14
-0
14 additions, 0 deletions
print-loc.sh
with
14 additions
and
0 deletions
print-loc.sh
0 → 100755
+
14
−
0
View file @
7e5d7fac
#!/bin/sh
print_help_and_exit
()
{
echo
"Usage: ./print-loc"
exit
1
}
# main()
if
[
"
$1
"
=
"--help"
]
;
then
print_help_and_exit
fi
cloc
--exclude-dir
vendor
.
if
[
$?
-ne
0
]
;
then
echo
"Error: require cloc program. Try sudo apt-get install -y cloc"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment