[go: up one dir, main page]

File: install.sh

package info (click to toggle)
freevial 1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 14,144 kB
  • ctags: 205
  • sloc: xml: 4,642; python: 2,095; sh: 21; makefile: 7
file content (50 lines) | stat: -rwxr-xr-x 1,529 bytes parent folder | download
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
#! /bin/sh

#
# Freevial
# Installation Script
#
# Copyright (C) 2007 The Freevial Team
#
# By Siegfried-Angel Gevatter Pujals <siggi.gevatter@gmail.com>
#
# This program 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/>.
#

PREFIX="$1"

BIN="/usr/games"
BASE="/usr/share/games/freevial"

mkdir -p $PREFIX/$BIN
mkdir -p $PREFIX/$BASE
mkdir -p $PREFIX/$BASE/data
mkdir -p $PREFIX/$BASE/data/fonts
mkdir -p $PREFIX/usr/share/pixmaps
mkdir -p $PREFIX/usr/share/applications

cp freevial $PREFIX/$BIN/
cp -r src $PREFIX/$BASE/
cp -r databases $PREFIX/$BASE/

cp data/skin.ini $PREFIX/$BASE/data/
cp -r data/help $PREFIX/$BASE/data/
cp -r data/images $PREFIX/$BASE/data/
cp -r data/sounds $PREFIX/$BASE/data/
cp data/fonts/Ubuntu-Title.ttf $PREFIX/$BASE/data/fonts/
cp -r skins $PREFIX/$BASE/

cp data/extra/freevial.xpm $PREFIX/usr/share/pixmaps/
cp data/images/freevial.png $PREFIX/usr/share/pixmaps/
cp data/extra/freevial.desktop $PREFIX/usr/share/applications/