]> https://gitweb.dealii.org/ - candi.git/commitdiff
candi: removed dorsal utilities
authorUwe Köcher <koecher@hsu-hamburg.de>
Mon, 2 Nov 2015 09:37:20 +0000 (10:37 +0100)
committerUwe Köcher <koecher@hsu-hamburg.de>
Mon, 2 Nov 2015 09:37:20 +0000 (10:37 +0100)
utilities/clean.sh [deleted file]
utilities/generate-author-list.sh [deleted file]
utilities/install-fenics.sh [deleted file]
utilities/test-package-usage.sh [deleted file]

diff --git a/utilities/clean.sh b/utilities/clean.sh
deleted file mode 100755 (executable)
index 5414277..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/usr/bin/env bash
-
-# This is a utility script to clean temporary files originating from
-# Emacs and elsewhere
-
-rm `find .. -name '*~' | xargs`
\ No newline at end of file
diff --git a/utilities/generate-author-list.sh b/utilities/generate-author-list.sh
deleted file mode 100755 (executable)
index 94de744..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-bzr log -n0 | grep 'committer:' | sed -e 's/^.*committer: //g' \
-| sed -e 's/<.*>//g' | sed 's/[ \t]*$//' \
-| sed -e 's/garth.*/Garth N. Wells/g' \
-| sed -e 's/gnw20.*/Garth N. Wells/g' \
-| sed -e 's/harish.*/Harish Narayanan/g' \
-| sed -e 's/hnarayan.*/Harish Narayanan/g' \
-| sed -e 's/ilmar.*/Ilmar Wilbers/g' \
-| sed -e 's/Joachim B Haga/Joachim B. Haga/g' \
-| sed -e 's/logg.*/Anders Logg/g' \
-| sort | uniq -c | sort -k 2,2n -r | gawk '{print $2" "$3" "$4}'
\ No newline at end of file
diff --git a/utilities/install-fenics.sh b/utilities/install-fenics.sh
deleted file mode 100755 (executable)
index a34c704..0000000
+++ /dev/null
@@ -1,141 +0,0 @@
-#!/usr/bin/env bash
-
-# Set default values of some useful variables
-export VERSION="1.0-beta"       # Latest released Dorsal version
-export PREFIX=${HOME}/local     # Default download/install location
-export ORIG_DIR=`pwd`           # Store original directory, so we can
-                               # return to it when finished
-
-# Colours for progress and error reporting
-BAD="\033[1;31m"
-GOOD="\033[1;32m"
-BOLD="\033[1m"
-
-### Define helper functions ###
-
-cecho() {
-    # Display messages in a specified colour
-    COL=$1; shift
-    echo -e "${COL}$@\033[0m"
-}
-
-default () {
-    # Export a variable, if it is not already set
-    VAR="${1%%=*}"
-    VALUE="${1#*=}"
-    eval "[[ \$$VAR ]] || export $VAR='$VALUE'"
-}
-
-# Make a directory name more readable by replacing homedir with ~
-prettify_dir() {
-   echo ${1/#$HOME\//~\/}
-}
-
-# Make a directory name entered with ~ for the homedir more portable
-unprettify_dir() {
-   echo ${1/#~\//$HOME\/}
-}
-
-# Fetch the latest released version of Dorsal
-fetch_dorsal() {
-    default TMPDIR=/tmp
-    cd ${TMPDIR}
-    cecho ${GOOD} "Fetching the FEniCS installer files"
-    wget -N http://launchpad.net/dorsal/trunk/${VERSION}/+download/dorsal-${VERSION}.tar.bz2
-    if [ -d "dorsal-${VERSION}" ]
-    then
-       rm -fr dorsal-${VERSION}
-    fi
-    tar -xjf dorsal-${VERSION}.tar.bz2
-    cd dorsal-${VERSION}
-}
-
-# Set up the build configuration (using some sensible defaults)
-cfg_dorsal() {
-    echo "PROJECT=FEniCS"               >  dorsal.cfg
-    echo "DOWNLOAD_PATH=${PREFIX}/src"  >> dorsal.cfg
-    echo "INSTALL_PATH=${PREFIX}"       >> dorsal.cfg
-    echo "PROCS=2"                      >> dorsal.cfg
-    echo "STABLE_BUILD=true"            >> dorsal.cfg
-}
-
-# Run the build script
-run_dorsal() {
-    ./dorsal.sh
-    cd ${ORIG_DIR}
-}
-
-
-while :
-do
-
-    SELECTION1="Install FEniCS"
-    SELECTION2="Change installation path [$(prettify_dir ${PREFIX})]"
-    SELECTION3="Exit installer"
-
-    if [ -x /usr/bin/zenity ]; then
-
-        SELECTION=`/usr/bin/zenity \
-                   --width 350 --height 225 \
-                   --title "FEniCS Installer" \
-                   --text "Welcome to the FEniCS Installer" \
-                   --list --radiolist \
-                   --column Select \
-                   --column Action \
-                     True  "${SELECTION1}" \
-                     False "${SELECTION2}" \
-                     False "${SELECTION3}"`
-
-        case ${SELECTION} in
-           "${SELECTION1}")
-                fetch_dorsal
-                cfg_dorsal
-               run_dorsal
-                ;;
-            "${SELECTION2}")
-               PREFIX=`zenity --title 'Select installation path' --file-selection --directory`
-                ;;
-            "${SELECTION3}")
-                cd ${ORIG_DIR}
-                exit 0
-                ;;
-            *)
-                echo "default"
-                ;;
-        esac
-
-    else
-
-        clear
-        echo "-------------------------------------------------------------------------------"
-        echo "                     Welcome to the FEniCS installer"
-        echo "-------------------------------------------------------------------------------"
-        echo ""
-        echo "          [1] ${SELECTION1}"
-        echo "          [2] ${SELECTION2}"
-        echo "          [3] ${SELECTION3}"
-        echo ""
-        echo "-------------------------------------------------------------------------------"
-        echo ""
-        echo -n "What would you like to do? [1-3]: "
-        read OPTION
-
-        case ${OPTION} in
-           1)  fetch_dorsal
-                cfg_dorsal
-               run_dorsal
-               ;;
-           2)  echo "Please enter your preferred installation path: ";
-               read PREFIX
-               PREFIX=$(unprettify_dir ${PREFIX})
-               ;;
-           3)  cd ${ORIG_DIR}
-               exit 0
-               ;;
-           *) ;;
-        esac
-        echo ""
-
-    fi
-
-done
diff --git a/utilities/test-package-usage.sh b/utilities/test-package-usage.sh
deleted file mode 100755 (executable)
index c2b1d21..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/usr/bin/env bash
-
-# This is a utility script to check whether the numerous defined
-# packages in Dorsal are used or not. It is used sporadically to cull
-# unused packages.
-
-# Colours for progress and error reporting
-BAD="\033[1;31m"
-GOOD="\033[1;32m"
-
-cecho() {
-    # Display messages in a specified colour
-    COL=$1; shift
-    echo -e "${COL}$@\033[0m"
-}
-
-for packagefull in ../FEniCS/packages/*.package
-do
-    package=`basename ${packagefull} .package`
-    if [[ "${package}" != *stable ]]
-    then
-       grep -q ${package} ../FEniCS/platforms/*/*.platform \
-           && cecho ${GOOD} ${package} "package is used." \
-           || cecho ${BAD} ${package} "package is not used."
-    fi
-done
\ No newline at end of file

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.