summaryrefslogtreecommitdiffstats
path: root/virtualization
diff options
context:
space:
mode:
authorVolker Uhrig2007-05-31 19:47:37 +0200
committerVolker Uhrig2007-05-31 19:47:37 +0200
commitcc93ac261725c4c5ed3e1007c232432823af1232 (patch)
tree2cd26f9d446409830c1fd68d72ce54063b2d72a0 /virtualization
parentsync with runvmware-v2 (diff)
downloadcore-cc93ac261725c4c5ed3e1007c232432823af1232.tar.gz
core-cc93ac261725c4c5ed3e1007c232432823af1232.tar.xz
core-cc93ac261725c4c5ed3e1007c232432823af1232.zip
Yes, we definitly love sed!
Fixed sed sepperator. git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1123 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'virtualization')
-rwxr-xr-xvirtualization/menulist-creator8
1 files changed, 4 insertions, 4 deletions
diff --git a/virtualization/menulist-creator b/virtualization/menulist-creator
index 00ede816..1cf424d3 100755
--- a/virtualization/menulist-creator
+++ b/virtualization/menulist-creator
@@ -53,7 +53,7 @@ for xml in *.xml;do
image=$(grep -i "<image_name param=\"" ${xml} | awk -F "\"" '{ print $2 }')
# Test if correct defined
- image_type=$(echo ${image}|sed 's/.*\.//')
+ image_type=$(echo ${image}|sed 's%.*\.%%')
if [ "${image_type}" != "vmdk" -a "${image_type}" != "vdi" ]; then
# TODO: Test
echo "PANIC, image is not correct defined in ${xml}."
@@ -130,14 +130,14 @@ for xml in *.xml;do
# get short image description
short_description=$(grep "short_description param=\"" ${xml}.utf |
- sed -e "s/&.*;/; /g" | awk -F "\"" '{print $2}')
+ sed -e "s%&.*;%; %g" | awk -F "\"" '{print $2}')
# if ${short_description} not defined use ${image}
short_description=${short_description:-"${image}"}
# Get the long image description
long_description=$(grep "long_description param=\"" ${xml}.utf |
- sed -e "s/&.*;/; /g" | awk -F "\"" '{print $2}')
+ sed -e "s%&.*;%; %g" | awk -F "\"" '{print $2}')
# Informations if we need for XDM
@@ -238,7 +238,7 @@ for xml in *.xml;do
# virtualmachine executable form template
sed -e "s/imagename=\"CHANGEIT\"/imagename=\"${image}\"/" \
- -e "s/displayname=\"CHANGEIT\"/displayname=\"${short_description}\"/" \
+ -e "s%displayname=\"CHANGEIT\"%displayname=\"${short_description}\"%" \
-e "s/vmostype=\"CHANGEIT\"/vmostype=\"${os}\"/" \
-e "s/network=\"CHANGEIT\"/network=\"${network}\"/" \
${templatevmware} \