Skip to content

Commit

Permalink
Merge pull request #54 from codeforIATI/3-extra-codelists
Browse files Browse the repository at this point in the history
Include extra codelists
  • Loading branch information
andylolz authored Dec 21, 2019
2 parents f88b473 + bc07ffe commit 35618d3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ yarn-error.log
/node_modules/
/codelists/
/IATI-Codelists-NonEmbedded/
/IATI-Codelists-Extra/
/venv/
__pycache__
10 changes: 10 additions & 0 deletions src/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,21 @@ else
git clone --branch master https://github.com/codeforIATI/IATI-Codelists-NonEmbedded.git
fi

if [ -d IATI-Codelists-Extra ]; then
cd IATI-Codelists-Extra || exit 1
git pull
git checkout master
cd ..
else
git clone --branch master https://github.com/codeforIATI/IATI-Codelists-Extra.git
fi

codelists=("AidType-category" "AidType" "CollaborationType" "Country" "CRSChannelCode" "Currency" "EarmarkingCategory" "FileFormat" "FinanceType-category" "FinanceType" "FlowType" "Language" "LocationType-category" "LocationType" "OrganisationRegistrationAgency" "PolicyMarker" "PolicySignificance" "Region" "Sector" "SectorCategory" "UNSDG-Goals" "UNSDG-Targets")
mkdir codelists
for f in ${codelists[*]}; do
cp IATI-Codelists-NonEmbedded/xml/$f.xml codelists
done
cp IATI-Codelists-Extra/xml/* codelists

rm -rf docs
cp -r static docs
Expand Down

0 comments on commit 35618d3

Please sign in to comment.