| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Builds and uploads a debian package for perf. | 2 # Builds and uploads a debian package for perf. |
| 3 APPNAME=skiaperf | 3 APPNAME=skiaperfd |
| 4 DESCRIPTION="Manages performance metrics." | 4 DESCRIPTION="Manages performance metrics." |
| 5 SYSTEMD="${APPNAME}.service" |
| 5 | 6 |
| 6 DEPENDS=git | 7 DEPENDS=git |
| 7 | 8 |
| 8 # Copy files into the right locations in ${ROOT}. | 9 # Copy files into the right locations in ${ROOT}. |
| 9 copy_release_files() | 10 copy_release_files() |
| 10 { | 11 { |
| 11 INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root" | 12 INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root" |
| 12 INSTALL_DIR="sudo install -d --verbose --backup=none --group=root --owner=root" | 13 INSTALL_DIR="sudo install -d --verbose --backup=none --group=root --owner=root" |
| 13 | 14 |
| 14 ${INSTALL} --mode=755 -T ${GOPATH}/bin/skiaperf ${ROOT}/usr/local/bin/ski
aperf | 15 ${INSTALL} --mode=755 -T ${GOPATH}/bin/skiaperf ${ROOT}/usr/local/bin/
skiaperf |
| 15 ${INSTALL} --mode=755 -T ${GOPATH}/bin/ingest ${ROOT}/usr/local/bin/ing
est | 16 ${INSTALL} --mode=755 -T ${GOPATH}/bin/perf_migratedb ${ROOT}/usr/local/bin/
perf_migratedb |
| 16 ${INSTALL} --mode=755 -T ${GOPATH}/bin/tiletool ${ROOT}/usr/local/bin/til
etool | 17 ${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/sy
stem/${APPNAME}.service |
| 17 ${INSTALL} --mode=755 -T ${GOPATH}/bin/perf_migratedb ${ROOT}/usr/local/bin/per
f_migratedb | |
| 18 | 18 |
| 19 ${INSTALL} --mode=644 -T ./sys/perf_monit ${ROOT}/etc/monit/conf.d/
skiaperf | 19 ${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/shar
e/skiaperf/templates |
| 20 ${INSTALL} --mode=755 -T ./sys/perf_init ${ROOT}/etc/init.d/skiape
rf | 20 ${INSTALL} --mode=644 ./res/img/favicon.ico ${ROOT}/usr/local/shar
e/skiaperf/res/img/favicon.ico |
| 21 | 21 ${INSTALL} --mode=644 ./res/js/core.js ${ROOT}/usr/local/shar
e/skiaperf/res/js/core.js |
| 22 ${INSTALL} --mode=644 -T ./sys/ingest_monit ${ROOT}/etc/monit/conf.d/
ingest | 22 ${INSTALL} --mode=644 ./res/vul/elements.html ${ROOT}/usr/local/shar
e/skiaperf/res/vul/elements.html |
| 23 ${INSTALL} --mode=755 -T ./sys/ingest_init ${ROOT}/etc/init.d/ingest | |
| 24 | |
| 25 ${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/s
kiaperf/templates | |
| 26 ${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/share/s
kiaperf/templates | |
| 27 ${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/share/s
kiaperf/res/imp | |
| 28 ${INSTALL} --mode=644 ./res/imp/*.html ${ROOT}/usr/local/share/s
kiaperf/res/imp | |
| 29 | |
| 30 ${INSTALL} --mode=644 ./perf_ingest.toml ${ROOT}/usr/local/share/s
kiaperf/perf_ingest.toml | |
| 31 | |
| 32 ${INSTALL} --mode=644 ./res/css/perf.css ${ROOT}/usr/local/share/s
kiaperf/res/css/perf.css | |
| 33 ${INSTALL} --mode=644 ./res/img/favicon.ico ${ROOT}/usr/local/share/s
kiaperf/res/img/favicon.ico | |
| 34 ${INSTALL} --mode=644 ./res/js/core.js ${ROOT}/usr/local/share/s
kiaperf/res/js/core.js | |
| 35 ${INSTALL} --mode=644 ./res/js/index.js ${ROOT}/usr/local/share/s
kiaperf/res/js/index.js | |
| 36 ${INSTALL} --mode=644 ./res/vul/elements.html ${ROOT}/usr/local/share/s
kiaperf/res/vul/elements.html | |
| 37 } | 23 } |
| 38 | 24 |
| 39 source ../bash/release.sh | 25 source ../bash/release.sh |
| OLD | NEW |