aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/targets/win32.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-14 01:04:09 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-14 01:04:09 +0100
commit2c0da26daa81caf40461758bbab5ff494534def4 (patch)
tree2d3e7fed1a6ca372fef5d2d91b6815bd8772b246 /.travis/targets/win32.sh
parent3ab9436d81904ca67be155fed19885adc51bc76d (diff)
downloadblogc-2c0da26daa81caf40461758bbab5ff494534def4.tar.gz
blogc-2c0da26daa81caf40461758bbab5ff494534def4.tar.bz2
blogc-2c0da26daa81caf40461758bbab5ff494534def4.zip
travis: use local vars inside functions
Diffstat (limited to '.travis/targets/win32.sh')
-rw-r--r--.travis/targets/win32.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/.travis/targets/win32.sh b/.travis/targets/win32.sh
index ec3ed03..1a6745f 100644
--- a/.travis/targets/win32.sh
+++ b/.travis/targets/win32.sh
@@ -10,18 +10,18 @@ build() {
--disable-runserver
make blogc.exe
- PN="$(grep PACKAGE_TARNAME config.h | cut -d\" -f2)"
- PV="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
- DEST_DIR="${PN}-${PV}-${TARGET}"
+ local pn="$(grep PACKAGE_TARNAME config.h | cut -d\" -f2)"
+ local pv="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
+ local dest_dir="${pn}-${pv}-${TARGET}"
- rm -rf "${DEST_DIR}"
- mkdir -p "${DEST_DIR}"
+ rm -rf "${dest_dir}"
+ mkdir -p "${dest_dir}"
- cp .libs/blogc.exe "${DEST_DIR}/"
- cp ../LICENSE "${DEST_DIR}/"
- cp ../README.md "${DEST_DIR}/"
+ cp .libs/blogc.exe "${dest_dir}/"
+ cp ../LICENSE "${dest_dir}/"
+ cp ../README.md "${dest_dir}/"
- zip "${DEST_DIR}.zip" "${DEST_DIR}"/*
+ zip "${dest_dir}.zip" "${dest_dir}"/*
}
deploy() {