|
@ -2,7 +2,7 @@ |
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
# |
|
|
# |
|
|
# Filename: lib/sde-wrapper.in |
|
|
# Filename: lib/sde-wrapper.in |
|
|
# Copyright (C) 2008 The OpenSDE Project |
|
|
|
|
|
|
|
|
# Copyright (C) 2008 - 2009 The OpenSDE Project |
|
|
# |
|
|
# |
|
|
# More information can be found in the files COPYING and README. |
|
|
# More information can be found in the files COPYING and README. |
|
|
# |
|
|
# |
|
@ -19,11 +19,11 @@ sde_wrapper_name() { |
|
|
|
|
|
|
|
|
# returns the description of the wrapper |
|
|
# returns the description of the wrapper |
|
|
sde_wrapper_desc() { |
|
|
sde_wrapper_desc() { |
|
|
sed -n -e 's,^#Description: \(.*\)$,\1,p' "$1" | head -n 1 |
|
|
|
|
|
|
|
|
sed -n -e 's,^#Description:[\t ]\+\(.*\)$,\1,p' "$1" | head -n 1 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# returns an space delimited list of aliases of a wrapper |
|
|
# returns an space delimited list of aliases of a wrapper |
|
|
sde_wrapper_aliases() { |
|
|
sde_wrapper_aliases() { |
|
|
sed -n -e 's,^#Alias: \([^ ]*\)$,\1,p' "$1" | tr '\n' ' ' | |
|
|
|
|
|
|
|
|
sed -n -e 's,^#Alias:[\t ]\+\(.*\) *$,\1,p' "$1" | tr '\n' ' ' | |
|
|
sed -e 's/^ *//' -e 's/ *$//' |
|
|
sed -e 's/^ *//' -e 's/ *$//' |
|
|
} |
|
|
} |