/[smeserver]/builds_bin/release_rpms
ViewVC logotype

Diff of /builds_bin/release_rpms

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.6 by gordonr, Fri Jun 30 00:18:07 2006 UTC Revision 1.7 by slords, Sat Dec 2 17:19:10 2006 UTC
# Line 4  UNSIGNED=$(rpm -K $@ | grep 'md5 OK' | s Line 4  UNSIGNED=$(rpm -K $@ | grep 'md5 OK' | s
4    
5  if [ -n "$UNSIGNED" ]  if [ -n "$UNSIGNED" ]
6  then  then
7      echo "The following RPMs are not signed:"      if [ -x $HOME/bin/signrpm ]
8      echo $UNSIGNED      then
9      echo "Please sign them now"          for rpm in $UNSIGNED
10            do
11                $HOME/bin/signrpm $rpm > /dev/null
12            done
13        else
14            echo "The following RPMs are not signed:"
15            echo $UNSIGNED
16            echo "Please sign them now"
17    
18      rpm --addsign $UNSIGNED || exit 1          rpm --addsign $UNSIGNED
19        fi
20    
21        UNSIGNED=$(rpm -K $@ | grep 'md5 OK' | sed -e 's/:.*//')
22        [ -n "$UNSIGNED" ] && exit 1
23  fi  fi
24    
25  for file in $@  for file in $@
# Line 21  do Line 32  do
32          *) TARGET=/builds/rpms/RPMS/$arch ;;          *) TARGET=/builds/rpms/RPMS/$arch ;;
33      esac      esac
34    
35      if [ -f $TARGET/$file ]      if [ -f $TARGET/$(basename $file) ]
36      then      then
37          echo "$TARGET/$file exists"          echo "$TARGET/$(basename $file) exists"
38          continue          continue
39      else      else
40          [ -d $TARGET ] && mkdir -p $TARGET          [ -d $TARGET ] && mkdir -p $TARGET
41            cp --preserve=timestamps $file $TARGET/$(basename $file)
         # XXX - FIXME - Force signing of RPMs before release  
         rpm -K $file  
         cp -a $file $TARGET/$(basename $file)  
42      fi      fi
43  done  done


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed