File: configure

package info (click to toggle)
svn-workbench 1.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,180 kB
  • sloc: python: 15,845; sh: 236; makefile: 11; ansic: 9
file content (30 lines) | stat: -rwxr-xr-x 649 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
#!/bin/bash
echo "Info: configure called with: $*"

case $( uname -s ) in
Darwin)
    echo "Use Mac application"
    exit 1
    ;;

Linux)
    CPE=$(cat /etc/system-release-cpe)

    case "$CPE" in
    cpe:/o:fedoraproject:fedora:*)
        echo "Info: Configuring for Fedora Linux system"
        rm -f Makefile
        ln -s Source/linux-rpmbuild.mak Makefile
        ;;
    *)
        echo "Error: no support for $CPE system. Please add support and contribute a patch to pysvn."
        exit 1
        ;;
    esac
    ;;

*)
    echo "Error: Unknown system $(uname -s). Please add support and contribute a patch to pysvn."
    exit 1
    ;;
esac