diff options
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-x | v4l/scripts/make_makefile.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/v4l/scripts/make_makefile.pl b/v4l/scripts/make_makefile.pl index d684fdc45..8a31c025c 100755 --- a/v4l/scripts/make_makefile.pl +++ b/v4l/scripts/make_makefile.pl @@ -136,14 +136,14 @@ print OUT "\t\@echo \"Installing kernel modules under \$(DESTDIR)\$(KDIR26)/:\"\ while (my ($dir, $files) = each %instdir) { print OUT "\t\@n=0;for i in ", join(' ', keys %$files), ";do "; print OUT "if [ -e \"\$\$i\" ]; then "; - print OUT "if [ \$\$n = 0 ]; then "; + print OUT "if [ \$\$n -eq 0 ]; then "; print OUT "echo -n \"\t$dir/: \"; "; print OUT "install -d \$(DESTDIR)\$(KDIR26)/$dir; fi; "; - print OUT "n=\$\$\(\(n+1\)\); "; - print OUT "if [ \$\$n == 4 ]; then echo; echo -n \"\t\t\"; n=1; fi; "; + print OUT "n=\$\$\(\(\$\$n+1\)\); "; + print OUT "if [ \$\$n -eq 4 ]; then echo; echo -n \"\t\t\"; n=1; fi; "; print OUT "echo -n \"\$\$i \"; "; print OUT "install -m 644 -c \$\$i \$(DESTDIR)\$(KDIR26)/$dir; fi; done; "; - print OUT "if [ \$\$n != 0 ]; then echo; fi\n\n"; + print OUT "if [ \$\$n -ne 0 ]; then echo; fi;\n\n"; } print OUT "\t@echo\n"; print OUT "\t/sbin/depmod -a \$(KERNELRELEASE) \$(if \$(DESTDIR),-b \$(DESTDIR))\n\n"; |