Originally Posted by
furrycat
You already have the right idea by running the script in verbose mode so you can see how the variables are being expanded and what is happening. Look again at MODULE_NAME and MODULE_PATH.
Hint: MODULE_NAME ends up containing a space-separated list of names. That space-separated list is appended to the base path to form MODULE_PATH. This happens before you do the loop.
Good you point that out and is where I am falling down. If;
Code:
MODULE_NAME=`ls *.bz2 | sed -e "s:-4.7.4.tar.bz2::"`
is run from cli, it gives (snipped);
Code:
...
blinken
cantor
gwenview
kalgebra
kalzium
kamera
kanagram
kate...
But from the script it is as you say a space separated list is created.
Oops, think I see the problem now. Your right about a space separation problem. Here is what $FILE_LIST looks like;
Code:
+ FILE_LIST='blinken-4.7.4.tar.bz2
cantor-4.7.4.tar.bz2
gwenview-4.7.4.tar.bz2
kalgebra-4.7.4.tar.bz2
kalzium-4.7.4.tar.bz2
kamera-4.7.4.tar.bz2
kanagram-4.7.4.tar.bz2
kate-4.7.4.tar.bz2
kbruch-4.7.4.tar.bz2
kcolorchooser-4.7.4.tar.bz2
kdeaccessibility-4.7.4.tar.bz2
kdeadmin-4.7.4.tar.bz2
Here is how $MODULE_NAME is shown;
Code:
+ MODULE_NAME='blinken
cantor
gwenview
kalgebra
kalzium
kamera
kanagram
kate
kbruch
kcolorchooser
kdeaccessibility
kdeadmin
kdeartwork
kde-baseapps
kdegames
kdegraphics-strigi-analyzer
But this area here in $MODULE_LOCATION is where it falls down, it looks like this;
Code:
MODULE_LOCATION=`lvu where $MODULE_NAME`
lvu where $MODULE_NAME
++ lvu where blinken cantor gwenview kalgebra kalzium kamera kanagram kate kbruch kcolorchooser kdeaccessibility kdeadmin kdeartwork kde-baseapps kdegames kdegraphics-strigi-analyzer kdegraphics-thumbnailers kdelibs kdemultimedia kdenetwork kdepim kdepimlibs kdepim-runtime kdeplasma-addons kde-runtime kdesdk kdetoys kdeutils kde-wallpapers kdewebdev kde-workspace kgamma kgeography khangman kig kimono kiten klettres kmplot kolourpaint konsole korundum kross-interpreters kruler ksaneplugin ksnapshot kstars ktouch kturtle kwordquiz libkdcraw libkdeedu libkexiv2 libkipi libksane marble mobipocket okular oxygen-icons parley perlkde perlqt pykde4 qtruby qyoto rocs smokegen smokekde smokeqt step svgpart
and then it proceeds with;
Code:
+ MODULE_LOCATION=kde4/games
MODULE_PATH="/home/dveatch/moonbase.git/$MODULE_LOCATION/$MODULE_NAME"
+ MODULE_PATH='/home/dveatch/moonbase.git/kde4/games/blinken
cantor
gwenview
kalgebra
kalzium
kamera
kanagram
kate
kbruch
and the names in that list live in different directories. So I need to figure how to get lvu where $MODULE to output differently.