Bootstrap and install improvements
This commit is contained in:
11
bootstrap.pl
11
bootstrap.pl
@@ -4,6 +4,7 @@ use warnings;
|
|||||||
use autodie;
|
use autodie;
|
||||||
|
|
||||||
use Cwd;
|
use Cwd;
|
||||||
|
use Data::Dumper;
|
||||||
use Stow;
|
use Stow;
|
||||||
|
|
||||||
|
|
||||||
@@ -12,12 +13,14 @@ my $target = $ENV{'HOME'};
|
|||||||
print "Stowing $dir/files to $target\n";
|
print "Stowing $dir/files to $target\n";
|
||||||
|
|
||||||
my %stow_options = ( dir => $dir,
|
my %stow_options = ( dir => $dir,
|
||||||
target => $target);
|
target => $target );
|
||||||
my $stow = new Stow(%stow_options);
|
my $stow = new Stow(%stow_options);
|
||||||
|
|
||||||
my @pkgs = ('files');
|
my @pkgs = ('files');
|
||||||
$stow->plan_stow(@pkgs);
|
$stow->plan_stow(@pkgs);
|
||||||
|
my %conflicts = $stow->get_conflicts;
|
||||||
|
if (%conflicts) {
|
||||||
|
my $dump = Dumper(%conflicts);
|
||||||
|
die("Failed to stow, conflicts: $dump");
|
||||||
|
}
|
||||||
$stow->process_tasks();
|
$stow->process_tasks();
|
||||||
print "done\n";
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# ---------------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------------- #
|
||||||
# Cross-shell (only import if environment has been setup)
|
# Cross-shell (only import if environment has been setup)
|
||||||
# ---------------------------------------------------------------------------- #
|
# ---------------------------------------------------------------------------- #
|
||||||
if test -e ~/.profile
|
if begin; test -e ~/.profile; and type -q bass; end
|
||||||
bass source ~/.profile
|
bass source ~/.profile
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
curl
|
curl
|
||||||
|
git
|
||||||
make
|
make
|
||||||
neovim
|
neovim
|
||||||
net-tools
|
net-tools
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ upgrade() {
|
|||||||
-o Dpkg::Options::="--force-confold" \
|
-o Dpkg::Options::="--force-confold" \
|
||||||
-y \
|
-y \
|
||||||
dist-upgrade
|
dist-upgrade
|
||||||
|
sudo apt-get -y autoremove
|
||||||
}
|
}
|
||||||
|
|
||||||
# @arg $1 packages to install
|
# @arg $1 packages to install
|
||||||
|
|||||||
Reference in New Issue
Block a user