All pastes #792450 Raw Edit

Etwas

public shellscript v1 · immutable
·published 2007-11-21 12:33 UTC
rendered paste body
#!/bin/bash# Script to search all invalid licenses in base/textures# Written by ZenerkaLANG=C;for i in `find base/textures/ -name '*.jpg' -print`;	do svn proplist -R -v $i | awk '{		k++;		{			if (k == 1 && $1~/Properties/) {				printf $NF" ";				count=1			}		};		{			if (k > 1 && $1~/svn:license/) {				if ($0~/GNU/ || $0~/GPL/) {					print "license OK!";					count=0				} else {					print "probably wrong license: $0";					count=0				}			}		}		{			if (k > 1 && count) {				print "NO LICENSE!"			}		}	}';done