$src VAR update suggestion |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
TO UPDATE THE $src
FROM :
compile_package()
{...
# Set wanted $src variable to help compiling.
if [ ! "$SOURCE" = "" ]; then
src=$WOK/$PACKAGE/$SOURCE-$VERSION
else
src=$WOK/$PACKAGE/$PACKAGE-$VERSION
fi
....}
TO :
compile_package()
{...
# Set wanted $src variable to help compiling.
if [ ! "$SOURCE" = "" ]; then
src=$WOK/$PACKAGE/$SOURCE
else
src=$WOK/$PACKAGE/$PACKAGE-$VERSION
fi
....}
LIKE I'VE SUGGESTED YESTERDAY DOESN'T WORK WITH $WANTED PACKAGES
HERE'S THE ANSWER : YOU MUST, IN ADDITION TO THIS CHANGE, CHANGE IT :
FROM :
check_for_wanted()
{...
# Set wanted src path.
src=$WOK/$WANTED/$WANTED-$VERSION
_pkg=$src/_pkg
....}
TO :
check_for_wanted()
{...
# Set wanted src path.
SOURCE_WANTED="`cat $WOK/$WANTED/receipt | grep "SOURCE=" | awk -F '"' '{print $2}'`"
if [ ! "$SOURCE_WANTED" = "" ]; then
src=$WOK/$WANTED/$SOURCE_WANTED
else
src=$WOK/$WANTED/$WANTED-$VERSION
fi
....}
AND FROM :
gen_package()
{...
if [ ! "$SOURCE" = "" ]; then
src=$WOK/$PACKAGE/$SOURCE-$VERSION
_pkg=$src/_pkg
fi
....}
TO :
gen_package()
{...
if [ ! "$SOURCE" = "" ]; then
src=$WOK/$PACKAGE/$SOURCE
_pkg=$src/_pkg
fi
....}
GOOD NIGHT AND HAVE FUN !
THOMAS
--
See Exclusive Video: 10th Annual Young Hollywood Awards
http://www.hollywoodlife.net/younghollywoodawards2008/
---
SliTaz GNU/Linux Mailing list.
Web site : http://www.slitaz.org/