diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-05-31 15:16:24 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-05-31 15:16:24 -0300 |
commit | 1774b82f8341f6d5e8bdb5933f5fd6e2cca2aa15 (patch) | |
tree | f69dfba3f28b1359e0bae7a238c7c4b1684c8878 /v4l/scripts | |
parent | 916fd2c97dfa82ccaa90177b8419a72469bf034b (diff) | |
download | mediapointer-dvb-s2-1774b82f8341f6d5e8bdb5933f5fd6e2cca2aa15.tar.gz mediapointer-dvb-s2-1774b82f8341f6d5e8bdb5933f5fd6e2cca2aa15.tar.bz2 |
Script updated to support a more generic shell language
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
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"; |