Skip to Content.
Sympa Menu

sm-sorcery - Re: [SM-Sorcery] echo and cat problem

sm-sorcery AT lists.ibiblio.org

Subject: Discussion of Sorcery related topics

List archive

Chronological Thread  
  • From: "Sergey A. Lipnevich" <sergey AT optimaltec.com>
  • To: Treeve Jelbert <treeve01 AT pi.be>
  • Cc: sm-sorcery AT lists.ibiblio.org
  • Subject: Re: [SM-Sorcery] echo and cat problem
  • Date: Thu, 13 Nov 2003 23:11:00 -0500

I think the first command, one between backtick, fails, therefore execution goes all the way down to the command _after_ the second EOF, which is cp. Investigate `fpc -iV`.

Sergey.

Treeve Jelbert wrote:

using the latest devel-sorcery, can any explain why this BUILD file does not work?
1. echo produces no output
2. cat does not create a file
3. cp only sees one parameter
so the question is, why is FPCCFG not set and used correctly?

- ---
VV=`fpc -iV` &&
FPCDIR=/usr/share/fpc-${VV}/src &&
FPCCFG=$SOURCE_DIRECTORY/fpc.cfg &&
cd $SOURCE_DIRECTORY &&
echo cfg=$FPCCFG &&

cat > ${FPCCFG} << EOF
#INCLUDE /etc/fpc.cfg
- -dNEW1_1
- -Fi${SOURCE_DIRECTORY}/include
- -Fi${SOURCE_DIRECTORY}/lcl/include
- -Fu${SOURCE_DIRECTORY}/lcl/units
- -Fu${SOURCE_DIRECTORY}/components/units
EOF
cp $FPCCFG lcl &&
....
__

Building lazarus
Unpacking source file lazarus-20031027.tgz for spell lazarus.
Using gcc version: 3.3.2
Installing in dir: /usr/src/lazarus
lazarus 20031027
cp: missing destination file
Try `cp --help' for more information.
! Problem Detected !
Creating /var/log/sorcery/compile/lazarus-20031027.bz2
rm: cannot remove `/tmp/liblock-0/libgrimoire.install/4452': No such file or directory
rm: cannot remove `/tmp/liblock-0/castSOLO.SOLO/4452': No such file or directory







Archive powered by MHonArc 2.6.24.

Top of Page