Changeset 4583
- Timestamp:
- May 4, 2017, 2:31:44 PM (4 years ago)
- Location:
- devtools/desktop_to_xml
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devtools/desktop_to_xml/README
r4549 r4583 5 5 ./desktop_to_xml svn_dir 6 6 7 This tool needs the lliurex-artwork-defaults dir from svn in the same dir as svn_dir7 This tool needs the vibrancy-colors dir from svn in the same dir as svn_dir 8 8 Example: 9 9 /home … … 11 11 /svn 12 12 /svn_dir 13 / lliurex-artwork-defaults13 /vibrancy-colors 14 14 15 Running 16 --------- 17 There're many kinds of packages "out in the wild" so this script tries to adapt to all of those. 18 The script will ask the user when: 19 - The control file has two or more packages: In this case the script needs to know which is the package name that we're looking for. 20 - There's two or more install files in the debian dir: The script needs the install file who has the dirs with the desktop file 21 - There's two or more lines in the selected install file: For the same reason the script needs to ask for the right dir. 15 22 23 Will warn us when: 24 - The package uses an old rules file. 25 - The vibrancy-colors dir is missing 26 27 Will abort if: 28 - Icon can't be found. Only svg ones are valid, the script will not use icons in png or any other format but svg. 29 - Missed svn dir 30 31 Finally, if no errors are detected, the script populates the llx-resource dir and updates the rules file for add the llxsrc helper. 32 33 CONSIDERATIONS 34 ------------- 35 Some packages are really old and have some "strange things", like gif icons, that have to be reworked. 36 If the package has an old rules file it's convenient to update it to the new format. 37 If the operation fails it's better to remove the dir and "re-co" from svn to avoid unexpected behaviors of the script (that should no pass but just in case...) -
devtools/desktop_to_xml/desktop_to_xml.sh
r4581 r4583 18 18 msg_desktop_updated="\nDesktop file updated.\n" 19 19 msg_icon_found="Icon %s found.\nGenerating llx-resources dir\n" 20 msg_icon_not_found="\nNo icon named %s found on dirs %s, %s or %s\nRemember that the icon must be in SVG format and no in PNG or other image format\n "20 msg_icon_not_found="\nNo icon named %s found on dirs %s, %s or %s\nRemember that the icon must be in SVG format and no in PNG or other image format\nOPERATION ABORTED\n" 21 21 msg_icon_location_info="\nPlease add %s as svg to %s and relaunch this program or use the llxsrc debhelper. Until then the app will not be included in our software store.\n" 22 22 msg_icon_exists="\nIcon package found on the right location. Checking if llxsrc helper exists in rules\n"
Note: See TracChangeset
for help on using the changeset viewer.