File: makeSbox

package info (click to toggle)
sbox-dtc 1.07-8
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 232 kB
  • ctags: 99
  • sloc: ansic: 865; sh: 368; makefile: 88
file content (41 lines) | stat: -rwxr-xr-x 1,259 bytes parent folder | download | duplicates (2)
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
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
#
# Welcome to the mysqmail debian package install maker !
# Maintainer of deb package: Thomas GOIRAND <thomas@goirand.fr>
# please do not ship with your packages
# this is only a small coder tool...
#

VERS=`cat version`
RELS=`cat release`
VERSION=$VERS"-"$RELS
BSDVERSION=$VERS"."$RELS

PKG_NAME=sbox-dtc

# Make che cvs snap and copy to ftp
./makeCVSsnap
cp "CVS_"$PKG_NAME"_"$VERSION"_all.tar.gz" "/home/ftp/pub/"$PKG_NAME"/cvs"

# Make the debian archive
dpkg-buildpackage -rfakeroot -us -uc

# Copy debian archive to repository
mkdir -p /home/ftp/debian/dists/stable/main/binary-i386/
cp ../$PKG_NAME"_"$VERSION"_i386.deb" /home/ftp/debian/dists/stable/main/binary-i386/
curdir=`pwd`
cd /home/ftp/debian
dpkg-scanpackages dists/stable/main/binary-i386 /dev/null | gzip -9 >dists/stable/main/binary-i386/Packages.gz
cd $curdir

# Copy debian archive to ftp
cp ../$PKG_NAME"_"$VERSION"_i386.deb" /home/ftp/pub/"$PKG_NAME"/debian

# Make and copy BSD archives to ftp
./makeBSD
#echo  cp $PKG_NAME"BSDport-"$VERSION".tar.gz" /home/ftp/pub/"$PKG_NAME"/bsd
#pwd
cp -v $PKG_NAME"BSDport-"$BSDVERSION".tar.gz" /home/ftp/pub/"$PKG_NAME"/bsd

mkdir -p "/home/ftp/pub/"$PKG_NAME"/bsd"
cp -v $PKG_NAME-"$BSDVERSION".tar.gz "/home/ftp/pub/"$PKG_NAME"/bsd"