File: data.inst

package info (click to toggle)
sapphire 0.15.8-9.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 448 kB
  • ctags: 850
  • sloc: cpp: 6,490; makefile: 102; sh: 77
file content (54 lines) | stat: -rwxr-xr-x 1,661 bytes parent folder | download | duplicates (6)
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
#!/bin/bash
#
# Sapphire 0.15.4 and above
#
# This script is putting configurations files in place so Sapphire can run properly.
#
# Date: 6 Nov 2000

###############################################################
# DO NOT HAND EDIT THIS VARIABLE. SAPPHIRE WILL LOOK HERE
# ANYWAY. IF YOU HAND EDIT THIS BAD THINGS WILL SURELY HAPPEN
# POSSIBLY COREDUMPS OR SEGMENTATION FAULTS.
#
# THIS WILL REMAIN LIKE THIS UNTIL SAPPHIRE HAS BETTER HANDLING
# OF CONFIGURATION FILES.
CONFIGURATION_PATH=/usr/local/share/sapphire
###############################################################

if [ -d $CONFIGURATION_PATH ]
then
	echo "$CONFIGURATION_PATH directory already exists";
else
	mkdir $CONFIGURATION_PATH
	echo "created directory $CONFIGURATION_PATH";
fi

# Check to see if there is a themes directory
if [ -d $CONFIGURATION_PATH/themes ]
then
	echo "$CONFIGURATION_PATH directory already exists, copying over current themes";	
	cp data/themes/* $CONFIGURATION_PATH/themes
else
	mkdir $CONFIGURATION_PATH/themes
	echo "created directory $CONFIGURATION_PATH/themes";
	
	cp data/themes/* $CONFIGURATION_PATH/themes
	echo "themes were copied to $CONFIGURATION_PATH/themes";
fi
	
# Check to see if there is a menu directory
if [ -d $CONFIGURATION_PATH/menu ]
then
	echo "$CONFIGURATION_PATH/menu directory already exists, copying over current menu files";
	cp data/menu/* $CONFIGURATION_PATH/menu
else
	mkdir $CONFIGURATION_PATH/menu
	echo "created directory $CONFIGURATION_PATH/menu";	
	
	cp data/menu/* $CONFIGURATION_PATH/menu
	echo "menu files were copied to $CONFIGURATION_PATH/menu";
fi

echo
echo "Installation of Sapphire's configuration files is complete.";