summaryrefslogtreecommitdiff
path: root/libdde-linux26/mk/redo_defconfigs
blob: e26644adffeae761bd6a9ac09d09b400d3b5d41d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

set -x

TMPDIR=$(mktemp -d)

exithandler()
{
  rm -r $TMPDIR
}

trap exithandler EXIT

cd ..

for i in mk/defconfig/config.*; do
  DROPSCONF_DEFCONFIG=$i make O=$TMPDIR oldconfig
  diff -u $i $TMPDIR/.Makeconf.bid
  grep -v '^DROPS_STDDIR=' $TMPDIR/.Makeconf.bid > $i
  rm $TMPDIR/{.Makeconf.bid,.Makeconf.bid.converted,Makeconf.bid.local,Makeconf.bid.local.indep}
done