Wolfgang Pfeiffer <[EMAIL PROTECTED]> writes:
> > cat /bin/clear-build:
> > ^^^^^^^^^^^^^^^^^^^
> > #!/bin/sh -x
> > cd /usr/src/redhat/SOURCES && rm -rf * && \
> > cd ../BUILD && rm -rf * && cd ../SPECS && rm -f *
> > #done
>
> which means: everything in
>
> /usr/src/redhat/SOURCES
> /usr/src/redhat/BUILD
> /usr/src/redhat/SPECS
>
> will be deleted ... correct?
Yup
> (seems to be a perl-script ... right? ... this is one of these moments
> where I wish a day had 48 hours or more .. just to learn all that Linux I
> do not know yet ... :))
Nope, just a funky little shell script using real elementary syntax.
The "&&" you see there just tell the script to finish executing whats
on the left side before executing whats on the right side.
Probabaly not even necessary but doesn't hurt either.
It initially cds to /usr/source/redhat. The notations that look like:
"../" just mean to backup one level and cd to the right.
Just in case you didn't know how to use it. You would put it
some where on your path, that you keep such things then set it
executable with a command like: chmod 755 clear-builds.
If it is in your path (type `echo $PATH to see it). You'll be able to
call it by typing:
clear-builds
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list