blob: fda8545df7845c617fae634c7210362fbc3d7206 (
plain)
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
|
#!/bin/sh
# Copyright (C) 1998 John H Terpstra, 2000 Klaus Singvogel
#
SPECDIR=${SPECDIR:-/usr/src/OpenLinux/SPECS}
SRCDIR=${SRCDIR:-/usr/src/OpenLinux/SOURCES}
USERID=`id -u`
GRPID=`id -g`
if ( z$1 == "zdevel" ) then
( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba; mv samba samba-PVERSION )
( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERIONS; mv samba-PVERSION samba )
else
( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba-PVERSION )
( cd ../../../.. ; tar czvf ${SRCDIR}/samba-PVERSION.tar.gz samba-PVERSION )
done
cp -a *.spec *.spec-lsb $SPECDIR
for src in *.patch; do
trg=`echo $src | sed 's;xxxxxx;PVERSION;'`
cp -a $src $SRCDIR/$trg
done
cd $SPECDIR
mv samba2.spec samba2.spec-nonlsb
ln samba2.spec-lsb samba2.spec
rpm -ba -v samba2.spec
|