Debian Codegraph @

buildrpm

raw
1 #!/bin/bash
2
3 set -e
4
5 cd ` dirname "$0" `
6 ver=`grep Version: mysqmail.spec | awk ' { print $2 } ' `
7 cd ..
8 echo "Compressing the MySQMail source code..."
9 tar --exclude mysqmail-0.4.4/.git -czf mysqmail-$ver.tar.gz mysqmail-0.4.4
10 rpmbuild -ta mysqmail-$ver.tar.gz