File: getsubst

package info (click to toggle)
python-escript 5.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 87,772 kB
  • ctags: 49,550
  • sloc: python: 585,488; cpp: 133,173; ansic: 18,675; xml: 3,283; sh: 690; makefile: 215
file content (25 lines) | stat: -rwxr-xr-x 710 bytes parent folder | download
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

#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" ;;
    "trusty") opf="trusty";;
    "utopic") opf="utopic";;
    "vivid") opf="vivid";;
    "stretch") opf="jessie";;
    "sid") opf="jessie";;
    *) echo "No file found" >&2; exit 1;;
esac
rm -f debian/substvars
ln debian/utils/subst/$opf.subst debian/substvars
echo scons/templates/${opf}