2 # Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
16 -e '/^[[:space:]]*"'"${key}"'"/s|.*:[[:space:]]*"([^"]*)",?$|\1|p' \
20 PN
=$
(json_value name |
sed 's:[[:space:]/]:_:g' |
tr '[:upper:]' '[:lower:]')
21 if [[ ${PN} == "__msg_name__" ]] ; then
22 PN
=$
(basename "$(pwd)")
24 PV
=$
(json_value version
)
33 dir
=$
(dirname "${line}")
34 mkdir
-p "${P}/${dir}"
35 if [[ ${line} == *.
[np
]exe
]]; then
38 ln "${line}" "${P}/${line}"
39 done < <(sed 's:#.*::' manifest.files
)
40 cp Makefile manifest.files manifest.json
"${P}/"
42 make -C "${P}" -j {css
,js
}-min
44 mv "${line}.min" "${line}"
45 done < <(find "${P}" -name '*.js' -o -name '*.css')
46 rm "${P}"/{manifest.files
,Makefile
}
49 -e '/"version"/s:"[^"]*",:"'${PVR}'",:' \
54 zip -r "${zip}" "${P}"