PROFILE Functions

From WineCVS

Jump to: navigation, search


This page is currently under development by
User:GlaDiaC
Please do NOT edit this page until this note is removed. Thank you.
To make suggestions please use the discussion page.


Template:PROFILE Index

Contents

[edit] Example

File: dx9wine_head
#!/bin/bash

ScriptName="dx9wine"
CVSPasswordGuess="cvs"
CVSCheckOutDir="wine"
CVScheckoutOptions="-D2005-03-10"
CVSroot=":pserver:cvs@cvs.winehq.com:/home/wine"
WineExecName="wine"

ProfileDescription="
Regular Wine with Oliver Stiebers Direct3D9 Patches
"

function LProfile_ConfigUpdate_Default()
{
        echo "wineprefixcreate"
}

function CVS_Configure()
{

        PatchCVS 0 http://winecvs.linux-gamers.net/WineCVS/patches/d3d9patch.2005-03-10.diff.bz2
        CVS_Configure_Default
}


[edit] CVS functions

WineCVS: function CVS_Uninstall

this functions uninstalls the wine if we restart from the beginning.

WineCVS: function CVS_Configure

this is the configure process of the wine version. This is the best location to patch the source or add special things.

WineCVS: function CVS_MakeDepend

make depend isn't needed any more by many wine versions. If don't need it just switch to the next state:

function CVS_MakeDepend()
{
        State="5"
}
WineCVS: function CVS_Make

the make function compiles the source and strips the binaries if you want this.

WineCVS: function CVS_Install

this function is for installing the binaries. You can modify the registry or copy additional config files here.


[edit] Launcher Script functions

WineCVS: function LProfile_SetupVars
WineCVS: function LProfile_TestConfigUpdate
WineCVS: function LProfile_ConfigUpdate
WineCVS: function LScript_SetupRun
WineCVS: function LScript_SetupPreConfig


[edit] Patch functions

WineCVS: function PatchCVS - parameters: [NUM] [URL]

This functions is for patching the source. The first argument is the patch NUM, this strips NUM leading components from file names. The second parameter is the URL to the patch file.
I can only only plain text, gzip or bzip2 patches. NO tar archives.

Example:

PatchCVS 1 http://www.oliverthered.f2s.com/projects/wine/files/d3d9patch.2005-03-10.diff.bz2

The patched files got written in a special file and the file are getting deleted after the install process. So it can patched with another or updated patch the next run.

Personal tools