59c0e3
Update names inside centos-art.sh script info action.
@@ -24,11 +24,11 @@
|
|
24
24
|
# $Id$
|
25
25
|
# ----------------------------------------------------------------------
|
26
26
|
|
27
|
-
function
|
27
|
+
function info {
|
28
28
|
|
29
29
|
# Define prepare variables.
|
30
30
|
|
31
31
|
# Define prepare actions.
|
32
|
-
|
32
|
+
info_getActions
|
33
33
|
|
34
34
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# info_getActions.sh -- This function defines prepare actions.
|
4
4
|
#
|
5
5
|
# Copyright (C) 2009-2010 Alain Reguera Delgado
|
6
6
|
#
|
@@ -23,16 +23,16 @@
|
|
23
23
|
# $Id$
|
24
24
|
# ----------------------------------------------------------------------
|
25
25
|
|
26
|
-
function
|
26
|
+
function info_getActions {
|
27
27
|
|
28
28
|
case $OPTIONNAM in
|
29
29
|
|
30
30
|
--packages )
|
31
|
-
|
31
|
+
info_getPackages
|
32
32
|
;;
|
33
33
|
|
34
34
|
--paths )
|
35
|
-
|
35
|
+
info_getPaths
|
36
36
|
;;
|
37
37
|
|
38
38
|
* )
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# info_getPackages.sh -- This function queries your system's
|
4
4
|
# rpm database to verify centos-art.sh required packages existence.
|
5
5
|
# If there is any missing package, leave a message and quit script
|
6
6
|
# execution.
|
@@ -26,7 +26,7 @@
|
|
26
26
|
# $Id$
|
27
27
|
# ----------------------------------------------------------------------
|
28
28
|
|
29
|
-
function
|
29
|
+
function info_getPackages {
|
30
30
|
|
31
31
|
# Define variables as local to avoid conflicts outside.
|
32
32
|
local PACKAGE=''
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# info_getPathCli.sh -- This function
|
4
4
|
#
|
5
5
|
# Copyright (C) 2009-2010 Alain Reguera Delgado
|
6
6
|
#
|
@@ -23,7 +23,7 @@
|
|
23
23
|
# $Id$
|
24
24
|
# ----------------------------------------------------------------------
|
25
25
|
|
26
|
-
function
|
26
|
+
function info_getPathCli {
|
27
27
|
|
28
28
|
# Define variables as local to avoid conflicts outside.
|
29
29
|
local -a REPODIRS
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# info_getPathFonts.sh -- This function checks user's fonts
|
4
4
|
# directory. In order for some artworks to be rendered correctly,
|
5
5
|
# denmark font needs to be available. By default, denmark font doesn't
|
6
6
|
# come with CentOS distribution so create a symbolic link (from the
|
@@ -27,7 +27,7 @@
|
|
27
27
|
# $Id$
|
28
28
|
# ----------------------------------------------------------------------
|
29
29
|
|
30
|
-
function
|
30
|
+
function info_getPathFonts {
|
31
31
|
|
32
32
|
# Define variables as local to avoid conflicts outside.
|
33
33
|
local -a REPODIRS
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# info_getPathInkscape.sh -- This function prepares user's
|
4
4
|
# ~/.inkscape configurations directory to use CentOS defaults (e.g.,
|
5
5
|
# palettes, patterns, etc).
|
6
6
|
#
|
@@ -25,7 +25,7 @@
|
|
25
25
|
# $Id$
|
26
26
|
# ----------------------------------------------------------------------
|
27
27
|
|
28
|
-
function
|
28
|
+
function info_getPathInkscape {
|
29
29
|
|
30
30
|
# Define variables as local to avoid conflicts outside.
|
31
31
|
local -a REPODIRS
|
@@ -1,6 +1,6 @@
|
|
1
1
|
|
2
2
|
#
|
3
|
-
#
|
3
|
+
# info_getPaths.sh -- This function verifies centos-art.sh
|
4
4
|
# required paths existence. If there is any missing path, leave a
|
5
5
|
# message and quit script execution.
|
6
6
|
#
|
@@ -25,10 +25,10 @@
|
|
25
25
|
# $Id$
|
26
26
|
# ----------------------------------------------------------------------
|
27
27
|
|
28
|
-
function
|
28
|
+
function info_getPaths {
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
info_getPathCli
|
31
|
+
info_getPathFonts
|
32
|
+
info_getPathInkscape
|
33
33
|
|
34
34
|
}
|