2 # SPDX-License-Identifier: GPL-2.0
4 # Script which clones and installs the latest pm-graph
5 # from http://github.com/intel/pm-graph.git
7 OUT
=`mktemp -d 2>/dev/null`
8 if [ -z "$OUT" -o ! -e $OUT ]; then
9 echo "ERROR: mktemp failed to create folder"
14 if [ -e "$OUT" ]; then
22 git clone http
://github.com
/intel
/pm-graph.git
$OUT/pm-graph
23 if [ ! -e "$OUT/pm-graph/sleepgraph.py" ]; then
24 echo "ERROR: pm-graph github repo failed to clone"
30 echo "INSTALLING PM-GRAPH"
33 echo "INSTALL SUCCESS"