Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sébastien Villemot
website
Commits
7d9b00ab
Verified
Commit
7d9b00ab
authored
Feb 06, 2020
by
Sébastien Villemot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor simplification
parent
2944b897
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
assets/RePEc/rdf2yml.sh
assets/RePEc/rdf2yml.sh
+2
-2
No files found.
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
Markdown
is supported
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