source: trunk/debathena/scripts/debian-versions.sh @ 23748

Revision 23748, 538 bytes checked in by broder, 15 years ago (diff)
In debathena/scripts/debian-versions.sh, never exit, and only return an error code when there's an error.
  • Property svn:executable set to *
Line 
1#!/bin/sh
2DEBIAN_CODES="etch lenny squeeze dapper gutsy hardy intrepid jaunty"
3gettag() {
4    case "$1" in
5        etch)
6            echo "~debian4.0"
7            ;;
8        lenny)
9            echo "~debian5.0"
10            ;;
11        squeeze)
12            echo "~debian6.0~0.1"
13            ;;
14        dapper)
15            echo "~ubuntu6.06"
16            ;;
17        gutsy)
18            echo "~ubuntu7.10"
19            ;;
20        hardy)
21            echo "~ubuntu8.04"
22            ;;
23        intrepid)
24            echo "~ubuntu8.10"
25            ;;
26        jaunty)
27            echo "~ubuntu9.04~0.1"
28            ;;
29        versions)
30            echo "$DEBIAN_CODES"
31            ;;
32        *)
33            echo "error"
34            return 1
35            ;;
36    esac
37}
Note: See TracBrowser for help on using the repository browser.