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

--- a/hexstrings.sh
+++ b/hexstrings.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+while [ $# -gt 0 ]; do
+ HEXFILE=$1
+ HEXFILE_STRINGS=$(echo "$HEXFILE" | sed 's/\.\w*$/_strings.txt/')
+ strings "$HEXFILE" | sort > "$HEXFILE_STRINGS" #Export strings from a hex file and sort them alphabetically.
+ shift
+done
--- a/hexstrings.desktop
+++ b/hexstrings.desktop
@@ -0,0 +1,17 @@
+[Desktop Action hexstrings]
+Exec=/usr/share/kservices5/ServiceMenus/hexstrings.sh
+Icon=text-x-script
+Name=Export readable strings from this file
+Name[fi]=Hae luettavissa olevat tekstit tästä tiedostosta
+
+[Desktop Entry]
+Actions=hexstrings;
+Icon=text-richtext
+MimeType=
+ServiceTypes=
+TryExec=strings
+Type=Service
+X-KDE-Priority=TopLevel
+X-KDE-ServiceTypes=KonqPopupMenu/Plugin,all/allfiles
+X-KDE-StartupNotify=false
+X-KDE-Submenu=