-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjeeves_features_list
More file actions
28 lines (22 loc) · 826 Bytes
/
jeeves_features_list
File metadata and controls
28 lines (22 loc) · 826 Bytes
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
#!/bin/bash
# **************************************************
# Give us a list of all our features in one space
# delimited line
# **************************************************
#Find the directory this script is located in
SOURCE="${BASH_SOURCE[0]}"
DIR="$( dirname "$SOURCE" )"
while [ -h "$SOURCE" ]
do
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
. $DIR/shflags/src/shflags
# Configure shflags
FLAGS_HELP="USAGE: $0 [flags] project"
DEFINE_string 'env' 'mir' 'Environment to execute the command in' 'e'
FLAGS "$@" || exit 1
eval set -- "${FLAGS_ARGV}"
drush @${FLAGS_env} features-list | sed "1d" | sed "s/\s\s\+/|/g" | cut -f 2 -d "|" | tr "\\n" " " | sed 's/ *$//g'