mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 11:18:10 +02:00
linux installers: tried to fix the initial values of the lazarus dir and fpcsrc dir for the rpm installers without breaking them for the deb installers
git-svn-id: trunk@32825 -
This commit is contained in:
parent
41a58cd13c
commit
795218e549
@ -152,7 +152,8 @@ cat $LazDestDir/install/man/man1/startlazarus.1 | gzip > $LazBuildDir/usr/share/
|
||||
mkdir -p $LazBuildDir/etc/lazarus
|
||||
cp $EtcSrcDir/editoroptions.xml $LazBuildDir/etc/lazarus/
|
||||
cat $EtcSrcDir/environmentoptions.xml | \
|
||||
sed -e "s#/usr/lib/lazarus/%LazarusVersion%#$LazDestDirInstalled/#" \
|
||||
sed -e "s#__LAZARUSDIR__#$LazDestDirInstalled/#" \
|
||||
-e "s#__FPCSRCDIR__#/usr/share/fpcsrc/\$(FPCVER)/#" \
|
||||
> $LazBuildDir/etc/lazarus/environmentoptions.xml
|
||||
chmod 644 $LazBuildDir/etc/lazarus/*.xml
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
<Debugger Class="TGDBMIDebugger"/>
|
||||
<DebuggerFilename Value="/usr/bin/gdb">
|
||||
</DebuggerFilename>
|
||||
<LazarusDirectory Value="/usr/lib/lazarus/%LazarusVersion%">
|
||||
<LazarusDirectory Value="__LAZARUSDIR__">
|
||||
<History Count="1">
|
||||
<Item1 Value="/usr/lib/lazarus/"/>
|
||||
</History>
|
||||
@ -17,7 +17,7 @@
|
||||
<Item3 Value="/opt/fpc/fpc"/>
|
||||
</History>
|
||||
</CompilerFilename>
|
||||
<FPCSourceDirectory Value="/usr/share/fpcsrc/$(FPCVER)/">
|
||||
<FPCSourceDirectory Value="__FPCSRCDIR__">
|
||||
<History Count="2">
|
||||
<Item1 Value="/usr/share/fpcsrc/"/>
|
||||
<Item2 Value="/usr/share/fpcsrc/$(FPCVER)/"/>
|
||||
|
@ -66,7 +66,7 @@ cat lazarus/install/man/man1/lazbuild.1 | gzip > %{buildroot}%{_mandir}/man1/laz
|
||||
cat lazarus/install/man/man1/lazarus-ide.1 | gzip > %{buildroot}%{_mandir}/man1/lazarus-ide.1.gz
|
||||
cat lazarus/install/man/man1/startlazarus.1 | gzip > %{buildroot}%{_mandir}/man1/startlazarus.1.gz
|
||||
install lazarus/tools/install/linux/editoroptions.xml %{buildroot}%{_sysconfdir}/lazarus/editoroptions.xml
|
||||
cat lazarus/tools/install/linux/environmentoptions.xml | sed -e "s#/usr/lib/lazarus/#$LAZARUSDIR/#" > %{buildroot}%{_sysconfdir}/lazarus/environmentoptions.xml
|
||||
cat lazarus/tools/install/linux/environmentoptions.xml | sed -e "s#__LAZARUSDIR__#$LAZARUSDIR/#" -e "s#__FPCSRCDIR__#%{_datadir}/fpcsrc/#" > %{buildroot}%{_sysconfdir}/lazarus/environmentoptions.xml
|
||||
|
||||
|
||||
%clean
|
||||
|
Loading…
Reference in New Issue
Block a user