Skip to content

Instantly share code, notes, and snippets.

@mprentice
mprentice / xsl_license_fix.bash
Created August 10, 2012 21:11
Fix license text from xsl:comment to !--
#!/bin/bash
# Replace erroneous <xsl:comment> license tags with xml <!--> comments
bak="$HOME/tmp/xslbak"
mkdir -p "$bak"
find /usr/local/tusk/tusk-4_0_0 -name '*.xsl' -print0 | while IFS='' read -r -d '' fold ; do
lic=`awk '/<xsl:comment>/,/<\\/xsl:comment>/' "$fold" | grep 'licenses/ecl1\.php'`
if [ "" != "$lic" ] ; then
fdir="${fold%/*}"
@jamieweavis
jamieweavis / macos-app-icon.md
Last active June 16, 2024 22:18
How to create an .icns macOS app icon