<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
my %change = (
	'BUSYBOX' =&gt; 'make package/busybox-clean',
	'OPENVPN_' =&gt; 'make package/openvpn-clean',
	'SYSCONF_' =&gt; 'make package/base-files-clean target_clean',
	'' =&gt; 'make target_clean'
);

my @configfiles = (
#	['package/linux/linux.config', 'build_mipsel/linux/.config' =&gt;
#		'make -C package linux-clean']
);



foreach my $change (keys %change) {
	my $v1 = `grep '$change' .config.test`;
	my $v2 = `grep '$change' .config`;
	$v1 eq $v2 or system($change{$change});
}

foreach my $file (@configfiles) {
	if ((-f $file-&gt;[0]) and (-f $file-&gt;[1])) {
		my @s1 = stat $file-&gt;[0];
		my @s2 = stat $file-&gt;[1];
		$s1[9] &gt; $s2[9] and system($file-&gt;[2]);
	}
}
</pre></body></html>