projects
/
hdw-linux
/
hdw-linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed hdw-get & fai routine
[hdw-linux/hdw-linux.git]
/
scripts
/
Create-Binary
diff --git
a/scripts/Create-Binary
b/scripts/Create-Binary
index
aca626f
..
8bce90a
100755
(executable)
--- a/
scripts/Create-Binary
+++ b/
scripts/Create-Binary
@@
-42,7
+42,10
@@
if [ ! -z "$hdw_arch_opt" ]; then
else
bin_dir=${hdw_arch}-generic
fi
else
bin_dir=${hdw_arch}-generic
fi
-pkg_dir=`echo $package | sed 's%-[0-9]*%%'`
+pkg_dir=`echo $package | sed 's%-[0-9].%%'`
+pkg_dir=`echo $pkg_dir | sed 's%-[0-9]%%'`
+pkg_dir=`echo $pkg_dir | sed "s%\(.*\)\.\(.*\)%\1%"`
+pkg_dir=`echo $pkg_dir | sed 's%-x%%'`
mkdir -p binaries/$bin_dir
# single package
mkdir -p binaries/$bin_dir
# single package
@@
-77,14
+80,15
@@
elif [ "$package" = "all" ] ; then
((counter=0))
for pkg in `ls -A $hdw_build_dir/var/adm/flists | grep -v '.stage'`; do
((counter=0))
for pkg in `ls -A $hdw_build_dir/var/adm/flists | grep -v '.stage'`; do
- tar_name=`echo $pkg |
awk -F- '{ print $1 }'
`
+ tar_name=`echo $pkg |
sed "s/-[0-9].*//g"
`
./scripts/Create-Binary -package $pkg -root $hdw_build_dir \
./scripts/Create-Binary -package $pkg -root $hdw_build_dir \
- -tar
_
name $tar_name
+ -tar
-
name $tar_name
((counter+=1))
done
# add 00-dirtree, build in stage1
((counter+=1))
done
# add 00-dirtree, build in stage1
-./scripts/Create-Binary -package 00-dirtree.stage0-0 -tar-name 00-dirtree
+./scripts/Create-Binary -package 00-dirtree.stage0-0 -tar-name 00-dirtree \
+ -root $hdw_build_dir
((counter+=1))
echo "created $counter binaries, done"
((counter+=1))
echo "created $counter binaries, done"