fixed readonly check and added script to quick create lazarus snapshot

git-svn-id: trunk@3900 -
This commit is contained in:
mattias 2003-03-07 11:41:22 +00:00
parent 58b44d9f05
commit d392a8d123
7 changed files with 61 additions and 15 deletions

View File

@ -419,6 +419,7 @@ begin
EndPos:=StartPos;
while (EndPos<=length(Line)) and (Line[EndPos] in ['0'..'9']) do inc(EndPos);
if EndPos>length(Line) then exit;
CaretXY.X:=1;
CaretXY.Y:=StrToIntDef(copy(Line,StartPos,EndPos-StartPos),-1);
if Line[EndPos]=',' then begin
// format: <filename>(123,45) <ErrorType>: <some text>

View File

@ -794,6 +794,8 @@ begin
and FIgnoreFileDateOnDiskValid
and (FIgnoreFileDateOnDisk=Source.FileDateOnDisk) then
Result:=false;
if not IsVirtual then
FileReadOnly:=FileIsWritable(Filename);
end;
procedure TUnitInfo.IgnoreCurrentFileDateOnDisk;
@ -2241,6 +2243,9 @@ end.
{
$Log$
Revision 1.95 2003/03/07 11:41:21 mattias
fixed readonly check and added script to quick create lazarus snapshot
Revision 1.94 2003/02/28 19:10:25 mattias
added new ... dialog

View File

@ -2,21 +2,41 @@ Installation tools
==================
This document describes how to create the various packages for lazarus
including freepascal packages.
including the required freepascal packages (fpc and fpcsrc).
--------------------------------------------------------------------------------
TGZ
Creating the fpcsrc tgz:
There are two ways to do it and so there are two scripts. The first downloads
the fpc cvs and packs it. The second uses an existing fpc cvs directory,
copies it, remove unnecessary files and packs it. The second script is
therefore much faster, but it may miss removing all old, unnecessary files.
The download and pack script:
The script create_fpc_snapshot_tgz.sh makes a cvs export of the
fpc FIXES_1_0_0 branch and compress it to fpcsrc-1.0.7-1.tgz.
The copy and pack script:
The script create_fpc_tgz_from_local_dir.sh needs as parameter the fpc cvs
directory and compress it to fpcsrc-1.0.7-1.tgz.
Creating the lazarus tgz:
There are two ways to do it and so there are two scripts. The first downloads
the fpc cvs and packs it. The second uses an existing fpc cvs directory,
copies it, remove unnecessary files and packs it. The second script is
therefore much faster, but it may miss removing all old, unnecessary files.
The download and pack script:
The script create_lazarus_snapshot_tgz.sh makes a cvs export of lazarus and
compress it to lazarus-0.8.5.tgz.
The copy and pack script:
The script create_lazarus_tgz_from_local_dir.sh needs as parameter the
lazarus cvs directory and compress it to lazarus-0.8.5.tgz.
--------------------------------------------------------------------------------
@ -29,8 +49,13 @@ Creating the fpc rpm:
compiler itself. Then download the fpc cvs of the FIXES_1_0_0 branch and
compile the RTL and the compiler with 'make rtl' and 'make compiler'.
Before you create the rpm, you should define a release tag. Open
<fpc>/install/fpc.spec and change the Release tag to laz.20030220. The number
<fpc>/install/fpc.spec and change the Release tag to laz.20030307. The number
is simply the date, when this README was written. Use the current date.
The default fpc.cfg is created with the samplecfg script. This is done with a
fixed fpc version. To create a fpc.cfg, that can be used with the fpc 1.1 and
with fpc 1.0.x you should change the samplecfg call in <fpc>/install/fpc.spec:
Search for 'samplecfg' and change the line:
%{fpcdir}/samplecfg %{_libdir}/fpc/\$version
As root:
The fpc and fpcdoc RPMs can be created with 'make rpm'. If you only want to
@ -41,16 +66,16 @@ Creating the fpc rpm:
Creating the fpcsrc rpm:
As a user of your choice:
Create the fpcsrc-1.0.7-1.tgz of 'Creating the fpcsrc tgz' and put it into
/usr/src/redhat/SOURCES/.
Create the fpcsrc-1.0.7-1.tgz of 'Creating the fpcsrc tgz'.
As root:
Put the fpcsrc-1.0.7-1.tgz into /usr/src/redhat/SOURCES/.
Run 'rpm -ba fpcsrc-1.0.7-1.spec'. This will create the src rpm and the rpm
for the current system (e.g. redhat 7.3).
The src rpm can be used to create rpms for any system by building it on the
destination system.
The fpcsrc rpm will simply copy the files into /usr/share/fpcsrc. It does
not contain any binaries, so all rpms are system independent. The lazarus
not contain any binaries, so the rpm is system independent. The lazarus
IDE searches the fpc src automatically in /usr/share/fpcsrc and so the user
does not need to setup this path.

View File

@ -3,18 +3,24 @@
#set -x
set -e
OutputFile=fpcsrc-1.0.7-1.tgz
echo "downloading fpc branch cvs FIXES_1_0_0 ..."
cd /tmp
rm -rf /tmp/fpc
export CVSROOT=:pserver:cvs@cvs.freepascal.org:/FPC/CVS
cvs login
cvs -z3 export -r FIXES_1_0_0 fpc
tar cvzf fpc_src.tgz fpc
# pack
echo "creating tgz ..."
tar czf fpc_src.tgz fpc
cd -
mv /tmp/fpc_src.tgz fpcsrc-1.0.7-1.tgz
mv /tmp/fpc_src.tgz $OutputFile
rm -rf /tmp/fpc
echo ""
echo "NOTE: DON'T FORGET TO PUT THE .tgz INTO /usr/src/redhat/SOURCES/"
echo "NOTE: DON'T FORGET TO PUT THE $OutputFile INTO /usr/src/redhat/SOURCES/"
# end.

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -e
set -x
#set -x
FPCSrcDir=$1
OutputFile=fpcsrc-1.0.7-1.tgz
@ -15,21 +15,25 @@ if [ ! -d $FPCSrcDir/compiler ]; then
exit
fi
echo "copy dir to /tmp/fpc ..."
echo "copy $FPCSrcDir to /tmp/fpc ..."
cd /tmp
rm -rf /tmp/fpc
cp -a $FPCSrcDir fpc
cd -
cp -a $FPCSrcDir /tmp/fpc
echo "cleaning up (CVS, ppu, o) ..."
cd /tmp/fpc
make distclean
find . -name '*.ppu' -exec rm -rf {} \;
find . -name '*.o' -exec rm -rf {} \;
find . -name '*.rst' -exec rm -rf {} \;
rm -f *.tar.gz
if [ -d CVS ]; then
find . -name 'CVS' | xargs rm -r
fi
cd -
cd /tmp/fpc/docs
make clean
cd -
# pack
echo "creating tgz ..."

View File

@ -3,18 +3,23 @@
#set -x
set -e
OutFile=lazarus-0.8.5-1.tgz
echo "downloading lazarus cvs ..."
cd /tmp
rm -rf /tmp/lazarus
export CVSROOT=:pserver:cvs@cvs.freepascal.org:/FPC/CVS
cvs login
cvs -z3 export -r HEAD lazarus
echo "packing ..."
tar cvzf lazarus.tgz lazarus
cd -
mv /tmp/lazarus.tgz lazarus-0.8.5.tgz
mv /tmp/lazarus.tgz $OutFile
rm -rf /tmp/lazarus
echo ""
echo "NOTE: DON'T FORGET TO PUT THE .tgz INTO /usr/src/redhat/SOURCES/"
echo "NOTE: DON'T FORGET TO PUT THE $OutFile INTO /usr/src/redhat/SOURCES/"
# end.

View File

@ -3,7 +3,7 @@ Version: 1.0.7
Release: 1
Copyright: GPL
Group: Development/Languages
Source: %{name}-%{version}.tgz
Source: %{name}-%{version}-%{release}.tgz
Summary: FreePascal sources 1.0.7
Packager: Mattias Gaertner (gaertner@informatik.uni-koeln.de)
URL: http://www.freepascal.org/