source: dassbuild/trunk/usr/bin/dass_sign_rpm.sh@ 1251

Last change on this file since 1251 was 762, checked in by joergs, on Jun 12, 2009 at 6:24:00 PM

set keyword Id

  • Property svn:executable set to *
  • Property svn:keywords set to Id
File size: 308 bytes
Line 
1#!/bin/bash
2
3if [ $# -eq 0 ]; then
4 echo "usage: $0 RPMFILENAME"
5 exit 1
6fi
7
8echo -n "dass IT build password: "
9read PASSWORD
10
11for i in $*; do
12 echo $i
13 expect -c "spawn rpm --addsign $i" -c 'expect -ex "Enter pass phrase:"' -c "send $PASSWORD\n" -c 'expect "Pass phrase"' -c 'wait'
14 rpm --checksig $i
15done
16
Note: See TracBrowser for help on using the repository browser.