/[livecd-tools]/trunk/openglify
Gentoo

Diff of /trunk/openglify

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 44 Revision 54
1#!/bin/bash 1#!/bin/bash
2# Copyright 1999-2005 Gentoo Foundation 2# Copyright 1999-2005 Gentoo Foundation
3# Distributed under the terms of the GNU General Public License v2 3# Distributed under the terms of the GNU General Public License v2
4# $Header: /var/cvsroot/gentoo/src/livecd-tools/openglify,v 1.5 2005/03/01 18:13:51 wolf31o2 Exp $ 4# $Header: /var/cvsroot/gentoo/src/livecd-tools/openglify,v 1.6 2005/05/31 19:08:28 wolf31o2 Exp $
5 5
6#This script is designed to tweak the system for opengl-update-livecd 6#This script is designed to tweak the system for opengl-update
7#set up our flexible opengl stuff: 7#set up our flexible opengl stuff:
8 8
9#move symlinks to a malleable /etc/opengl directory. 9#move symlinks to a malleable /etc/opengl directory.
10install -d /etc/opengl 10install -d test/lib/modules/extensions
11mv /usr/lib/libGL.* /etc/opengl/ 11
12mv /usr/lib/libGLcore.* /etc/opengl/ 12rm /usr/lib/libGL{,core}.{a,so}* > /dev/null 2>&1
13rm /usr/lib/modules/extensions/libglx* > /dev/null 2>&1
14
13ln -sf /etc/opengl/libGL.so /usr/lib/libGL.so 15ln -sf /etc/opengl/lib/libGL.so /usr/lib/libGL.so
14ln -sf /etc/opengl/libGL.so.1 /usr/lib/libGL.so.1 16ln -sf /etc/opengl/lib/libGL.so.1 /usr/lib/libGL.so.1
15ln -sf /etc/opengl/libGLcore.so /usr/lib/libGLcore.so 17ln -sf /etc/opengl/lib/libGLcore.so /usr/lib/libGLcore.so
16ln -sf /etc/opengl/libGLcore.so.1 /usr/lib/libGLcore.so.1 18ln -sf /etc/opengl/lib/libGLcore.so.1 /usr/lib/libGLcore.so.1
17mv /usr/lib/libMesaGL.so /etc/opengl/ 19ln -sf /etc/opengl/lib/modules/extensions/libglx.so \
18ln -sf /etc/opengl/libMesaGL.so /usr/lib/libMesaGL.so
19for x in libglx.a libglx.so
20do
21 if [ -e /usr/lib/modules/extensions/${x} -o -L \
22 /usr/lib/modules/extensions/${x} ] 20 /usr/lib/modules/extensions/libglx.so
23 then 21ln -sf /etc/opengl/lib/modules/extensions/libglx.a \
24 mv /usr/lib/modules/extensions/${x} /etc/opengl/
25 fi
26 ln -s /etc/opengl/${x} \
27 /usr/lib/modules/extensions/${x} 22 /usr/lib/modules/extensions/libglx.a
28done

Legend:
Removed from v.44  
changed lines
  Added in v.54

  ViewVC Help
Powered by ViewVC 1.1.20