-
Notifications
You must be signed in to change notification settings - Fork 0
/
books.txt
153 lines (144 loc) · 14.1 KB
/
books.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#!/bin/bash
# These columns are recipe_name and long description
declare -x -r RECIPE_DESC=(
"accounting Accounting"
"additive-manufacturing Additive Manufacturing"
"american-government American Government"
"anatomy Anatomy and Physiology"
"anthropology Anthropology"
"ap-biology AP Biology"
"ap-history AP U.S. History"
"ap-physics AP Physics"
"astronomy Astronomy"
"bca Business Computer Applications"
"biology Biology"
"business-ethics Business Ethics"
"calculus Calculus"
"chemistry Chemistry"
"college-physics College Physics"
"college-success College Success"
"computer-science Computer Science"
"contemporary-math Contemporary Math"
"dev-math Developmental Math"
"economics Economics"
"english-composition English Composition"
"entrepreneurship Entrepreneurship"
"finance Finance"
"history U.S. History"
"hs-physics High School Physics"
"intro-business Intro to Business"
"microbiology Microbiology"
"pl-u-physics Polish University Physics"
"pl-psychology Polish Psychology"
"precalculus Precalculus"
"precalculus-coreq Precalculus Coreq"
"principles-management Principles of Management"
"psychology Psychology"
"sociology Introduction to Sociology 2e"
"statistics Statistics"
"TEAap-biology AP-Biology (TEA version)"
"TEAap-physics AP-Physics (TEA version)"
"TEAeconomics Economics (TEA version)"
"TEAhs-physics High School Physics (TEA version)"
"TEAstatistics Statistics (TEA version)"
"u-physics University Physics"
"u-physics-prod University Physics Prod"
"world-history World History"
"bca Business Computer Applications"
)
# These columns are:
# - book_name
# - recipe_name\style_name
# - uuid : The uuid to use for ./script/fetch-book
# - host_name : The host_name to use when running ./script/fetch-book and ./script/bake-book-remote
# - additionalStyleguideDirs : These specify which additional directories should be included when building the styleguide
# - template_name : the name of the CSS styling to apply to the book
BOOK_CONFIGS=(
# "_example _example example-uuid col12345 easyvm5.cnx.org mixins/ example"
"accounting-vol-1 accounting 9ab4ba6d-1e48-486d-a2de-38ae1617ca84 col25448 cnx.org mixins/ cardboard"
"additive-manufacturing additive-manufacturing d7f23ac9-cf1c-498a-ae49-f34de2cb379f col10000 content03.cnx.org mixins/ corn"
"accounting-vol-2 accounting 920d1c8a-606c-4888-bfd4-d1ee27ce1795 col25479 cnx.org mixins/ cardboard"
"algebra-trigonometry precalculus 13ac107a-f15f-49d2-97e8-60ab2e3b519c col11758 cnx.org mixins/ corn"
"american-government-2e american-government 9d8df601-4f12-4ac1-8224-b450bf739e5f col26739 cnx.org mixins/ cosmos"
"anatomy anatomy 14fb4ad7-39a1-4eee-ab6e-3ef2482e3e22 col11496 cnx.org mixins/ carnival"
"anthropology anthropology 098b8e24-7c05-43f6-a531-81e8add82167 col10005 content06.cnx.org mixins/ carnival"
"apbiology ap-biology 6c322e32-9fb0-4c4d-a1d7-20c95c5c7af2 col12078 cnx.org mixins/,books/biology carnival"
"aphistory ap-history 0a621f27-abe1-4c17-8f1c-d80d07958977 col10034 content05.cnx.org mixins/"
"apphysics ap-physics 8d04a686-d5e8-4798-a27d-c608e4d0e187 col11844 cnx.org mixins/,books/college-physics/ carnival"
"astronomy astronomy 2e737be8-ea65-48c3-aa0a-9f35b4c6a966 col11992 cnx.org mixins/ cardboard"
"bca bca 5b89bbf8-7478-49d2-9eb0-f8c7edc9b396 col10017 content03.cnx.org mixins/ cardboard"
"biology-2e biology 8d50a0af-948b-4204-a71d-4826cba765b8 col24361 cnx.org mixins/ carnival"
"business-ethics business-ethics 914ac66e-e1ec-486d-8a9c-97b0f7a99774 col25722 cnx.org mixins/ cardboard"
"business-law business-ethics 464a3fba-68c1-426a-99f9-597e739dc911 col30149 cnx.org mixins cardboard"
"business-statistics statistics b56bb9e9-5eb8-48ef-9939-88b1b12ce22f col11776 cnx.org mixins/ corn"
"calculus-vol1 calculus 8b89d172-2927-466f-8661-01abc7ccdba4 col11964 cnx.org mixins/ corn"
"calculus-vol2 calculus 1d39a348-071f-4537-85b6-c98912458c3c col11965 cnx.org mixins/ corn"
"calculus-vol3 calculus a31cd793-2162-4e9e-acb5-6e6bbd76a5fa col11966 cnx.org mixins/ corn"
"chemistry-2e chemistry 7fccc9cf-9b71-44f6-800b-f9457fd64335 col26069 cnx.org mixins/ carnival"
"chemistry-atoms-first-2e chemistry d9b85ee6-c57f-4861-8208-5ddf261e9c5f col26488 cnx.org mixins/ carnival"
"college-algebra precalculus 9b08c294-057f-4201-9f48-5d6ad992740d col11759 cnx.org mixins/ corn"
"college-algebra-coreq precalculus-coreq 9b08c294-057f-4201-9f48-5d6ad992740d col11759 cnx.org mixins/ corn"
"college-physics college-physics 031da8d3-b525-429c-80cf-6c8ed997733a col11406 cnx.org mixins/ carnival"
"college-success college-success e8668a14-9a7d-4d74-b58c-3681f8351224 col30990 cnx.org mixins/ cardboard"
"computer-science computer-science 5d156fc1-0080-4fbe-ac77-d147b4ceed92 col10009 content03.cnx.org mixins/ cardboard"
"concepts-biology biology b3c1e1d2-839c-42b0-a314-e119a8aafbdd col11487 cnx.org mixins/ carnival"
"contemporary-math contemporary-math 7fc533e4-d617-4958-94ed-633f5bab9cae col10008 content04.cnx.org mixins/ corn"
"econ-2e economics bc498e1f-efe9-43a0-8dea-d3569ad09a82 col12122 cnx.org mixins/ cosmos"
"elementary-algebra-2e dev-math 55931856-c627-418b-a56f-1dd0007683a8 col31130 cnx.org mixins/ corn"
"english-composition english-composition 90b8e437-4f53-4d85-9558-2e870009f441 col10001 content06.cnx.org mixins/ cosmos"
"entrepreneurship entrepreneurship d380510e-6145-4625-b19a-4fa68204b6b1 col29104 cnx.org mixins/ cardboard"
"finance finance 36f3f40f-9044-4ebf-8555-4bc2a7933037 col10007 content06.cnx.org mixins/ cardboard"
"history history a7ba2fb8-8925-4987-b182-5f4429d48daa col11740 cnx.org mixins/ cosmos"
"hsphysics hs-physics a919011d-956e-4db2-8c1a-37ad293bbfc9 col12081 cnx.org mixins/,books/college-physics/ carnival"
"hs-statistics statistics 394a1101-fd8f-4875-84fa-55f15b06ba66 col30309 cnx.org mixins/ corn"
"intermediate-algebra-2e dev-math 4664c267-cd62-4a99-8b28-1cb9b3aee347 col31234 cnx.org mixins/ corn"
"intro-business intro-business 4e09771f-a8aa-40ce-9063-aa58cc24e77f col25734 cnx.org mixins/ cardboard"
"macroecon-2e economics 27f59064-990e-48f1-b604-5188b9086c29 col12190 cnx.org mixins/"
"macroeconap-2e economics 9117cf8c-a8a3-4875-8361-9cb0f1fc9362 col23729 cnx.org mixins/"
"microecon-2e economics 5c09762c-b540-47d3-9541-dda1f44f16e5 col12170 cnx.org mixins/"
"microbiology microbiology e42bd376-624b-4c0f-972f-e0c57998e765 col12087 cnx.org mixins/ carnival"
"microeconap-2e economics 636cbfd9-4e37-4575-83ab-9dec9029ca4e col23750 cnx.org mixins/"
"organizational-behavior principles-management 2d941ab9-ac5b-4eb8-b21c-965d36a4f296 col29124 cnx.org mixins"
"pl-microecon pl-economics cosmos"
"pl-psychology pl-psychology f3824852-403f-472f-84f2-1c04c0a17033 col32565 cnx.org mixins/ cosmos"
"pl-u-physics-vol1 pl-u-physics 4eaa8f03-88a8-485a-a777-dd3602f6c13e col23946 cnx.org mixins/ carnival"
"pl-u-physics-vol2 pl-u-physics 16ab5b96-4598-45f9-993c-b8d78d82b0c6 col25244 cnx.org mixins/ carnival"
"pl-u-physics-vol3 pl-u-physics bb62933e-f20a-4ffc-90aa-97b36c296c3e col25571 cnx.org mixins/ carnival"
"precalculus precalculus fd53eae1-fa23-47c7-bb1b-972349835c3c col11667 cnx.org mixins/ corn"
"prealgebra-2e dev-math f0fa90be-fca8-43c9-9aad-715c0a2cee2b col30939 cnx.org mixins/ corn"
"principles-management principles-management c3acb2ab-7d5c-45ad-b3cd-e59673fedd4e col28330 cnx.org mixins/ cardboard"
"psychology-2e psychology 06aba565-9432-40f6-97ee-b8a361f118a8 col31502 cnx.org mixins/ cosmos"
"sociology-2e sociology 02040312-72c8-441e-a685-20e9333f3e1d col11762 cnx.org mixins/ cosmos"
"sociology-3e sociology 746f171e-0d6a-4ef2-b69d-367880872f4a col32649 cnx.org mixins/ cosmos"
"statistics statistics 30189442-6998-4686-ac05-ed152b91b9de col11562 cnx.org mixins/ corn"
"u-physics-vol1 u-physics d50f6e32-0fda-46ef-a362-9bd36ca7c97d col12031 cnx.org mixins/,books/college-physics/ carnival"
"u-physics-vol2 u-physics 7a0f9770-1c44-4acd-9920-1cd9a99f2a1e col12074 cnx.org mixins/,books/college-physics/ carnival"
"u-physics-vol3 u-physics af275420-6050-4707-995c-57b9cc13c358 col12067 cnx.org mixins/,books/college-physics/ carnival"
"world-history world-history 49aabdbb-370a-4d91-9db5-19d9ccd8cc43 col10004 content03.cnx.org mixins/ cosmos"
"intellectual-property business-ethics 1b4ee0ce-ee89-44fa-a5e7-a0db9f0c94b1 col32642 cnx.org mixins/ cardboard"
"college-algebra-coreq precalculus-coreq 507feb1e-cfff-4b54-bc07-d52636cecfe3 col32026 cnx.org mixins/ corn"
)
BOOK_NAMES=()
RECIPE_NAMES=()
TEMPLATE_NAMES=()
#disable web styles for the time being
# export PLATFORMS=(pdf rex-web)
export PLATFORMS=(pdf)
# From http://stackoverflow.com/a/8574392
containsElement () {
local e
for e in "${@:2}"; do [[ "$e" == "$1" ]] && return 0; done
return 1
}
# Use double-underscores so the name does not conflict with other scripts' local vars
# since this is loaded using 'source ./books.txt'
for __book_config in "${BOOK_CONFIGS[@]}"
do
read -r __book_name __recipe_name _ _ _ _ __template_name <<< "${__book_config}"
# Add to the list of BOOK_NAMES and RECIPE_NAMES
containsElement "${__book_name}" "${BOOK_NAMES[@]}" || BOOK_NAMES+=("${__book_name}")
containsElement "${__recipe_name}" "${RECIPE_NAMES[@]}" || RECIPE_NAMES+=("${__recipe_name}")
if [[ ${__template_name} ]]; then
containsElement "${__template_name} ${__book_name} ${__recipe_name}" "${TEMPLATE_NAMES[@]}" || TEMPLATE_NAMES+=("${__template_name} ${__book_name} ${__recipe_name}")
fi
done