From ac230fb2d0bc54cf401156de11fdf44802f13b43 Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Wed, 4 Apr 2007 16:01:18 +0000 Subject: minor fixes git-svn-id: http://svn.openslx.org/svn/openslx/trunk@861 95ad53e4-c205-0410-b2fa-d234c58c8868 --- virtualisierung/menulist-creator | 62 ++++++++++++---------- .../templates/Vorlage_VMwareImageAdministrator.xml | 2 +- 2 files changed, 36 insertions(+), 28 deletions(-) diff --git a/virtualisierung/menulist-creator b/virtualisierung/menulist-creator index a492789c..2a4a97ad 100755 --- a/virtualisierung/menulist-creator +++ b/virtualisierung/menulist-creator @@ -22,11 +22,12 @@ vmdir="." && cd ${vmdir} # File for dektopentrys -#TODO: where to put? -desktopentry="/todø/fuck" +#TODO: where to put? temporary test file, we should delete it or move it +# later, else there isnt a valid entryfile till this script is finished +desktopentry="${vmdir}/desktopentrys" # template for runvmware -templatevmware="./templates/runvmware-v2" +templatevmware="${vmdir}/templates/runvmware-v2" # Take all xml files and work with them @@ -49,8 +50,8 @@ for xml in *.xml;do image=`grep -i "> isnt nice for so much lines echo "Desktop entry for ${image}" >> ${desktopentry} echo "[Desktop Entry]" >> ${desktopentry} echo "X-SuSE-translate=true" >> ${desktopentry} echo "Encoding=UTF-8" >> ${desktopentry} - echo "Type=XSession" >> ${meulist} + echo "Type=XSession" >> ${desktopentry} #TODO: Fix path echo "Exec=/path/to/the/execfile/${image}" >> ${desktopentry} echo "Name=${short_description}" >> ${desktopentry} echo "Comment=${comment}" >> ${desktopentry} - #TODO: I dont like SLXGrp as variable herein, why we need it here? echo "SLXGrp=${pools}" >> ${desktopentry} echo "XDM=${xdm}" >> ${desktopentry} + #TODO: I dont like SLXGrp as variable herein, why we need it here? + #echo "SLXGrp=${pools}" >> ${desktopentry} + #TODO: do we need XDM configuration? -> Chemie pool + #echo "XDM=${xdm}" >> ${desktopentry} echo "" >> ${desktopentry} fi ################################################################################ -## TODO: remember default/ chemie/ option +## TODO: remember default/ chemie/ option (desktopentrys! and runfiles) ## delete old desktop list ## fucking pools/directory hirarchy... test it with running script and find ## that way the error ################################################################################ - # If we have vmware - if [ ${vm} = "vmware" ]; then + # If we have vmware, build execute from template + if [ "${vm}" = "vmware" ]; then sed -e "s/imagename=\"CHANGEIT\"/imagename=\"${image}\"/" \ - -e "s/displayname=\"CHANGEIT\"/displayname=\"${short_description}\"" \ - -e "s/vmostype=\"CHANGEIT\"/vmostype=\"${os}\"" \ - -e "s/network=\"CHANGEIT\"/network=\"${network}\"" \ + -e "s/displayname=\"CHANGEIT\"/displayname=\"${short_description}\"/" \ + -e "s/vmostype=\"CHANGEIT\"/vmostype=\"${os}\"/" \ + -e "s/network=\"CHANGEIT\"/network=\"${network}\"/" \ ${templatevmware} \ - > runscripts/${i}/${image}.runvmware + > ${vmdir}/runscripts/${i}/${image}.runvmware # if we have virtualbox, can only be vbox cause checked above else diff --git a/virtualisierung/templates/Vorlage_VMwareImageAdministrator.xml b/virtualisierung/templates/Vorlage_VMwareImageAdministrator.xml index b076e36a..ad05dfb4 100755 --- a/virtualisierung/templates/Vorlage_VMwareImageAdministrator.xml +++ b/virtualisierung/templates/Vorlage_VMwareImageAdministrator.xml @@ -33,7 +33,7 @@ #Description: as xdm menu? If yes "true", else "false" - + -- cgit v1.2.3-55-g7522