Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
830 B

7 years ago
  1. --- a/hexstrings.sh
  2. +++ b/hexstrings.sh
  3. @@ -0,0 +1,8 @@
  4. +#!/bin/bash
  5. +
  6. +while [ $# -gt 0 ]; do
  7. + HEXFILE=$1
  8. + HEXFILE_STRINGS=$(echo "$HEXFILE" | sed 's/\.\w*$/_strings.txt/')
  9. + strings "$HEXFILE" | sort > "$HEXFILE_STRINGS" #Export strings from a hex file and sort them alphabetically.
  10. + shift
  11. +done
  12. --- a/hexstrings.desktop
  13. +++ b/hexstrings.desktop
  14. @@ -0,0 +1,17 @@
  15. +[Desktop Action hexstrings]
  16. +Exec=/usr/share/kservices5/ServiceMenus/hexstrings.sh
  17. +Icon=text-x-script
  18. +Name=Export readable strings from this file
  19. +Name[fi]=Hae luettavissa olevat tekstit tästä tiedostosta
  20. +
  21. +[Desktop Entry]
  22. +Actions=hexstrings;
  23. +Icon=text-richtext
  24. +MimeType=
  25. +ServiceTypes=
  26. +TryExec=strings
  27. +Type=Service
  28. +X-KDE-Priority=TopLevel
  29. +X-KDE-ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
  30. +X-KDE-StartupNotify=false
  31. +X-KDE-Submenu=