added parameter check

git-svn-id: trunk@6745 -
This commit is contained in:
mattias 2005-02-05 14:26:57 +00:00
parent 4bca03d262
commit a129127f96
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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;