mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
Adding developer mode option.
This commit is contained in:
parent
40e7834bb9
commit
6473085645
@ -1,14 +1,25 @@
|
||||
#!/bin/sh
|
||||
# Copyright (C) 1998 John H Terpstra, 2000 Klaus Singvogel
|
||||
#
|
||||
SPECDIR=/usr/src/OpenLinux/SPECS
|
||||
SRCDIR=/usr/src/OpenLinux/SOURCES
|
||||
SPECDIR=${SPECDIR:-/usr/src/OpenLinux/SPECS}
|
||||
SRCDIR=${SRCDIR:-/usr/src/OpenLinux/SOURCES}
|
||||
USERID=`id -u`
|
||||
GRPID=`id -g`
|
||||
|
||||
( cd ../../../.. ; chown -R ${USERID}.${GRPID} ${SRCDIR}/samba )
|
||||
( cd ../../../.. ; tar czvf ${SRCDIR}/samba.tar.gz samba-PVERSIONPRELEASE )
|
||||
cp -a *.spec $SPECDIR
|
||||
cp -a *.patch smb.* samba.* make* find* convert* updates* $SRCDIR
|
||||
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
|
||||
rpm -ba -v samba3.spec
|
||||
mv samba2.spec samba2.spec-nonlsb
|
||||
ln samba2.spec-lsb samba2.spec
|
||||
rpm -ba -v samba2.spec
|
||||
|
Loading…
Reference in New Issue
Block a user