Magellan Linux

Contents of /trunk/mage-buildserver/buildserver-enter.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2836 - (show annotations) (download) (as text)
Fri Sep 19 13:01:29 2014 UTC (9 years, 7 months ago) by niro
File MIME type: application/x-sh
File size: 365 byte(s)
-using bash as login shell
1 #!/bin/bash
2
3 # get configuration
4 BUILDSERVER_CONFIG_DIR="/etc/mage-buildserver"
5 source ${BUILDSERVER_CONFIG_DIR}/buildserver.conf
6
7 source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh
8
9 RUNARCH="$1"
10 CMD="$2"
11
12 if [[ -z ${RUNARCH} ]]
13 then
14 echo "No arch given."
15 exit 1
16 fi
17
18 [[ -z ${CMD} ]] && CMD="/bin/bash"
19
20 runarch "${RUNARCH}" "${CMD}" || die "${RUNARCH} enter"

Properties

Name Value
svn:executable *