Magellan Linux

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2727 - (hide annotations) (download) (as text)
Sun Aug 10 19:29:27 2014 UTC (10 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 363 byte(s)
-let the use override the default enter cmd
1 niro 2725 #!/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 niro 2727 CMD="$2"
11    
12 niro 2726 if [[ -z ${RUNARCH} ]]
13     then
14     echo "No arch given."
15     exit 1
16     fi
17 niro 2725
18 niro 2727 [[ -z ${CMD} ]] && CMD="/bin/sh"
19    
20     runarch "${RUNARCH}" "${CMD}" || die "${RUNARCH} enter"

Properties

Name Value
svn:executable *