Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Tortues CC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Yann Roberge
Tortues CC
Commits
dd2646a1
Commit
dd2646a1
authored
4 years ago
by
Yann Roberge
Browse files
Options
Downloads
Patches
Plain Diff
gjout d'un script de téléchargement du répo parce qu'il y a pas git sur les tortues
parent
30e6c884
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
fichiersCode.config
+11
-0
11 additions, 0 deletions
fichiersCode.config
gitpull.lua
+29
-0
29 additions, 0 deletions
gitpull.lua
with
40 additions
and
0 deletions
fichiersCode.config
0 → 100644
+
11
−
0
View file @
dd2646a1
bucher
.
lua
essais
.
lua
gitpull
.
lua
poseurDeRail
.
lua
salleCarree
.
lua
carreler
.
lua
excaver
.
lua
printf
.
lua
test
.
lua
macros
.
lua
rsiTurtle
.
lua
This diff is collapsed.
Click to expand it.
gitpull.lua
0 → 100644
+
29
−
0
View file @
dd2646a1
-- gitpull.lua
-- Created on: 2020-11-06
-- Author: Rétro
--
-- Télécharger le répo git
--
local
fileList
=
"fichiersCode.config"
local
urlStub
=
"https://git.step.polymtl.ca/Retro/tortues-cc/raw/master/"
local
fileName
local
textRead
,
err
local
fileHandle
local
fileListHandle
=
fs
.
open
(
fileList
,
"r"
)
fileName
=
fileListHandle
.
readLine
()
while
(
fileName
)
do
print
(
"URL: "
..
urlStub
..
fileName
)
textRead
,
err
=
http
.
get
(
urlStub
..
fileName
)
if
not
textRead
then
error
(
err
)
end
-- Écrire le même fichier
fileHandle
=
fs
.
open
(
fileName
,
"w"
)
fileHandle
.
write
(
textRead
)
fileHandle
.
close
()
fileName
=
fileListHandle
.
readLine
()
end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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