CedegaCVS - rozwiązanie problemu z błędem przy konfiguracji

Pomogło?

Nie
16
76%
Nie
5
24%
 
Liczba głosów: 21
Awatar użytkownika
sirmacik
Sędziwy Jeż
Sędziwy Jeż
Posty: 41
Rejestracja: 03 maja 2007, 14:59
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Inne
Architektura: x86_64
Kontakt:

CedegaCVS - rozwiązanie problemu z błędem przy konfiguracji

Post autor: sirmacik »

po pierwsze:
jeśli instalowaliśmy flexa w najnowszej wersji przez apt-get install to należy go usunąć i zainstalować z późniejszego linku.

Kod: Zaznacz cały

sudo apt-get remove flex
po drugie:
w katalogu domowym

Kod: Zaznacz cały

sudo rm -r ./WineCVS
po trzecie:

Kod: Zaznacz cały

sudo apt-get install cvs build-essential bison libasound2-dev libpng12-dev libjpeg62-dev libfreetype6-dev libxrender-dev libttf2 libttf-dev libsdl1.2-dev libsdl-ttf2.0-dev libsdl-net1.2-dev libsdl-gfx1.2-dev msttcorefonts libfontconfig1-dev xorg-dev gcc-3.4
po czwarte:

Kod: Zaznacz cały

sudo apt-get install flex-old
po piąte:

Kod: Zaznacz cały

sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
export CC=gcc-3.4 make
po szóste:

Kod: Zaznacz cały

wget http://winecvs.linux-gamers.net/WineCVS.sh
sudo chmod 777 ./WineCVS.sh
sudo ./WineCVS.sh

powinno pójść bez problemu.


==================================

jeśli pomimo tego wywali błąd:

Kod: Zaznacz cały

--------- Error log - file /root/.WineCVS/sources/cvscedega/ErrorLog : ---------
/root/.WineCVS/Functions/DefaultProfile: line 628: ./configure: No such file or directory


Error in Configure"

To po pierwsze:

Kod: Zaznacz cały

sudo apt-get install autoconf
po drugie:
musisz edytować plik (w miejsce "użytkownik" wpisz swoją nazwę uzytkownika):
-Użytkownicy Ubuntu (GNOME):

Kod: Zaznacz cały

sudo  gedit /home/[ użytkownik]/.WineCVS/Functions/DefaultProfile

-Użytkownicy Kubuntu (KDE):

Kod: Zaznacz cały

sudo  kate /home/[ użytkownik]/.WineCVS/Functions/DefaultProfile

-Użytkownicy Xubuntu (Xfce)

Kod: Zaznacz cały

sudo  mousepad /home/[ użytkownik]/.WineCVS/Functions/DefaultProfile
-Użytkownicy innych odmian Ubuntu:

Kod: Zaznacz cały

sudo  nano /home/[ użytkownik]/.WineCVS/Functions/DefaultProfile
przed

Kod: Zaznacz cały

./configure
(łatwiej jest znaleźć je szukając od końca dokumentu) daj

Kod: Zaznacz cały

autoconf
Czyli cały plik powinien wyglądać tak:

Kod: Zaznacz cały

#!/bin/bash
###############################################################################
#                                                                             #
# WineCVS - A shell script that automates installation and                    #
# management of various wine flavours from CVS.                               #
#                                                                             #
# Copyright (C) 2004-2005 Lars Eriksen <le@ting.homeunix.org>                 #
#                         Andreas Schneider <mail@cynapses.org>               #
#                                                                             #
# 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 2              #
# 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, write to the Free Software                 #
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. #
#                                                                             #
###############################################################################

# Vars
###############################################################################

# NEEDED vars
unset ScriptName          # eg ="cvswinex"
unset CVSroot             # eg =":pserver:cvs@cvs.transgaming.org:/cvsroot"
unset CVSCheckOutDir      # eg ="wine"

# install vars
unset CompileRootDir      # default="$HomeDir/sources/$ScriptName"
unset ErrorLogFile        # default="$CompileRootDir/ErrorLog"
unset ConfigurePrefix     # default="/usr/lib/$ScriptName"
unset ConfigDirName       # default=".$ScriptName"
unset WineExecName        # default="$CVSCheckOutDir"
unset ConfigureOptions    # default=<unset>
unset ConfigureOptions64  # default=<unset>
unset UserOnlyInstall     # default=<unset>
unset OldCVSCheckOutDir   # default=<unset>
unset CVSoptions          # default="-z 3"
unset CVScheckoutOptions  # default=<unset>

# setup vars
unset AlwaysRecompile     # default="1"
unset StripBinaries       # default="0"
unset PackSource          # default="1"
unset ShowTips            # default="1"

# extra vars
unset ProfileDescription  # default=<unset>
unset WineCVSLicense      # default=<unset>
unset CVSPasswordGuess    # default=<unset>

# override this if you need functions of a specific version
ProfileVersion="$WineCVSVersion"

# Functions
##########################################################################

function LProfile_CreateFunc()
{
	echo -e "function $1()\n{"
	LProfile_$1
	echo -e "}\n"
}

function LProfile_SetupVars_Default()
{
	echo -e "
export PATH=\"$ConfigurePrefix/bin:\$PATH\"
export LD_LIBRARY_PATH=\"$ConfigurePrefix/bin:$ConfigurePrefix/lib\"
export WINEPREFIX=\"\$HOME/$ConfigDirName\"
export WINESERVER=\"$ConfigurePrefix/bin/wineserver\"
export ConfigurePrefix=\"$ConfigurePrefix\"
export WineExecName=\"$WineExecName\"
export WINE_LOADER=$ScriptName
"
}
function LProfile_SetupVars()
{
	LProfile_SetupVars_Default
}

function LProfile_TestConfigUpdate_Default()
{
	echo '	test ! -e "$WINEPREFIX" && return 0
	OldSum=`cat "$WINEPREFIX/oldreg.md5" 2>/dev/null`
	NewSum=`md5sum "$ConfigurePrefix/bin/winedefault.reg" 2>/dev/null |cut -d " " -f 1`
	test "$OldSum" == "$NewSum" || return 0
	return 1'
}
function LProfile_TestConfigUpdate()
{
	LProfile_TestConfigUpdate_Default
}

function LProfile_ConfigUpdate_Default()
{
	echo '
	
	test -z "$WINEPREFIX" && Error "Export error ... your shell and this script dislike eachother :("
	
	if test ! -e "$WINEPREFIX"
	then
		mkdir "$WINEPREFIX"

		rm -f "$WINEPREFIX/config"
		echo "
Enter Path for first Drive (C:) (Default: $WINEPREFIX/drive_c)
Newbies, press enter"
		read WinPath

		test "$WinPath" = "" && WinPath="$WINEPREFIX/drive_c"

		if test -d "$WinPath"
		then
			echo -e "$WinPath already exists"
			echo -e "Continuing without setting up fake drive"
		else

			echo "Making fake C drive..."

			if ! mkdir -p "$WinPath" &>/dev/null
			then
			  rm -rf "$WINEPREFIX"
			  Error "Couldnt make $WinPath - exiting"
			fi

			mkdir "$WinPath/windows" &>/dev/null
			test ! -e "$WinPath/windows/Start Menu/Programs" && mkdir -p "$WinPath/windows/Start Menu/Programs" &>/dev/null
			test ! -e "$WinPath/Program Files/Common Files" && mkdir -p "$WinPath/Program Files/Common Files" &>/dev/null
			test ! -e "$WinPath/Profiles/Administrator" && mkdir -p "$WinPath/Profiles/Administrator" &>/dev/null
			test ! -e "$WinPath/windows/Fonts" && mkdir "$WinPath/windows/Fonts" &>/dev/null
			test ! -e "$WinPath/windows/system" && mkdir "$WinPath/windows/system" &>/dev/null
			test ! -e "$WinPath/windows/system32" && ln -s "$WinPath/windows/system" "$WinPath/windows/system32" &>/dev/null

			test ! -e "$WinPath/windows/win.ini" && cp "$ConfigurePrefix/bin/win.ini" "$WinPath/windows" &>/dev/null
			test ! -e "$WinPath/windows/system.ini" && cp "$ConfigurePrefix/bin/system.ini" "$WinPath/windows" &>/dev/null
		fi

		if ! ls "$WinPath" &>/dev/null
		then
			rm -rf "$WINEPREFIX"
			Error "Path not accessible"
		fi
		FloppyPoint=`cat /etc/fstab 2>/dev/null |grep fd0 |cut -d " " -f 2|head -n 1`
		CDROMPoint=`cat /etc/fstab 2>/dev/null |grep cdrom |cut -d " " -f 2|head -n 1`
		sed "s|\"Path\" = \"/c\"\$|\"Path\" = \"${WinPath}\"|" "$ConfigurePrefix/bin/config" > "$WINEPREFIX/.temp"
		sed "s|\"Path\" = \"\${HOME}/.transgaming/drive_c/\"\$|\"Path\" = \"${WinPath}\"|" "$WINEPREFIX/.temp" > "$WINEPREFIX/.temp2" && mv -f "$WINEPREFIX/.temp2" "$WINEPREFIX/.temp"
		sed "s|\"UseDGA\" = \"Y\"\$|\"UseDGA\" = \"N\"|" "$WINEPREFIX/.temp" > "$WINEPREFIX/.temp2" && mv -f "$WINEPREFIX/.temp2" "$WINEPREFIX/.temp"
		sed "s|\"LoadGlobalRegistryFiles\" = \"Y\"\$|\"LoadGlobalRegistryFiles\" = \"N\"|" "$WINEPREFIX/.temp" > "$WINEPREFIX/.temp2" && mv -f "$WINEPREFIX/.temp2" "$WINEPREFIX/.temp"
		test -n "$FloppyPoint" && sed "s|\"Path\" = \"/mnt/fd0\"\$|\"Path\" = \"$FloppyPoint\"|" "$WINEPREFIX/.temp" > "$WINEPREFIX/.temp2" && mv -f "$WINEPREFIX/.temp2" "$WINEPREFIX/.temp"
		test -n "$CDROMPoint" && sed "s|\"Path\" = \"/cdrom\"\$|\"Path\" = \"$CDROMPoint\"|" "$WINEPREFIX/.temp" > "$WINEPREFIX/.temp2" && mv -f "$WINEPREFIX/.temp2" "$WINEPREFIX/.temp"
		mv -f "$WINEPREFIX/.temp" "$WINEPREFIX/config"

		echo -e "\n\n${ErrorColor}Edit the $WINEPREFIX/config file to fit your system${CancelColor}\n"
	fi

	OldSum=`cat "$WINEPREFIX/oldreg.md5" 2>/dev/null`
	NewSum=`md5sum "$ConfigurePrefix/bin/winedefault.reg" 2>/dev/null |cut -d " " -f 1`
	test -e "$WINEPREFIX/user.reg" || ReReg="1"

	if test "$OldSum" != "$NewSum" -o -n "$ReReg"
	then

		unset Cancel
		if test -z "$ReReg"
		then
			echo -e "\nNew default registry - merge in (recommended) (y/n)?"
			GetYNanswer
			if test "$Answer" == "y"
			then
				echo "$NewSum" > $WINEPREFIX/oldreg.md5
			elif test "$Answer" == "n"
			then
				echo "$NewSum" > $WINEPREFIX/oldreg.md5
			else
				echo "Aborted"
				Cancel="yes"
			fi
		fi

		if test -z "$Cancel"
		then
			rm -f "$HOME/.w.reg" && ln -s "$ConfigurePrefix/bin/winedefault.reg" "$HOME/.w.reg"
			echo "Installing registry..."
			Installed="no"
			cd ~
			test -e "$ConfigurePrefix/bin/regapi" && "$ConfigurePrefix/bin/regapi" -- setValue -force < "$HOME/.w.reg" &>"$WINEPREFIX/reglog" && Installed="yes"
			test -e "$ConfigurePrefix/bin/regedit" -a "$Installed" != "yes" && "$ConfigurePrefix/bin/regedit" ".w.reg" >"$WINEPREFIX/reglog" && Installed="yes"

			rm -f "$HOME/.w.reg"
			
			if test "$Installed" != "yes"
			then
				Error "\nRegistry Install failed ... \nRemove $WINEPREFIX .reg files to try again."
			else
				echo "$NewSum" > "$WINEPREFIX/oldreg.md5"
				echo "Done"
		    fi
		fi
	fi
'
}
function LProfile_ConfigUpdate()
{
	LProfile_ConfigUpdate_Default
}

function LScript_SetupRun_Default()
{
	ScriptRun='
if test "$1" == ""
then
	echo "
$WINE_LOADER Features:
Reinsert default registry: $WINE_LOADER --reregister"
	echo "Install .reg with regapi:    $WINE_LOADER regapi <regfilename.reg>"
	echo "Install .reg with regedit:   $WINE_LOADER regedit [regfilename.reg]"
	echo "Install a .dll with regedit: $WINE_LOADER regsvr32 [filename.dll]"
	echo "Start winecfg:               $WINE_LOADER winecfg"
	echo "Log to file:                 $WINE_LOADER log <normal params>"
	echo "         eg:                 $WINE_LOADER log -debugmsg=+ddraw,+err -- hl.exe -console"
	echo " "
fi

if test "$1" == "regapi"
then
	shift
	if "$ConfigurePrefix/bin/regapi" -- setValue -force < "$1"  &>$WINEPREFIX/reglog
	then
		echo "Installed ..."
	else
		echo "Failed ... Log file is: $WINEPREFIX/reglog"
	fi
	exit
elif test "$1" == "regedit"
then
	shift
	if [ -r "$1" ]
	then
		if "$ConfigurePrefix/bin/regedit" "$1" &>$WINEPREFIX/reglog
		then
			echo "Installed ..."
		else
			echo "Failed ... Log file is: $WINEPREFIX/reglog"
		fi
	else
		"$ConfigurePrefix/bin/regedit"
	fi
	exit
elif test "$1" == "regsvr32"
then
	shift
	if "$ConfigurePrefix/bin/regsvr32" "$1"
	then
	    echo "DLL registered ..."
	else
	    echo "Failed ..."
	fi
	exit
elif test "$1" == "winecfg"
then
	"$ConfigurePrefix/bin/winecfg"
	exit
fi

if test -n "$DoGdb"
then
	gdb "$ConfigurePrefix/bin/$WineExecName"
elif test -n "$DoLog"
then
	"$ConfigurePrefix/bin/$WineExecName" "$@" &>"$WINEPREFIX/winelog"
	echo "Logfile saved as: $WINEPREFIX/winelog"
else
	"$ConfigurePrefix/bin/$WineExecName" "$@"
fi
'
}
function LScript_SetupRun()
{
	LScript_SetupRun_Default
}

function CreateLauncherProfile()
{
	echo "#!/bin/bash"
	LProfile_CreateFunc SetupVars
	LProfile_CreateFunc TestConfigUpdate
	LProfile_CreateFunc ConfigUpdate
}

function LScript_SetupPreConfig_Default()
{
	ScriptPreConfig='
unset DoLog
test "$1" == "log" && shift && export DoLog="1"
unset DoGdb
test "$1" == "gdb" && shift && echo "to start debugging write: r $@" && sleep 2 && export DoGdb="1"
unset ReReg
test "$1" == "--reregister" && shift && export ReReg="1"
'
}
function LScript_SetupPreConfig()
{
	LScript_SetupPreConfig_Default
}

function CreateLauncherScript()
{
	mkdir "$ConfigurePrefix/bin/WineCVSFunctions" &>/dev/null && chmod a+rx "$ConfigurePrefix/bin/WineCVSFunctions" &>/dev/null
	cp -f "$FunctionDir/Defaults" "$ConfigurePrefix/bin/WineCVSFunctions/" || Error "Could not copy Defaults file"
	chmod a+r "$ConfigurePrefix/bin/WineCVSFunctions/Defaults"
	

	LScript_SetupPreConfig
	LScript_SetupRun

	echo -e "#!/bin/bash
. \"$ConfigurePrefix/bin/WineCVSFunctions/Defaults\"
. \"$ConfigurePrefix/bin/WineCVSFunctions/$ScriptName\"

SetupVars

$ScriptPreConfig

if TestConfigUpdate
then

	if SetupRunTerm
	then
		
		unset BASH_ENV
		
		\$RunTerm bash --noprofile --norc -c '
		. \"$ConfigurePrefix/bin/WineCVSFunctions/Defaults\"
		RunsInX=\"1\"
		. \"$ConfigurePrefix/bin/WineCVSFunctions/$ScriptName\"

		rm -f \"\$HOME/.WineCVS_Result$ScriptName\"
		ConfigUpdate && touch \"\$HOME/.WineCVS_Result$ScriptName\"

		DoExit
		'

		test -e \"\$HOME/.WineCVS_Result\" && rm -f \"\$HOME/.WineCVS_Result$ScriptName\" || exit

	else
		ConfigUpdate || exit
	fi

fi

$ScriptRun" >"$CompileRootDir/.TempLauncher"

	CreateLauncherProfile >"$ConfigurePrefix/bin/WineCVSFunctions/$ScriptName"
}



function ErrMsgMake_Default ()
{
	if ErrMsgSearch "Segmentation fault"
	then
		ErrMsgAddLine "GCC crashed. This can be caused by a number of things. I suggest"
		ErrMsgAddLine "trying again, and if it continues to crash, try upgrading GCC"
	elif ErrMsgSearch "cvs \[update aborted\]"
	then
		ErrMsgAddLine "CVS socket EOF problem"
		ErrMsgAddLine "This might be caused by the CVS server being busy - try again a few times"
		ErrMsgAddLine "run the script like this: $ScriptName"
	elif ErrMsgSearch "GL/glu.h"
	then
		ErrMsgAddLine "Could not find <include>/GL/glu.h"
		ErrMsgAddLine "You are missing the GLU devel package. This is typically:"
		ErrMsgAddLine "MesaGLU-devel, libMesaGLU1-devel or similar"
		ErrMsgAddLine "Use the package manager of your distribution to locate and install"
		ErrMsgAddLine "the package. Then rerun the script"
	elif ErrMsgSearch "Terminated"
	then
		ErrMsgAddLine "Terminated prematurely - did you kill make?"
		ErrMsgAddLine "Try running the script again."
	elif ErrMsgSearch "could not open .so"
	then
		ErrMsgAddLine "Dll compilation error"
		ErrMsgAddLine "Try running ./make_dlls in $CompileRootDir/$CVSCheckOutDir/dlls as root"
		ErrMsgAddLine "Then run this script again. If that doesn't solve the prob, try this:"
		ErrMsgAddLine "You need to compile the needed dll manually. My guess is you need"
		TempStr="`tail -n 10 \"$ErrorLogFile\" 2>/dev/null|grep \"could not open .so\"|cut -d \" \" -f 7`"
		ErrMsgAddLine "this dll: $TempStr"
		TempStr=$(echo "$TempStr"|cut -d "." -f 1)
		ErrMsgAddLine "I suggest you go to $CompileRootDir/$CVSCheckOutDir/dlls and look for $TempStr"
		ErrMsgAddLine "Then manually \"make\", and link the compiled .so to the parent dir."
		unset TempStr
	elif ErrMsgSearch "\.y:"
	then
		ErrMsgAddLine ".y compile errors"
		ErrMsgAddLine "This is normally caused by your bison version being out of date or"
		ErrMsgAddLine "in some cases too new. Try upgrading it"
	elif ( ErrMsgSearch "bison: Command not found" || ErrMsgSearch "yacc: Command not found" )
	then
		ErrMsgAddLine "bison not found"
		ErrMsgAddLine "You are missing an important tool for compilation to work. This tool"
		ErrMsgAddLine "is called \"bison\". Install it with your normal package manager, then"
		ErrMsgAddLine "run the script like this: $ScriptName recompile"
	else
		return 1
	fi

	return 0
}

function ErrMsgMake()
{
	ErrMsgMake_Default
}




function TipsNInfoStart ()
{
	TipsNInfoStop
	if test "$ShowTips" -gt "0"
	then
		echo "#!/bin/bash
ConfigDirName=\"$ConfigDirName\"
ErrorLogFile=\"$ErrorLogFile\"
CompileRootDir=\"$CompileRootDir\"
ScriptName=\"$ScriptName\"
ParentPID=\"$$\"" >"$CompileRootDir/.TipsScript"
echo 'echo -e "\n"
function AddLine ()
{
	echo -e "    $1"
	TipLines=$[$TipLines+1]
}
sleep 2
while [ "1" = "1" ];
do
	test -e "$CompileRootDir/.TipClose" && exit
	test "`ps p $ParentPID 2>/dev/null|wc -l`" -lt "2" && exit
	TipNum=$RANDOM
	let "TipNum %= 15"
	TipLines="1"
	echo -en "\033[0;31m" # Red
	case $TipNum in
	( "0" )
	{
		AddLine "Did you know Cedega is made by Transgaming?"
		AddLine "They have a binary version that works better than CVS,"
		AddLine "since it has better support for Installshield and copy"
		AddLine "protected games. Go to www.transgaming.com for more info"
	} ;; ( "1" )
	{
		AddLine "Cedega rox ... You should support TransGaming, that way you"
		AddLine "get voting rights, support and access to a binary enhanced"
		AddLine "version of Cedega."
		AddLine "Go to http://www.transgaming.com/ for more info."
	} ;; ( "2" )
	{
		AddLine "TIP: To force all your games to run in a window, uncomment"
		AddLine "the \"Desktop\" option in the configuration file."
		AddLine "Look under section [x11drv]."
		AddLine "Configuration file will be <Home>/$ConfigDirName/config"
		test -n "$ScriptName" && AddLine "It will be created the first time you run $ScriptName"
	} ;; ( "3" )
	{
		AddLine "TIP: If you have a WineX related problem you can check the"
		AddLine "forums on http://www.transgaming.org/"
		AddLine "There is a general discussion forum, as well as a forum for"
		AddLine "each game."
	} ;; ( "4" )
	{
		AddLine "TIP: You can set up your own wine drives, to any given linux"
		AddLine "path. Look at the top of the config file for more info."
		AddLine "Configuration file will be <Home>/$ConfigDirName/config"
		test -n "$ScriptName" && AddLine "It will be created the first time you run $ScriptName"
	} ;; ( "5" )
	{
		AddLine "TIP: For a list of games working in WineX, go to this site:"
		AddLine "http://www.transgaming.com/searchgame.php"
		AddLine "Copy by marking with mouse, and middle-click in browser."
	} ;; ( "6" )
	{
		AddLine "TIP: You can find an applications database on this page:"
		AddLine "appdb.winehq.com"
		AddLine "Copy by marking with mouse, and middle-click in browser."
	} ;; ( "7" )
	{
		AddLine "TIP: A useful Wine resource page:"
		AddLine "http://frankscorner.org/"
		AddLine "Copy by marking with mouse, and middle-click in browser."
	} ;; ( "8" )
	{
		AddLine "TIP: look, behind you\041"
		AddLine ""
	} ;; ( "9" )
	{
		AddLine "A transgaming membership only costs \$5 a month. You get:"
		AddLine "  * Support with installation and configuration"
		AddLine "  * Influence on development through voting"
		AddLine "  * A binary version with more functionality"
		AddLine "For more info go to :    http://www.transgaming.com/"
	} ;; ( "10" )
	{
		AddLine "TIP: Useful linux gaming pages:"
		AddLine "http://www.linux-gamers.net/"
		AddLine "http://www.linuxgames.com/"
	} ;; ( "11" )
	{
		AddLine "TIP: You can add an application default x11drv"
		AddLine "section like this: (eg. for bomberman)"
		AddLine "[AppDefaults\\\\\\\\bm95.exe\\\\\\\\x11drv]"
		AddLine "\"Desktop\" = \"640x480\""
		AddLine "--- You can put things from [x11drv] section here"
	} ;; ( "12" )
	{
		AddLine "TIP: You can get basic support for Wine/Cedega by IRC:"
		AddLine "Server: irc.freenode.net"
		AddLine "Cedega support: go to channel #cedega"
		AddLine "Wine support:  go to channel #winehq"
	} ;; ( "13" )
	{
		if test -n "$ScriptName"
		then
			AddLine "TIP: There is support for easy debug loggin in"
			AddLine "$ScriptName. Just add \"log\" as the first"
			AddLine "parameter, like this:"
			AddLine "$ScriptName log -- hl.exe -console"
		else
			AddLine "no tip ..."
		fi
	} ;; ( "14" )
	{
		AddLine "TIP: Wine and Cedega differences:"
		AddLine "Wine is a \"windows compability layer\" that allows"
		AddLine "you to run .exe files in linux."
		AddLine "Cedega is a fork of Wine, with the main focus being"
		AddLine "on games. So Wine is best for apps, Cedega for games."
	}
	esac
	echo -e "\033[0m" # Cancel color
	test ! -e "$CompileRootDir/.TipClose" && sleep 60
	test "`ps p $ParentPID 2>/dev/null|wc -l`" -lt "2" && exit
	for i in `seq 1 $TipLines`;
	do
		echo -en "\033[0A\033[0M"
	done
done' >>"$CompileRootDir/.TipsScript" && chmod a+x "$CompileRootDir/.TipsScript"
		TipID="0"
		if test -e "$CompileRootDir/.TipsScript"
		then
			"$CompileRootDir/.TipsScript" 2>/dev/null &
			TipID="$!"
		fi
	fi
}

function TipsNInfoStop ()
{
	if test -n "$TipID" -a "$TipID" -gt "0"
	then
		echo $(ps | grep sleep) > "$CompileRootDir/.TipClose"
		kill $(ps | grep "sleep" | cut -d " " -f 1) &>/dev/null
		wait "$TipID" &>/dev/null
		echo -en "\033[0A\033[0M$CancelColor"
		TipID="0"
	fi
	rm -f "$CompileRootDir/.TipClose" &>/dev/null
}

function PreRun() # will be run before starting WineCVS install process
{
	return 0
}

# CVS functions
##########################################################################

## this function will override the existing checkout system if it returns
# true. Remember to always return true, or use ExitNow on error
# In case of success, set DoneOK="1"
function CVS_Checkout_override()
{
	false
}

## Step 0 ## Make uninstall
function CVS_Uninstall_Default()
{
	if make uninstall >$ErrorLogFile 2>&1
	then
		State="1"
	else
		State="1"
		ShowErrorNow
		echo -e "\n\nContinuing ... <Ctrl>+C to stop"
		sleep 4
	fi
}
function CVS_Uninstall()
{
	CVS_Uninstall_Default
}


## Step 1 ## Clean up
function CVS_Cleanup_Default()
{
	make clean >/dev/null 2>&1
}
function CVS_Cleanup()
{
	CVS_Cleanup_Default
}

## Step 2 ## checkout


## Step 3 ## Configure
function CVS_Configure_Default()
{
	autoconf
	if ./configure --prefix=$ConfigurePrefix  $ConfigureOptions >"$ErrorLogFile" 2>&1
	then
		State="4"
	else
		ErrMsgMake
		ExitNow
	fi
}
function CVS_Configure()
{
	CVS_Configure_Default
}

## Step 4 ## Make depend
function CVS_MakeDepend_Default()
{
	if $MAKE depend >"$ErrorLogFile" 2>&1
	then
		State="5"
	else
		ErrMsgMake
		ExitNow
	fi
}
function CVS_MakeDepend()
{
	CVS_MakeDepend_Default
}

## Step 5 ## Make
function CVS_Make_Default()
{
	if $MAKE >"$ErrorLogFile" 2>&1
	then
		if test "$StripBinaries" -gt "0"
		then
			TipsNInfoStop
			echo "Stripping binaries (Debug support is disabled then) ..."
			cd "$CompileRootDir/$CVSCheckOutDir/" && find -type f | xargs file -i | egrep 'application/(x-sharedlib|x-executable)' | sed 's/:.*//' | xargs strip &>/dev/null
		fi
		State="6"
	else
		ErrMsgMake
		ExitNow
	fi
}
function CVS_Make()
{
	CVS_Make_Default
}

## Step 6 ## Make install
function CVS_Install_Default()
{
	if make install >$ErrorLogFile 2>&1
	then
		chmod a+rx "$ConfigurePrefix"
		(cd programs/regapi/ 2>/dev/null &&
		make >$ErrorLogFile 2>&1 && make install >$ErrorLogFile 2>&1)
		(cd programs/regedit/ 2>/dev/null &&
		make >$ErrorLogFile 2>&1 && make install >$ErrorLogFile 2>&1)
		if test "$AlwaysRecompile" = "1"
		then
			make clean >/dev/null 2>&1
		fi
		# cp -f "$CompileRootDir/$CVSCheckOutDir/winedefault.reg" "$ConfigurePrefix/bin/" && chmod a+r "$ConfigurePrefix/bin/winedefault.reg"
		sed "$DefaultRegSedScript" "$CompileRootDir/$CVSCheckOutDir/winedefault.reg" > "$ConfigurePrefix/bin/winedefault.reg" && chmod a+r "$ConfigurePrefix/bin/winedefault.reg" || cp -f "$CompileRootDir/$CVSCheckOutDir/tools/wine.inf" "$ConfigurePrefix/bin/winedefault.reg"

		cp -f "$CompileRootDir/$CVSCheckOutDir/documentation/samples/config" "$ConfigurePrefix/bin/" && chmod a+r "$ConfigurePrefix/bin/config"
		
		cp -f "$CompileRootDir/$CVSCheckOutDir/documentation/samples/win.ini" "$ConfigurePrefix/bin/" &>/dev/null && chmod a+r "$ConfigurePrefix/bin/win.ini"
		cp -f "$CompileRootDir/$CVSCheckOutDir/documentation/samples/system.ini" "$ConfigurePrefix/bin/" &>/dev/null && chmod a+r "$ConfigurePrefix/bin/system.ini"
		State="7"
	else
		ExitNow
	fi
}
function CVS_Install()
{
	DefaultRegSedScript=""
	CVS_Install_Default
}
I gotowe teraz już nie powinno być żadnych problemów...
ODPOWIEDZ

Wróć do „Software-Inne”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 2 gości