Mailinglist Archive: opensuse-buildservice (193 mails)

< Previous Next >
[opensuse-buildservice] Using echo+$variable to create a dir
  • From: Manuel Arostegui Ramirez <manuel@xxxxxxxxxxxxxx>
  • Date: Tue, 17 Apr 2007 08:07:06 +0200
  • Message-id: <200704170807.07031.manuel@xxxxxxxxxxxxxx>
Hi all.
I'd like to create a dir into the buildroot PATH by using the output of a 
variable. Let me explain.

Imagine something like:

perl=`rpm -q --queryformat='%{VERSION}' perl`

Then:
echo $perl
5.8.8

So the point really is, I'd like to do something like:
mkdir -p $RPM_BUILD_ROOT/`echo $perl`

In orded to create the directory, calling it as the perl version installed in 
the system.

Is that possible? Any ideas will be really appreaciated.
All the best.
Manuel.

-- 
Manuel Arostegui Ramirez.

Electronic Mail is not secure, may not be read every day, and should not
be used for urgent or sensitive issues.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References