diff options
author | John Terpstra <jht@samba.org> | 2001-04-28 21:34:43 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 2001-04-28 21:34:43 +0000 |
commit | b7b452625c3cf5f961cc8e53c02775b2b195c02c (patch) | |
tree | 856a7df077861a56f8aaff2d4007bcac25f6b8bd /packaging/Caldera | |
parent | 668e1b55268374f72e3100b5cc6ae35aa179c062 (diff) | |
download | samba-b7b452625c3cf5f961cc8e53c02775b2b195c02c.tar.gz samba-b7b452625c3cf5f961cc8e53c02775b2b195c02c.tar.bz2 samba-b7b452625c3cf5f961cc8e53c02775b2b195c02c.zip |
Adding developer mode option.
(This used to be commit 6473085645cc0ecfcb982f6e40bfde606424dc7b)
Diffstat (limited to 'packaging/Caldera')
-rw-r--r-- | packaging/Caldera/OpenLinux/makerpms.sh.tmpl | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl index 8f7b06235b..fda8545df7 100644 --- a/packaging/Caldera/OpenLinux/makerpms.sh.tmpl +++ b/packaging/Caldera/OpenLinux/makerpms.sh.tmpl @@ -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 |