Return-path: Received: from mail-we0-f174.google.com ([74.125.82.174]:37850 "EHLO mail-we0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754632Ab2HISBs (ORCPT ); Thu, 9 Aug 2012 14:01:48 -0400 Received: by weyx8 with SMTP id x8so457945wey.19 for ; Thu, 09 Aug 2012 11:01:47 -0700 (PDT) From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= To: linux-wireless@vger.kernel.org Cc: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Subject: [PATCH 01/13] compat-wireless: Clean up *.mod.c once after everything Date: Thu, 9 Aug 2012 21:01:20 +0300 Message-Id: <1344535292-4451-2-git-send-email-ozancag@gmail.com> (sfid-20120809_200153_104679_4FF70415) In-Reply-To: <1344535292-4451-1-git-send-email-ozancag@gmail.com> References: <1344535292-4451-1-git-send-email-ozancag@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: Remove possible .mod.c leftovers at the end instead of after every copying operation. Signed-off-by: Ozan Çağlayan --- scripts/admin-update.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/admin-update.sh b/scripts/admin-update.sh index 73c3939..0b09708 100755 --- a/scripts/admin-update.sh +++ b/scripts/admin-update.sh @@ -412,7 +412,6 @@ for i in $NET_DIRS; do cp $GIT_TREE/net/$i/*.[ch] net/$i/ cp $GIT_TREE/net/$i/Makefile net/$i/ cp $GIT_TREE/net/$i/Kconfig net/$i/ - rm -f net/$i/*.mod.c done cp $GIT_TREE/MAINTAINERS ./ @@ -427,7 +426,6 @@ for i in $NET_BT_DIRS; do echo "Copying $GIT_TREE/net/$i/*.[ch]" cp $GIT_TREE/net/$i/*.[ch] net/$i/ cp $GIT_TREE/net/$i/Makefile net/$i/ - rm -f net/$i/*.mod.c done # Drivers in their own directory @@ -448,7 +446,6 @@ for i in $DRIVERS; do if [ -f $GIT_TREE/$i/Kconfig ]; then cp $GIT_TREE/$i/Kconfig $i/ fi - rm -f $i/*.mod.c done # Staging drivers in their own directory @@ -462,7 +459,6 @@ for i in $STAGING_DRIVERS; do echo -e "Copying ${RED}STAGING${NORMAL} $GIT_TREE/$i/*.[ch]" # staging drivers tend to have their own subdirs... cp -a $GIT_TREE/$i drivers/staging/ - rm -f $i/*.mod.c done for i in $DRIVERS_BT; do @@ -470,7 +466,6 @@ for i in $DRIVERS_BT; do echo "Copying $GIT_TREE/$i/*.[ch]" cp $GIT_TREE/$i/*.[ch] $i/ cp $GIT_TREE/$i/Makefile $i/ - rm -f $i/*.mod.c done # For rndis_wlan, we need a new rndis_host.ko, cdc_ether.ko and usbnet.ko @@ -515,7 +510,9 @@ cp -a $GIT_COMPAT_TREE/include/net/* include/net/ cp -a $GIT_COMPAT_TREE/include/trace/* include/trace/ cp -a $GIT_COMPAT_TREE/include/pcmcia/* include/pcmcia/ cp -a $GIT_COMPAT_TREE/include/crypto/* include/crypto/ -rm -f $COMPAT/*.mod.c + +# Clean up possible *.mod.c leftovers +find -type f -name "*.mod.c" -exec rm -f {} \; # files we suck in for wireless drivers export WSTABLE=" -- 1.7.11.2