mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 02:19:39 +02:00
added parameter check
git-svn-id: trunk@6745 -
This commit is contained in:
parent
4bca03d262
commit
a129127f96
@ -35,11 +35,12 @@ fi
|
||||
TmpBaseDir=/tmp
|
||||
TmpDir=$TmpBaseDir/fpc
|
||||
|
||||
echo "copy $FPCSrcDir to /tmp/fpc ..."
|
||||
ppc386 -Fu../../lcl/units/i386/linux cvsexportlocal.pas
|
||||
echo "extracting FPC from local cvs ..."
|
||||
cd $TmpBaseDir
|
||||
rm -rf $TmpDir
|
||||
cd -
|
||||
sh create_clean_fpcsrc_directory.sh $FPCSrcDir $TmpDir
|
||||
./cvsexportlocal $FPCSrcDir $TmpDir
|
||||
|
||||
if [ $RenameSmart = "yes" ]; then
|
||||
for Ext in pm pl; do
|
||||
|
@ -114,6 +114,11 @@ end;
|
||||
|
||||
procedure Init;
|
||||
begin
|
||||
if ParamCount<2 then begin
|
||||
writeln('Usage:');
|
||||
writeln(' cvsexportlocal <sourcedirectory> <destinationdirectory>');
|
||||
Halt;
|
||||
end;
|
||||
InputDir := ExpandFileName(ParamStr(1));
|
||||
OutputDir := ExpandFileName(ParamStr(2));
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user