Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-02

samplecfg patch

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ales Katona

This patch makes samplecfg use $fpcversion instead of hard versioning.

Ales

P.S: it works even with primitive /bin/sh on bsd so I guess nothing was broken

Reply by email

Florian Klaempfl
to Ales Katona
Ales Katona wrote
This patch makes samplecfg use $fpcversion instead of hard versioning. Ales

Applied, thx.

Show quoted text 51 lines
P.S: it works even with primitive /bin/sh on bsd so I guess nothing was broken ------------------------------------------------------------------------ Index: compiler/utils/samplecfg =================================================================== --- compiler/utils/samplecfg (revision 2478) +++ compiler/utils/samplecfg (working copy) @@ -65,6 +65,10 @@ echo Found libgcc.a in $GCCDIR GCCDIR=-Fl$GCCDIR fi + +# set right path to FPC with $fpcversion +FPCPATH=`dirname "$1"`/\$fpcversion + # Write the file echo Writing sample configuration file to $thefile cat <<EOFCFG > $thefile @@ -195,16 +199,16 @@ # path to the messagefile, not necessary anymore but can be used to override # the default language -#-Fr$1/msg/errore.msg -#-Fr$1/msg/errorn.msg +#-Fr$FPCPATH/msg/errore.msg +#-Fr$FPCPATH/msg/errorn.msg # searchpath for includefiles #-Fi/pp/inc;/pp/rtl/inc # searchpath for units and other system dependent things --Fu$1/units/\$fpctarget --Fu$1/units/\$fpctarget/* --Fu$1/units/\$fpctarget/rtl +-Fu$FPCPATH/units/\$fpctarget +-Fu$FPCPATH/units/\$fpctarget/* +-Fu$FPCPATH/units/\$fpctarget/rtl #-Fu~/fpc/packages/base/*/units/$fpctarget;~/fpc/fcl/units/$fpctarget;~/fpc/rtl/units/$fpctarget # searchpath for libraries ------------------------------------------------------------------------ _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email