<commit_before>#!/bin/sh
# Copyright (c) 2009 The Open Source Geospatial Foundation.
# Licensed under the GNU LGPL.
# 
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details, either
# in the "LICENSE.LGPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/lgpl.html".
#
# About:
# =====
# This script installs beta packages and creates new submenu.
# Valid for Xubuntu 9.10
# 
# I believe menu descriptions have different paths and structure in 
# each Linux distribution. After some tests, I don't think the command
# "?package(name):needs..." and "update-menus" are enough to create
# a new submenu, so this script will have to be adapted in future
# versions of the live DVD.
# 
# INSTRUCTIONS:
# 
# Copy your beta software install script to the folder ./beta_software  
# Also create in that folder your .desktop file using
# the existing one as template. Your script should not create two .desktop files,
# only the one inside the folder ./beta_software
# Add a call to your install sh script here (under "for SCRIPT in \")
#
# Running:
# =======
#
# sudo ./install_beta.sh
#
# --------------- Start: ---------------------


echo "===================================================================="
echo "Starting installation of beta software..."
echo "===================================================================="
echo Disk Usage1:, main.sh, `df | grep "Filesystem" | sed -e "s/  */,/g"`, date
echo Disk Usage2:, main.sh, `df | grep " /$" | sed -e "s/  */,/g"`, `date`
	
cd beta_software

for SCRIPT in \
    ./install_ugvsigmobile.sh \
    ./install_qgis_mapserver.sh \
; do
  echo "===================================================================="
  echo Starting: $SCRIPT
  echo "===================================================================="
  sh $SCRIPT
  if [ $? -ne 0 ] ; then
    echo '!!! possible failure in '"$SCRIPT" >> /tmp/build_gisvm_error.log
  fi
  echo Finished: $SCRIPT
  echo
  # Prints in MB blocks now, -h might miss changes less than 1GB
  echo Disk Usage1:, $SCRIPT, `df -B 1M | grep "Filesystem" | sed -e "s/  */,/g"`, date
  echo Disk Usage2:, $SCRIPT, `df -B 1M | grep " /$" | sed -e "s/  */,/g"`, `date`
done


##
## Menu is now handled by install_desktop.sh ##

exit 0



# dead code:

# #################################################
# #################################################
# Do not edit from this point
# #################################################
# #################################################<commit_msg>differentiate script boundaries<commit_after>#!/bin/sh
# Copyright (c) 2009 The Open Source Geospatial Foundation.
# Licensed under the GNU LGPL.
# 
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 2.1 of the License,
# or any later version.  This library is distributed in the hope that
# it will be useful, but WITHOUT ANY WARRANTY, without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details, either
# in the "LICENSE.LGPL.txt" file distributed with this software or at
# web page "http://www.fsf.org/licenses/lgpl.html".
#
# About:
# =====
# This script installs beta packages and creates new submenu.
# Valid for Xubuntu 9.10
# 
# I believe menu descriptions have different paths and structure in 
# each Linux distribution. After some tests, I don't think the command
# "?package(name):needs..." and "update-menus" are enough to create
# a new submenu, so this script will have to be adapted in future
# versions of the live DVD.
# 
# INSTRUCTIONS:
# 
# Copy your beta software install script to the folder ./beta_software  
# Also create in that folder your .desktop file using
# the existing one as template. Your script should not create two .desktop files,
# only the one inside the folder ./beta_software
# Add a call to your install sh script here (under "for SCRIPT in \")


echo "--------------------------------------------------------------------"
echo "Starting installation of beta software..."
echo "--------------------------------------------------------------------"
echo Disk Usage1:, main.sh, `df | grep "Filesystem" | sed -e "s/  */,/g"`, date
echo Disk Usage2:, main.sh, `df | grep " /$" | sed -e "s/  */,/g"`, `date`
	
cd beta_software

for SCRIPT in \
    ./install_ugvsigmobile.sh \
    ./install_qgis_mapserver.sh \
; do
  echo "--------------------------------------------------------------------"
  echo Starting: $SCRIPT
  echo "--------------------------------------------------------------------"
  sh $SCRIPT
  if [ $? -ne 0 ] ; then
    echo '!!! possible failure in '"$SCRIPT" >> /tmp/build_gisvm_error.log
  fi
  echo Finished: $SCRIPT
  echo
  # Prints in MB blocks now, -h might miss changes less than 1GB
  echo Disk Usage1:, $SCRIPT, `df -B 1M | grep "Filesystem" | sed -e "s/  */,/g"`, date
  echo Disk Usage2:, $SCRIPT, `df -B 1M | grep " /$" | sed -e "s/  */,/g"`, `date`
done


##
## Menu is now handled by install_desktop.sh ##

exit 0



# dead code:

# #################################################
# #################################################
# Do not edit from this point
# #################################################
# #################################################
{'fraction_non_alphanumeric': 0.25749528867568955, 'fraction_numerical': 0.006167551824567415, 'mean_word_length': 3.1463068181818183, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4358698', 'n_tokens_mistral': 1679, 'n_tokens_neox': 1548, 'n_words': 678}