summaryrefslogtreecommitdiff
path: root/openwrt/scripts/configtest.pl
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-03-06 03:34:52 +0000
committerMike Baker <mbm@openwrt.org>2005-03-06 03:34:52 +0000
commit6b93231c4f64a61103dfc16acebedd18b4c25171 (patch)
treeaad933069e7dedf29eb70dbfd81e9ca95d9b578f /openwrt/scripts/configtest.pl
parent14e0fec336fca0766605968fe9dd7eef2448736f (diff)
downloadmtk-20170518-6b93231c4f64a61103dfc16acebedd18b4c25171.zip
mtk-20170518-6b93231c4f64a61103dfc16acebedd18b4c25171.tar.gz
mtk-20170518-6b93231c4f64a61103dfc16acebedd18b4c25171.tar.bz2
nbd's makefile/menuconfig rewrite
SVN-Revision: 307
Diffstat (limited to 'openwrt/scripts/configtest.pl')
-rwxr-xr-xopenwrt/scripts/configtest.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/openwrt/scripts/configtest.pl b/openwrt/scripts/configtest.pl
new file mode 100755
index 0000000..01323a5
--- /dev/null
+++ b/openwrt/scripts/configtest.pl
@@ -0,0 +1,12 @@
+#!/usr/bin/perl
+
+my %change = (
+ 'BUSYBOX' => 'make -C package busybox-clean',
+ '' => 'make target_clean'
+);
+
+foreach my $change (keys %change) {
+ my $v1 = `grep '$change' .config.test`;
+ my $v2 = `grep '$change' .config`;
+ $v1 eq $v2 or system($change{$change});
+}