Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Houtan Bastani
website
Commits
552c7d28
Verified
Commit
552c7d28
authored
Dec 07, 2018
by
Houtan Bastani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add function to create snapshots
parent
cb9e8375
Pipeline
#452
canceled with stages
in 18 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
0 deletions
+38
-0
.gitlab-ci.yml
.gitlab-ci.yml
+3
-0
_config.yml
_config.yml
+2
-0
setup-snapshots.sh
setup-snapshots.sh
+33
-0
No files found.
.gitlab-ci.yml
View file @
552c7d28
...
...
@@ -16,6 +16,9 @@ build:
-
gem install jekyll
-
gem install bundler
-
(cd _data && wget http://www.dynare.org/RePEc/cpm/dynare/wp.yml)
-
pwd
-
ls -la
-
bash setup-snapshots.sh
-
bundle install
script
:
-
(cd assets/images/logo && make)
...
...
_config.yml
View file @
552c7d28
...
...
@@ -170,6 +170,8 @@ exclude:
-
/assets/images/logo/*.tex
-
/assets/images/logo/*.sh
-
/assets/RePEc/rdf2yml.py
-
.gitlab-ci.yml
-
setup-snapshots.sh
keep_files
:
-
.git
-
/assets/images/*
...
...
setup-snapshots.sh
0 → 100755
View file @
552c7d28
#!/bin/bash
mkdir
-p
assets/snapshot
cd
assets/snapshot
wget http://eris.dynare.org/snapshot/macosx.json
wget http://eris.dynare.org/snapshot/source.json
wget http://eris.dynare.org/snapshot/windows.json
wget http://eris.dynare.org/snapshot/windows-zip.json
declare
-a
arr
=(
"macosx"
"source"
"windows"
"windows-zip"
)
for
dir
in
"
${
arr
[@]
}
"
do
mkdir
$dir
filenames
=(
`
jq .[].filename
$dir
.json
`
)
timestamps
=(
`
jq .[].date
$dir
.json
`
)
n
=
`
jq length
$dir
.json
`
n
=
`
expr
$n
- 1
`
cd
$dir
for
i
in
`
seq
0
$n
`
;
do
filename
=
"
${
filenames
[i]%\
"}"
filename=
"
${
filename
#\
"}"
timestamp=
"
${
timestamps
[i]%\
"}"
timestamp=
"
${
timestamp
#\
"}"
echo
$filename
$timestamp
touch -amt
$timestamp
$filename
done
cd ..
done
rm *.json
cd ../..
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