Fix examples in comments within device_table.txt to use consistent tabs. (Closes: #611808)

git-svn-id: http://emdebian.org/svn/current@7737 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2011-02-02 17:24:37 +00:00
parent 12f743d598
commit d7f50d601e
3 changed files with 19 additions and 20 deletions

7
debian/changelog vendored
View file

@ -1,3 +1,10 @@
multistrap (2.1.11) experimental; urgency=low
* Fix examples in comments within device_table.txt to
use consistent tabs. (Closes: #611808)
-- Neil Williams <codehelp@debian.org> Wed, 02 Feb 2011 17:23:03 +0000
multistrap (2.1.10) experimental; urgency=low multistrap (2.1.10) experimental; urgency=low
* Fix typo in sysvinit chroot.sh script. * Fix typo in sysvinit chroot.sh script.

View file

@ -47,24 +47,18 @@ while( @ARGV ) {
if (!/^-/) { if (!/^-/) {
unshift(@ARGV,$_); unshift(@ARGV,$_);
last; last;
} } elsif (/^(-\?|-h|--help|--version)$/) {
elsif (/^(-\?|-h|--help|--version)$/) {
&usageversion(); &usageversion();
exit( 0 ); exit( 0 );
} } elsif (/^(-f|--file)$/) {
elsif (/^(-f|--file)$/) {
$file = shift(@ARGV); $file = shift(@ARGV);
} } elsif (/^(-d|--dir)$/) {
elsif (/^(-d|--dir)$/) {
$dir = shift(@ARGV); $dir = shift(@ARGV);
} } elsif (/^(-n|--dry-run)$/) {
elsif (/^(-n|--dry-run)$/) {
$dry++; $dry++;
} } elsif (/^(--no-fakeroot)$/) {
elsif (/^(--no-fakeroot)$/) {
$fakeroot=""; $fakeroot="";
} } else {
else {
die "$progname: "._g("Unknown option")." $_.\n"; die "$progname: "._g("Unknown option")." $_.\n";
} }
} }
@ -73,7 +67,7 @@ $msg = sprintf (_g("Need a configuration file - use %s -f\n"), $progname);
die ($msg) die ($msg)
if (not -f $file); if (not -f $file);
printf (_g("%s %s using %s\n"), $progname, $ourversion, $file); printf (_g("%s %s using %s\n"), $progname, $ourversion, $file);
open (TABLE, "<", $file) or die ("$file: $!\n"); open (TABLE, "<", $file) or die ("$progname: $file: $!\n");
@list=<TABLE>; @list=<TABLE>;
close (TABLE); close (TABLE);
@ -108,8 +102,7 @@ foreach $line (@list) {
push @seq, "mkdir -m $cmd[2] -p .$cmd[0]"; push @seq, "mkdir -m $cmd[2] -p .$cmd[0]";
next; next;
} }
if ($cmd[9] =~ /-/) if ($cmd[9] =~ /-/) {
{
push @seq, "mknod .$cmd[0] $cmd[1] $cmd[5] $cmd[6]"; push @seq, "mknod .$cmd[0] $cmd[1] $cmd[5] $cmd[6]";
push @seq, "chmod $cmd[2] .$cmd[0]"; push @seq, "chmod $cmd[2] .$cmd[0]";
push @seq, "chown $cmd[3]:$cmd[4] .$cmd[0]"; push @seq, "chown $cmd[3]:$cmd[4] .$cmd[0]";
@ -132,7 +125,7 @@ if (defined $dry) {
sub our_version { sub our_version {
my $query = `dpkg-query -W -f='\${Version}' multistrap 2>/dev/null`; my $query = `dpkg-query -W -f='\${Version}' multistrap 2>/dev/null`;
(defined $query) ? return $query : return "0.0.9"; (defined $query) ? return $query : return "2.1.10";
} }
sub usageversion { sub usageversion {

View file

@ -136,4 +136,3 @@
#/dev/sbpcd b 640 0 0 25 0 0 1 4 #/dev/sbpcd b 640 0 0 25 0 0 1 4
#/dev/mcd b 640 0 0 23 0 0 0 - #/dev/mcd b 640 0 0 23 0 0 0 -
#/dev/optcd b 640 0 0 17 0 0 0 - #/dev/optcd b 640 0 0 17 0 0 0 -