1*ff92ffe2SGeorge Liu#!/bin/bash
2*ff92ffe2SGeorge Liu#
3*ff92ffe2SGeorge Liu# config: 5 1
4*ff92ffe2SGeorge Liu# @brief: Move the ramoops data file to the dreport packaging.
5*ff92ffe2SGeorge Liu#
6*ff92ffe2SGeorge Liu
7*ff92ffe2SGeorge Liu. $DREPORT_INCLUDE/functions
8*ff92ffe2SGeorge Liu
9*ff92ffe2SGeorge Liudesc="Ramoops file"
10*ff92ffe2SGeorge Liu
11*ff92ffe2SGeorge Liufor path in ${optional_path}/*
12*ff92ffe2SGeorge Liudo
13*ff92ffe2SGeorge Liu    if [ -f $path ]; then
14*ff92ffe2SGeorge Liu        # Remove the file from path after successful copy
15*ff92ffe2SGeorge Liu        if add_copy_file "$path" "$desc"; then
16*ff92ffe2SGeorge Liu            rm "$path"
17*ff92ffe2SGeorge Liu        fi
18*ff92ffe2SGeorge Liu    fi
19*ff92ffe2SGeorge Liudone
20