Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
website
Commits
7d9b00ab
Verified
Commit
7d9b00ab
authored
Feb 06, 2020
by
Sébastien Villemot
Browse files
Minor simplification
parent
2944b897
Pipeline
#3132
passed with stages
in 39 seconds
Changes
1
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
assets/RePEc/rdf2yml.sh
View file @
7d9b00ab
#!/bin/bash
# Reads the dynare-*.rdf files in the current directory, and then create a
# Reads the dynare-*.rdf files in the current directory, and then create
s
a
# wp.yml suitable for consumption by Jekyll
declare
-A
wp_authors wp_title wp_year wp_url wp_data_url wp_source_url
...
...
@@ -104,7 +104,7 @@ else
fi
for
((
i
=
${#
wp_authors
[@]
}
;
i
>=
1
;
i--
))
;
do
if
[[
-z
${
wp_authors
[
$i
]
}
]]
||
[[
-z
${
wp_title
[
$i
]
}
]]
||
[[
-z
${
wp_year
[
$i
]
}
]]
||
[[
-z
${
wp_url
[
$i
]
}
]]
;
then
if
[[
-z
${
wp_authors
[
$i
]
}
||
-z
${
wp_title
[
$i
]
}
||
-z
${
wp_year
[
$i
]
}
||
-z
${
wp_url
[
$i
]
}
]]
;
then
echo
"Some field is missing in working paper
$i
!"
>
&2
exit
1
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment