File: update-buildsystem

package info (click to toggle)
discover 2.1.2-8
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 6,248 kB
  • sloc: sh: 8,115; ansic: 7,275; xml: 1,809; makefile: 732
file content (42 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (9)
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
42
#!/bin/sh

#
# This script was included to make easier to update the build system
#

REPO="svn+ssh://svn.debian.org/svn/pkg-discover/"


function sync {

    local MODULE=$(svn info | grep URL | awk -F': ' '{ print $2 }' | sed 's,svn.*pkg-discover/,,g' || echo "ERROR: You need to run it inside a checkout!" && exit 1)
    local EXPORT="$1-$(date +%F)"

    if [ -e $EXPORT ]; then
	echo "ERROR: Cannot export to $EXPORT because it's already exist!"
	exit 1
    fi

    svn export $2 $EXPORT
    svn_load_dirs $REPO $MODULE/$1 $EXPORT
}

case $1 in
    buildtools)
	sync buildtools svn://svn.progeny.com/tools/buildtools/branches/libtool-update
    ;;
    doctools)
	sync doctools svn://svn.progeny.com/tools/doctools/trunk
    ;;
    portability)
	sync portability svn://svn.progeny.com/tools/portability/trunk
    ;;
    all)
	$0 buildtools
	$0 doctools
	$0 portability
    	;;
    *)
	echo "Usage: $0 buildtools|doctools|portability|all"
	exit 1
esac