File: makedist2.sh.in

package info (click to toggle)
rlog 1.4-4
  • links: PTS
  • area: main
  • in suites: buster, sid, stretch
  • size: 2,640 kB
  • ctags: 1,696
  • sloc: sh: 9,196; cpp: 1,601; makefile: 84
file content (29 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh

spec=1

# create distribution file
make dist

# create tar archive and signature
tarArchive=@PACKAGE@-@VERSION@.tgz
mv @PACKAGE@-@VERSION@.tar.gz $tarArchive
# let the user know why they're being asked for a passpharse
echo "Signing tar archive - enter GPG password";
gpg --detach-sign -a $tarArchive

# create rpms
cp $tarArchive /usr/src/packages/SOURCES
echo "Building signed RPM files - enter GPG password";
rpmbuild -ba --sign @PACKAGE@.spec

# move all distribution files to dist directory
mkdir dist
mv $tarArchive dist
mv $tarArchive.asc dist
mv /usr/src/packages/SRPMS/@PACKAGE@-@VERSION@-$spec.src.rpm dist
mv /usr/src/packages/RPMS/i586/@PACKAGE@-@VERSION@-$spec.i586.rpm dist

# cleanup
rm /usr/src/packages/SOURCES/$tarArchive