Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions ios/preference_bundle/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
my $parent = abs_path();
my $control = -f "$parent/control" ? "$parent/control" : "$parent/layout/DEBIAN/control";

die "Failed to find parent project control file!\n" unless -f $control;

open my $fh, "<", $control or error "Failed to open $control (read)!\n";
my @lines = <$fh>;
close $fh;

my $updated = 0;
for my $line (@lines) {
next unless $line =~ /^Depends:/;
unless ($line =~ /preferenceloader/) {
$line =~ s/$/, preferenceloader/;
$updated = 1;
}
}

if ($updated) {
open my $out, ">", $control or error "Failed to open $control (write)!\n";
print $out @lines;
close $out;
print "Added 'preferenceloader' dependency to $control!\n";
} else {
print "Note: 'preferenceloader' dependency already present or no 'Depends' line found!\n";
}
26 changes: 26 additions & 0 deletions ios/preference_bundle_swift/NIC/control.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
my $parent = abs_path();
my $control = -f "$parent/control" ? "$parent/control" : "$parent/layout/DEBIAN/control";

die "Failed to find parent project control file!\n" unless -f $control;

open my $fh, "<", $control or error "Failed to open $control (read)!\n";
my @lines = <$fh>;
close $fh;

my $updated = 0;
for my $line (@lines) {
next unless $line =~ /^Depends:/;
unless ($line =~ /preferenceloader/) {
$line =~ s/$/, preferenceloader/;
$updated = 1;
}
}

if ($updated) {
open my $out, ">", $control or error "Failed to open $control (write)!\n";
print $out @lines;
close $out;
print "Added 'preferenceloader' dependency to $control!\n";
} else {
print "Note: 'preferenceloader' dependency already present or no 'Depends' line found!\n";
}
Binary file modified iphone_preference_bundle.nic.tar
Binary file not shown.
Binary file modified iphone_preference_bundle_swift.nic.tar
Binary file not shown.