This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raw BLS input files for all extractives
- Loading branch information
Shawn Allen
committed
Dec 1, 2015
1 parent
018b20f
commit e8903bc
Showing
11 changed files
with
30,282 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
years ?= 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 | ||
zips = $(foreach year,$(years),$(year).zip) | ||
csvs = $(foreach year,$(years),$(year).csv) | ||
|
||
all: $(csvs) | ||
|
||
%.zip: | ||
curl "http://www.bls.gov/cew/data/files/$*/csv/$*_annual_by_industry.zip" -o $@ | ||
|
||
%.csv: %.zip | ||
unzip $< '*.annual 21 *.csv' | ||
mv $*.annual.by_industry/*.csv $@ | ||
rm -r $*.annual.by_industry | ||
|
||
distclean: clean | ||
rm -f *.zip | ||
|
||
clean: | ||
rm -f *.csv |