File: _obs.sh

package info (click to toggle)
ladvd 1.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,264 kB
  • sloc: ansic: 11,170; sh: 189; makefile: 183
file content (25 lines) | stat: -rwxr-xr-x 705 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/env bash

[ -n "${BASE}" ] || . scripts/_init.sh
[ -f ${RELEASE}/*tar.gz ] || . scripts/_tarball.sh

# create osc repository
mkdir ${RELEASE}/osc.$$
cd ${RELEASE}/osc.$$
osc checkout home:sten-blinkenlights
mv home\:sten-blinkenlights ${RELEASE}/osc
rm -rf ${RELEASE}/osc.$$

cp ${RELEASE}/*.tar.gz ${RELEASE}/osc/${NAME}-unstable
cp ${BASE}/rpm/* ${RELEASE}/osc/${NAME}-unstable

[ -d ${RELEASE}/debian_osc ] || return
for flavour in "" "-unstable" "-static"; do
    cp ${RELEASE}/debian_osc/${NAME}${flavour}_*dsc \
	${RELEASE}/osc/${NAME}${flavour}/${NAME}.dsc
    cp ${RELEASE}/debian_osc/${NAME}${flavour}_*debian.tar.gz \
	${RELEASE}/osc/${NAME}${flavour}/debian.tar.gz
done

cd ${BASE}