-
Notifications
You must be signed in to change notification settings - Fork 1
/
perl-setup.sh
executable file
·47 lines (39 loc) · 1.23 KB
/
perl-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
#
# Copyright (C) 2015-2024 Joelle Maslak
# All Rights Reserved - See License
#
doit() {
# Defensive umask
if [ "$(umask)" == '0000' ] ; then
umask 0002
fi
if [ "$PERLBREW_HOME" == "" ] ; then
echo "" >&2
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2
echo "You should install Perlbrew." >&2
echo "" >&2
echo "The perl templates will not function properly otherwise." >&2
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2
echo "" >&2
exit 1
fi
# Check for use of Perlbrew
if ! command -v perl >/dev/null ; then
echo "" >&2
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2
echo "You should use a Perlbrew perl (perlbrew switch)." >&2
echo "" >&2
echo "The perl templates will not function properly otherwise." >&2
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2
echo "" >&2
exit 2
fi
cpan install App::ccdiff
cpan install App::RouterColorizer
cpan install CPAN
cpan install JTM::Boilerplate
cpan install Perl::LanguageServer
cpan install Term::Tmux::Layout
}
doit