Subversion Repositories ALCASAR

Rev

Rev 1536 | Rev 1539 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1536 Rev 1538
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
#  $Id: alcasar.sh 1536 2014-12-21 23:11:16Z richard $ 
2
#  $Id: alcasar.sh 1538 2014-12-22 10:41:29Z richard $ 
3
 
3
 
4
# alcasar.sh
4
# alcasar.sh
5
 
5
 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
6
# ALCASAR Install script -  CopyLeft ALCASAR Team [Rexy + 3abtux + Steweb + Crox + ...] 
7
# Ce programme est un logiciel libre ; This software is free and open source
7
# Ce programme est un logiciel libre ; This software is free and open source
Line 81... Line 81...
81
# ****************** End of global parameters *********************
81
# ****************** End of global parameters *********************
82
 
82
 
83
license ()
83
license ()
84
{
84
{
85
	if [ $Lang == "fr" ]
85
	if [ $Lang == "fr" ]
-
 
86
	then
86
	then cat $DIR_INSTALL/gpl-3.0.fr.txt | more
87
		cat $DIR_INSTALL/gpl-warning.fr.txt | more
-
 
88
	else
87
	else cat $DIR_INSTALL/gpl-3.0.txt | more
89
		cat $DIR_INSTALL/gpl-warning.txt | more
-
 
90
	fi
-
 
91
	response=0
-
 
92
	PTN='^[oOyYnN]$'
-
 
93
	until [[ $(expr $response : $PTN) -gt 0 ]]
-
 
94
	do
-
 
95
		if [ $Lang == "fr" ]
-
 
96
			then echo -n "Accéptez-vous les termes de cette licence (O/n)? : "
-
 
97
			else echo -n "Do you accept the terms of this license (Y/n)? : "
-
 
98
		fi
-
 
99
		read response
-
 
100
	done
-
 
101
	if [ "$response" = "n" ] || [ "$response" = "N" ]
-
 
102
	then
-
 
103
		exit 1
88
	fi
104
	fi
89
	echo "Taper sur Entrée pour continuer !"
-
 
90
	echo "Enter to continue."
-
 
91
	read a
-
 
92
}
105
}
93
 
106
 
94
header_install ()
107
header_install ()
95
{
108
{
96
	clear
109
	clear
Line 2011... Line 2024...
2011
	-\? | -h* | --h*)
2024
	-\? | -h* | --h*)
2012
		echo "$usage"
2025
		echo "$usage"
2013
		exit 0
2026
		exit 0
2014
		;;
2027
		;;
2015
	-i | --install)
2028
	-i | --install)
2016
		license
-
 
2017
		header_install
2029
		header_install
-
 
2030
		license
2018
		testing
2031
		testing
2019
# RPMs install
2032
# RPMs install
2020
		$DIR_SCRIPTS/alcasar-urpmi.sh
2033
		$DIR_SCRIPTS/alcasar-urpmi.sh
2021
		if [ "$?" != "0" ]
2034
		if [ "$?" != "0" ]
2022
		then
2035
		then