compat-drivers: update gen-release.sh to use git clean
authorLuis R. Rodriguez <mcgrof@do-not-panic.com>
Mon, 8 Oct 2012 23:30:45 +0000 (16:30 -0700)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Tue, 9 Oct 2012 02:02:07 +0000 (19:02 -0700)
gen-release.sh is updated to force git-paranoia to run
git clean for us when uploading to kernel.org. Note
that usage of kup is only for kernel.org uploading
and as such not for the faint of heart.

Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
scripts/gen-release.sh

index 356ff9bdcf21890eeb8d74c593695d28f1ad2602..894cdadba88cf470bce1dcf900431ff05a883799 100755 (executable)
@@ -176,9 +176,14 @@ cp -a $COMPAT_DRIVERS_DIR $STAGING/$RELEASE
 cd $STAGING/$RELEASE
 
 # Only use interactive paranoia for non-signed / uploaded to kernel.org releases
+# If using kup note that we will from now on always be forcing a super clean
+# release and will simply use git clean to help use remove all detected content
+# that should not be on your local git tree as after a checkout.
 PARANOIA=""
 if [[ "$USE_KUP" != "1" ]]; then
        PARANOIA="-i"
+else
+       PARANOIA="-c"
 fi
 ./scripts/git-paranoia $PARANOIA
 if [[ $? -ne 0 ]]; then