scripts: Use get_os.sh for packaging

Use get_os.sh for determining which distribution and version packages
are built for, and upload accordingly.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2015-06-01 12:20:25 +00:00
commit 61a4706c76
3 changed files with 13 additions and 6 deletions

View file

@ -392,6 +392,7 @@ build_pkg()
local src_tree=$DIST_SRC_DIR/$src_base
local tar_archive=$src_base.tar.bz2
local tar_archive_orig=$src_base.orig.tar.bz2
local distribution=`os`
local RPM_REQUIRES_RUN=`echo $RPM_REQUIRES_RUN | sed "s/__NEXT_VERSION__/$version/g"`
local RPM_REQUIRES_DEVEL=`echo $RPM_REQUIRES_DEVEL | sed "s/__NEXT_VERSION__/$version/g"`
@ -448,6 +449,7 @@ build_pkg()
-R "$RPM_REQUIRES_RUN" \
-D "$RPM_REQUIRES_DEVEL" \
-P $PROJECT \
-d $distribution \
> $RPM_PROJECT.$deffmt
)
done
@ -529,12 +531,12 @@ upload_pkg()
[janware-debian]
fqdn = $server
# login =
incoming = /srv/ftp/pub/packages/linux/debian/mini-dinstall/incoming/
incoming = /srv/ftp/pub/packages/all/debian/mini-dinstall/incoming/
method = rsync
hash = sha
allow_unsigned_uploads = yes
distributions = debian-8
allowed_distributions = stable
allowed_distributions = `os`
delayed =
run_lintian = no
run_dinstall = no
@ -816,7 +818,7 @@ cmd_milk_install_log()
for p in run devel; do
postinst=$out/$name-$p.postinst
init_postinst $postinst
milk_install_log_init_postinst $postinst
cat $out/$name-$p.dirs $out/$name-$p.install | grep . | while read file dir; do
#echo read file \"$file\" >&2
file=`echo /$file | sed 's/inst-root\///; s%^//*%/%'`