Recent

Author Topic: LAMW - Linux Script Bugs  (Read 1403 times)

Handoko

  • Hero Member
  • *****
  • Posts: 5150
  • My goal: build my own game engine using Lazarus
LAMW - Linux Script Bugs
« on: November 01, 2017, 02:03:15 pm »
I found some issues in LAMW scripts for Linux only:

1. Error file/directory name with space
2. File name error in release-keystore.sh
3. The scripts do not have execution permission

Tested on Lazarus 1.8.0R5 Linux64 Gtk2 + LAMW r674 on Ubuntu Mate 17.10.

Error File/Directory Name With Space

I can edit the script files (*.sh) to solve this issue manually adding " symbol. See the example below (red is wrong, blue is corrected):
cd /home/handoko/Projects/Project Software/Android Test/LamwGUIProject1
cd /home/handoko/Projects/"Project Software"/"Android Test"/LamwGUIProject1

File Name Error in release-keystore.sh

This bug is in release-keystore.sh line #3.

This is wrong:
keytool -genkey -v -keystore LamwGUIProject1-release.keystore -alias lamwguiproject1aliaskey -keyalg RSA -keysize 2048 -validity 10000 < /home/handoko/Projects/Project Software/Android Test/LamwGUIProject1/lamwguiproject1keytool_input.txt

This is corrected (lamwguiproject1 removed):
keytool -genkey -v -keystore LamwGUIProject1-release.keystore -alias lamwguiproject1aliaskey -keyalg RSA -keysize 2048 -validity 10000 < /home/handoko/Projects/"Project Software"/"Android Test"/LamwGUIProject1/keytool_input.txt

The Scripts Do Not Have Execution Permission

Linux has file execution permission, Windows does not. I can right click on the script file and enable it but it would be great if it is set automatically when the script files generated.
Read more: https://en.wikipedia.org/wiki/File_system_permissions#Permissions

 

TinyPortal © 2005-2018