File: getsubst

package info (click to toggle)
python-escript 5.6-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 144,304 kB
  • sloc: python: 592,074; cpp: 136,909; ansic: 18,675; javascript: 9,411; xml: 3,384; sh: 738; makefile: 207
file content (28 lines) | stat: -rwxr-xr-x 809 bytes parent folder | download | duplicates (3)
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

#this bash script chooses the appropriate options file and subst variables for the current build arch

distr=`lsb_release -sc`

case "$distr" in
    "wheezy") opf="wheezy";;
#    "precise") opf="precise";;
#    "quantal") opf="quantal";;
#    "squeeze") opf="squeeze";;
#    "lucid") opf="lucid";;
#    "oneiric") opf="oneiric";;
#    "raring") opf="raring";;
#    "saucy" ) opf="saucy";;
    "jessie" ) opf="jessie" ;;
    "buster" ) opf="buster" ;;
    "trusty") opf="trusty";;
    "utopic") opf="utopic";;
    "vivid") opf="vivid";;
    "stretch") opf="jessie";;
    "bullseye") opf="bullseye";;
    "bookworm") opf="bullseye";;
    "sid") opf="bullseye";;
    *) echo "No file found" >&2; exit 1;;
esac
rm -f debian/substvars
ln debian/utils/subst/$opf.subst debian/substvars
echo scons/templates/${opf}