-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure
More file actions
executable file
·57 lines (44 loc) · 1.92 KB
/
configure
File metadata and controls
executable file
·57 lines (44 loc) · 1.92 KB
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
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# configure: configure your GNU/Linux system
# Copyright (c) 2015, 2016 Mohammed Sadik <sadiq@sadiqpk.org>
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
# Exit if the system is not GNU/Linux, or the release is too old
if [ "$OSTYPE" != "linux-gnu" ] || [ ! -f /etc/os-release ]
then
echo "Sorry. You require a recent GNU/Linux OS to proceed"
echo "Exiting.."
exit 1
fi
HOME_DIR="${HOME}"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
declare -a UPDATE_FILE # Temp array to track files to be modified using setconf
# Settings that can be configured by the user
. "${SCRIPT_DIR}"/settings.sh
# Use custom settings if set
[ -f "${SCRIPT_DIR}/${SETTINGS_FILE}" ] && . "${SCRIPT_DIR}/${SETTINGS_FILE}"
# Common functions used throughout the script
. "${SCRIPT_DIR}"/scripts/functions.sh
# Common UI related functions used throughout the script
. "${SCRIPT_DIR}"/scripts/ui-functions.sh
# Data about themes, fonts, icons, etc
. "${SCRIPT_DIR}"/scripts/icon-files.sh
. "${SCRIPT_DIR}"/scripts/theme-files.sh
# Copy configured files to appropriate directories
. "${SCRIPT_DIR}"/scripts/copyconfs.sh
# Configure basic configurations
. "${SCRIPT_DIR}"/scripts/setconfs.sh
# GNOME 3 Desktop Environment configuration script
. "${SCRIPT_DIR}"/scripts/gsettings.sh
# Gtk/GNOME 3 UI related configuration script
. "${SCRIPT_DIR}"/scripts/gtk-ui.sh