OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Builds and uploads a debian package for skdebugger. | 2 # Builds and uploads a debian package for skdebugger. |
3 APPNAME=skdebuggerd | 3 APPNAME=skdebuggerd |
4 SYSTEMD=${APPNAME}.service | 4 SYSTEMD=${APPNAME}.service |
5 DESCRIPTION="Program that serves up HTML/CSS/JS content for the Skia Debugger." | 5 DESCRIPTION="Program that serves up HTML/CSS/JS content for the Skia Debugger." |
6 | 6 |
7 # Copy files into the right locations in ${ROOT}. | 7 # Copy files into the right locations in ${ROOT}. |
8 copy_release_files() | 8 copy_release_files() |
9 { | 9 { |
10 INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root" | 10 INSTALL="sudo install -D --verbose --backup=none --group=root --owner=root" |
11 INSTALL_DIR="sudo install -d --verbose --backup=none --group=root --owner=root" | 11 INSTALL_DIR="sudo install -d --verbose --backup=none --group=root --owner=root" |
12 ${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system
/${APPNAME}.service | 12 ${INSTALL} --mode=644 -T ./sys/${APPNAME}.service ${ROOT}/etc/systemd/system
/${APPNAME}.service |
13 ${INSTALL} --mode=755 -T ${GOPATH}/bin/skdebugger ${ROOT}/usr/local/bin/skde
bugger | 13 ${INSTALL} --mode=755 -T ${GOPATH}/bin/skdebugger ${ROOT}/usr/local/bin/skde
bugger |
14 | 14 |
15 ${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/shar
e/skdebugger/templates | 15 ${INSTALL_DIR} --mode=755 ${ROOT}/usr/local/shar
e/skdebugger/templates |
16 ${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/shar
e/skdebugger/templates | 16 ${INSTALL} --mode=644 ./templates/* ${ROOT}/usr/local/shar
e/skdebugger/templates |
17 ${INSTALL} --mode=644 ./res/js/core.js ${ROOT}/usr/local/shar
e/skdebugger/res/js/core.js | 17 ${INSTALL} --mode=644 ./res/js/core.js ${ROOT}/usr/local/shar
e/skdebugger/res/js/core.js |
18 ${INSTALL} --mode=644 ./res/vul/elements.html ${ROOT}/usr/local/shar
e/skdebugger/res/vul/elements.html | 18 ${INSTALL} --mode=644 ./res/vul/elements.html ${ROOT}/usr/local/shar
e/skdebugger/res/vul/elements.html |
| 19 ${INSTALL} --mode=644 ./res/img/favicon.ico ${ROOT}/usr/local/shar
e/skdebugger/res/img/favicon.ico |
19 } | 20 } |
20 | 21 |
21 rm ./res/vul/elements.html | 22 rm ./res/vul/elements.html |
22 make | 23 make |
23 | 24 |
24 source ../bash/release.sh | 25 source ../bash/release.sh |
OLD | NEW |