Commit 9dead1f44dec21ca47c43b688fba9cb50689b7e2

Authored by Perry Werneck
1 parent d6fbc75a
Exists in develop

Debugging win32 bundler.

Showing 1 changed file with 17 additions and 5 deletions   Show diff stats
win/bundle.common
... ... @@ -403,22 +403,34 @@ make_packages() {
403 403 if [ "$?" == "0" ]; then
404 404 echo "Nsis script installed"
405 405 else
406   - echo "Erro installing nsis"
  406 + echo "Error installing nsis"
407 407 fi
408 408 else
409 409 echo "Cant find ${srcdir}/win/${PACKAGE_NAME}.nsi"
410 410 fi
411 411  
412   - argument "zip" > /dev/null
413   - if [ "$?" == "0" ]; then
414   - make_zip
415   - fi
  412 + if [ -e "${srcdir}/LICENSE" ]; then
  413 + mkdir -p "${buildroot}${MINGW_PREFIX}/share/pw3270"
  414 + cp "${srcdir}/LICENSE" "${buildroot}${MINGW_PREFIX}/share/pw3270"
  415 + if [ "$?" == "0" ]; then
  416 + echo "License installed"
  417 + else
  418 + echo "Error installing license"
  419 + fi
  420 + else
  421 + echo "Cant find ${srcdir}/LICENSE"
  422 + fi
416 423  
417 424 argument "nsi" > /dev/null
418 425 if [ "$?" == "0" ]; then
419 426 make_nsis
420 427 fi
421 428  
  429 + argument "zip" > /dev/null
  430 + if [ "$?" == "0" ]; then
  431 + make_zip
  432 + fi
  433 +
422 434 }
423 435  
424 436  
... ...