dmg: focsrc: fixed license path

git-svn-id: trunk@54297 -
This commit is contained in:
mattias 2017-02-27 17:50:20 +00:00
parent ab585d53ed
commit cfa6d7e99c
2 changed files with 14 additions and 2 deletions

View File

@ -66,6 +66,16 @@ if [ ! -d "$FPCSrcDir/compiler" ]; then
echo "missing fpcdir svn $FPCSrcDir/compiler"
exit 1
fi
LicenseFile="$FPCSrcDir/../install/macosx/resources/License.txt"
if [ ! -f "$LicenseFile" ]; then
echo "missing $LicenseFile"
exit 1
fi
ReadMeFile="$FPCSrcDir/../install/macosx/resources/ReadMe.txt"
if [ ! -f "$ReadMeFile" ]; then
echo "missing $ReadMeFile"
exit 1
fi
SVN=$(which svn)
if [ ! -e "$SVN" ]; then
@ -151,8 +161,10 @@ fi
cat $PACKPROJTEMPLATE | sed \
-e "s|_FPCVERSION_|$FPCVersion|g" \
-e "s|_DATESTAMP_|$DATESTAMP|g" \
-e "s|_FPCSRCDIR_|$FPCSrcDir|g" \
-e "s/_FPCMAJORVERSION_/$FPCMAJORVERSION/g" \
-e "s/_FPCMINORVERSION_/$FPCMINORVERSION/g" \
-e "s/_FPCFULLVERSION_/$FPCVersion/g" \
> $PACKPROJ
# build package

View File

@ -28,7 +28,7 @@
<key>Mode</key>
<integer>1</integer>
<key>Path</key>
<string>_FPCSRCDIR_/install/macosx/resources/License.txt</string>
<string>_FPCSRCDIR_/../install/macosx/resources/License.txt</string>
<key>Path Type</key>
<integer>1</integer>
</dict>
@ -40,7 +40,7 @@
<key>Mode</key>
<integer>0</integer>
<key>Path</key>
<string>_FPCSRCDIR_/install/macosx/resources/ReadMe.txt</string>
<string>_FPCSRCDIR_/../install/macosx/resources/ReadMe.txt</string>
<key>Path Type</key>
<integer>1</integer>
</dict>