generated from cosmic-packages/cosmic-applets
Update main.sh
This commit is contained in:
parent
32870d348f
commit
86a15c518b
11
main.sh
11
main.sh
@ -13,7 +13,16 @@ git clone https://github.com/pop-os/cosmic-settings.git
|
|||||||
cd cosmic-settings
|
cd cosmic-settings
|
||||||
|
|
||||||
# Get build deps
|
# Get build deps
|
||||||
perl -0777 -pe 's/^(Build-Depends:\s*\n)(.+?)(\n\S)/$1 . join(",\n", grep { !/^\s*(cargo|rustc|rust-all)\s*$/ } split /,\s*\n/, $2) . $3/ems;' ./debian/control > ./debian/control.tmp && mv ./debian/control.tmp ./debian/control
|
perl -0777 -pe '
|
||||||
|
s{^(Build-Depends:\s*\n)(.+?)(\n\S)}{
|
||||||
|
my $start = $1;
|
||||||
|
my $deps = $2;
|
||||||
|
my $end = $3;
|
||||||
|
$deps =~ s/^\s+//mg;
|
||||||
|
my @items = grep { !/^(cargo|rustc|rust-all)$/ }
|
||||||
|
split /,\s*\n?\s*/, $deps;
|
||||||
|
$start . join(",\n ", @items) . $end;
|
||||||
|
}ems' ./debian/control > ./debian/control.tmp && mv ./debian/control.tmp ./debian/control
|
||||||
apt-get build-dep ./ -y
|
apt-get build-dep ./ -y
|
||||||
apt-get install curl -y
|
apt-get install curl -y
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
|
||||||
|
Loading…
Reference in New Issue
Block a user