Commit 2f917e23 authored by Vitaly Lipatov's avatar Vitaly Lipatov

update descriptions and comments

parent 91569584
...@@ -118,8 +118,9 @@ done ...@@ -118,8 +118,9 @@ done
echo echo
if [ "$RESULT" = "1" ] ; then if [ "$RESULT" = "1" ] ; then
echo
echog "!!!!!!! Hasher: FAILED FAILED FAILED !!!!!!!!!" echog "!!!!!!! Hasher: FAILED FAILED FAILED !!!!!!!!!"
echog "Failed with $i, built only" echog "Build failed with $i, built only"
else else
echog "Full list of the hashered packages:" echog "Full list of the hashered packages:"
fi fi
......
...@@ -123,9 +123,10 @@ do ...@@ -123,9 +123,10 @@ do
if [ "$RET" != "0" ] if [ "$RET" != "0" ]
then then
echo "!!!!!!!! ERROR !!!!!" echo
fatal "Failed with $i" echog "!!!!!!!! ERROR !!!!!!!"
fatal "Build failed with $i"
fi fi
done done
echog "Built is done correctly" echog "Build is done correctly"
date date
...@@ -298,11 +298,11 @@ fi ...@@ -298,11 +298,11 @@ fi
parse_cmd_pre_spec "$@" parse_cmd_pre_spec "$@"
mygetopts $LISTARGS mygetopts $LISTARGS
test -z "$LISTNAMES" && fatal "Error: no such file" test -z "$LISTNAMES" && fatal "file not found in '$@'"
if [ "$VENDOR" = "alt" ] ; then if [ "$VENDOR" = "alt" ] ; then
MDISTR=$MENV MDISTR=$MENV
test -z "$MDISTR" && fatal "missed backport version (f.i. run with -M24 param for Master 2.4)" test -z "$MDISTR" && fatal "Missed backport version (f.i. run with -M24 param for Master 2.4)"
DISTRVERSION=$(get_altdistr_version $MDISTR) DISTRVERSION=$(get_altdistr_version $MDISTR)
else else
MDISTR=LOCAL MDISTR=LOCAL
......
...@@ -42,7 +42,7 @@ phelp() ...@@ -42,7 +42,7 @@ phelp()
echog "$Usage" echog "$Usage"
echog "Options:" echog "Options:"
echog " -u - sign and run gear build task after build" echog " -u - sign and run gear build task after build"
echog " -a TASK - sign package(s), push/upload it and add to task TASK" echog " -a TASK - sign package(s)/repo, push/upload it and add to (shared) task TASK"
echog " -l - lazy cleanup (clean before build, not after)" echog " -l - lazy cleanup (clean before build, not after)"
echog "Ext. options:" echog "Ext. options:"
echog " -c - only sign package(s) with checking" echog " -c - only sign package(s) with checking"
...@@ -60,6 +60,7 @@ while getopts :hfscuUdnoa:z opt; do ...@@ -60,6 +60,7 @@ while getopts :hfscuUdnoa:z opt; do
h) phelp; exit 0;; h) phelp; exit 0;;
s) SIGN=1 ;; s) SIGN=1 ;;
f) FORCE="--force" ;; f) FORCE="--force" ;;
# FIXME: handle SIGN separately
c) CHECKONLY=1 ; SIGN=1 ;; c) CHECKONLY=1 ; SIGN=1 ;;
u) UPLOADNOW=1 ; SIGN=1 ;; u) UPLOADNOW=1 ; SIGN=1 ;;
# U) UPLOADNOW=1 ; SIGN=1 ; UPDATES=1 ;; # U) UPLOADNOW=1 ; SIGN=1 ; UPDATES=1 ;;
...@@ -164,12 +165,6 @@ if [ -n "$NOSOURCE" ] ; then ...@@ -164,12 +165,6 @@ if [ -n "$NOSOURCE" ] ; then
exit $? exit $?
fi fi
# Упаковываем пакеты в src.rpm
# FIXME: -s can be in name... (but not in option!)
#LISTRPMARGS=
#LISTRPMARGS=${LISTRPMARGS/-m/}
#echo "@@ - $LISTRPMARGS - '$MENV'"
# set SPECDIR from LISTNAMES if empty # set SPECDIR from LISTNAMES if empty
[ -n "$SPECDIR" ] || set_specdir $LISTNAMES [ -n "$SPECDIR" ] || set_specdir $LISTNAMES
...@@ -191,6 +186,7 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then ...@@ -191,6 +186,7 @@ if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
else else
ssh $GIRARHOST build -b $BINARYREPO $BASENAME $TAG 2>&1 | tee $RPMDIR/uploaded.log.tmp ssh $GIRARHOST build -b $BINARYREPO $BASENAME $TAG 2>&1 | tee $RPMDIR/uploaded.log.tmp
fi fi
# FIXME: incorporate
cat $RPMDIR/uploaded.log.tmp | head -n2 | tail -n1 >> $RPMDIR/uploaded.log cat $RPMDIR/uploaded.log.tmp | head -n2 | tail -n1 >> $RPMDIR/uploaded.log
echo "run $TASKNUMBER task $BASENAME with tag $TAG at $GIRARHOST (in $BINARYREPO) at `date "+%c"`" >>$RPMDIR/uploaded.log echo "run $TASKNUMBER task $BASENAME with tag $TAG at $GIRARHOST (in $BINARYREPO) at `date "+%c"`" >>$RPMDIR/uploaded.log
rm -f $RPMDIR/uploaded.log.tmp rm -f $RPMDIR/uploaded.log.tmp
...@@ -294,8 +290,7 @@ fi ...@@ -294,8 +290,7 @@ fi
echog "Uploading to $GIRARHOST" echog "Uploading to $GIRARHOST"
check_key check_key
# TODO: rsync foo.src.rpm git.alt: && ssh git.alt build srpm foo.src.rpm
# git.alt build -b 4.0 srpm foo.src.rpm
rsync -vay --partial --progress $CHECKSUM \ rsync -vay --partial --progress $CHECKSUM \
-e ssh $LISTBUILT $GIRARHOST: && \ -e ssh $LISTBUILT $GIRARHOST: && \
echo "---------------------" && \ echo "---------------------" && \
...@@ -315,6 +310,7 @@ else ...@@ -315,6 +310,7 @@ else
ssh $GIRARHOST build -b $BINARYREPO $TASKLIST 2>&1 | tee $RPMDIR/uploaded.log.tmp ssh $GIRARHOST build -b $BINARYREPO $TASKLIST 2>&1 | tee $RPMDIR/uploaded.log.tmp
fi fi
# FIXME: parse and incorporate
cat $RPMDIR/uploaded.log.tmp | head -n2 | tail -n1 >> $RPMDIR/uploaded.log cat $RPMDIR/uploaded.log.tmp | head -n2 | tail -n1 >> $RPMDIR/uploaded.log
for i in $LISTBUILT ; do for i in $LISTBUILT ; do
...@@ -336,7 +332,6 @@ for i in $LISTNAMES ; do ...@@ -336,7 +332,6 @@ for i in $LISTNAMES ; do
echo " skipping for $i" echo " skipping for $i"
continue continue
fi fi
#DDIR=$BUILDROOT/${i/.spec/-buildroot}
# Hack about paths # Hack about paths
test -f "$i" && NAME=$i || NAME=$CURDIR/$i test -f "$i" && NAME=$i || NAME=$CURDIR/$i
build_rpms_name $NAME build_rpms_name $NAME
......
#!/bin/sh #!/bin/sh
# 2004-2009 (c) Etersoft www.etersoft.ru # 2004-2010 (c) Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru> # Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain # Public domain
# #
...@@ -151,17 +151,17 @@ phelp() ...@@ -151,17 +151,17 @@ phelp()
echog "$Descr" echog "$Descr"
echog "$Usage" echog "$Usage"
echog "Options:" echog "Options:"
echog "rpmgp [options] [system] pkgname - download src.rpm from 'system' repository to RPM/SRPMS and install it" echog "rpmgp [options] [system] pkgname - download src.rpm from 'system' repository"
echog " name - installed package name or src.rpm" echog " name - installed package name or src.rpm"
echog " system - name of system (ALT Linux by default if -a missed too)" echog " system - name of system (ALT Linux by default if -a missed)"
echog " -a search pkgname in all known repositories" echog " -a search pkgname in all known repositories"
echog " -b install packages needed for build (use sudo apt-get) (need spec not package name)"
echog " -c check if this package exists in the ALT Linux repository" echog " -c check if this package exists in the ALT Linux repository"
echog " -d download all matched packages" echog " -d download all matched packages"
echog " -g remote clone repo to USER/packages and clone it locally" echog " -g remote clone repo to USER/packages and clone it locally"
echog " -m migrate to gear from spec" echog " -m migrate to gear from spec/srpm"
echog "Ext. options:"
echog " -b install packages needed for build (use sudo apt-get) (need spec not package name)"
echog " -l list packages needed for build (in local pkg system notation) (experimental)" echog " -l list packages needed for build (in local pkg system notation) (experimental)"
echog " -n do not install after download, just download in current dir"
echog " -r refresh package list (download it again)" echog " -r refresh package list (download it again)"
echog " -s list all known remote repositories" echog " -s list all known remote repositories"
exit 0 exit 0
......
...@@ -59,7 +59,7 @@ prepare_aptconfig() ...@@ -59,7 +59,7 @@ prepare_aptconfig()
if [ -n "$ETERBUILD_APTREPO" ] ; then if [ -n "$ETERBUILD_APTREPO" ] ; then
cat <<EOF >>$OURSOURCES cat <<EOF >>$OURSOURCES
# Apply repo(s) from ETERBUILD_APTREPO variable # Apply repo(s) from external ETERBUILD_APTREPO variable
$ETERBUILD_APTREPO $ETERBUILD_APTREPO
EOF EOF
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment