File: do_install

package info (click to toggle)
gravitywars 1.102-34
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 2,468 kB
  • ctags: 553
  • sloc: ansic: 3,938; makefile: 52; sh: 52
file content (24 lines) | stat: -rwxr-xr-x 785 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This script installs the game into the ~games directory

        echo Installing GravityWars...
	
        if test -e ~games/GravityWars; then
         rm ~games/GravityWars
	fi

	if test -e ~games/GravityWars101; then
	 rm -r ~games/GravityWars101
	fi
 

	mkdir ~games/GravityWars101
        cp -r data ~games/GravityWars101
        cp -r levels ~games/GravityWars101
        cp GravityWars101 ~games/GravityWars101
	cp GravityWars.script ~games/GravityWars101/GravityWars
        chmod a-rwxs,+rwx,a+rx ~games/GravityWars101/GravityWars
        chmod a-rwx,u+rwxs,a+x ~games/GravityWars101/GravityWars101
        chgrp users ~games/GravityWars101/GravityWars
        chgrp bin ~games/GravityWars101/GravityWars101
        ln -s ~games/GravityWars101/GravityWars ~games/GravityWars