Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
outillage
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Alice Brenon
outillage
Commits
f09a3cf4
Commit
f09a3cf4
authored
1 year ago
by
Alice Brenon
Browse files
Options
Downloads
Patches
Plain Diff
A little renaming of the subcorpus extractor to enforce repository conventions
parent
33d70476
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/subcorpus/get-files.hs
+2
-2
2 additions, 2 deletions
scripts/subcorpus/get-files.hs
with
2 additions
and
2 deletions
scripts/subcorpus/get
F
iles.hs
→
scripts/subcorpus/get
-f
iles.hs
+
2
−
2
View file @
f09a3cf4
#!/
usr
/
bin
/
env
-
S
runhaskell
--ghc-arg="-Wall" --ghc-arg="-i lib"
import
GEODE.Metadata
(
PrimaryKey
(
..
),
readNamedTsv
,
relativePath
)
import
GEODE.Metadata
(
ArticleRecord
(
..
),
readNamedTsv
,
relativePath
)
import
System.Directory
(
createDirectoryIfMissing
,
doesFileExist
)
import
System.Environment
(
getArgs
)
import
System.FilePath
((
</>
),
takeDirectory
)
import
System.Posix.Files
(
createLink
)
import
System.Script
(
syntax
,
try
)
link
::
String
->
FilePath
->
FilePath
->
PrimaryKey
->
IO
()
link
::
String
->
FilePath
->
FilePath
->
ArticleRecord
->
IO
()
link
extension
sourceRoot
targetRoot
article
=
do
fileExists
<-
doesFileExist
sourceFile
if
fileExists
...
...
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