-rwxr-xr-x | scripts/tothreaded | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/tothreaded b/scripts/tothreaded index f916ad8..bf6750e 100755 --- a/scripts/tothreaded +++ b/scripts/tothreaded @@ -1,51 +1,51 @@ #!/bin/sh -# PURPOSE : +# PURPOSE : # # this script converts a non-threaded control file to a threaded one # by extending appropriate names with -mt as extension # # eg abc.control becoms abc-mt.control # # # make sure that the depends expression has enough spaces # expression can contian : , ( ) || && # tokenize() { sed "s/,/ & /g" | sed "s/)/ & /g" | sed "s/(/ & /g" | sed "s/|/ & /g" | sed "s/&/ & /g" } # # function converts package name to threaded equivalend IF the # package file HAS a threaded version # findthreadedequiv() { local isin i for i in $* do isin=`grep "^$i\$" "$ALLTHREADEDPKGSFILE"` if [ -z "$isin" ] then # no threaded package echo -n "$i" else # threaded package echo -n "${isin}-mt" fi done echo } # # signature of binary files # currently obsolete # # ISBINARY="*ELF*LSB*" usage() { echo "Usage : tothreaded <controlfile> <ALLPackages file>" exit 2 } . scripts/SpecialMTFiles |