tmp001 7 gadi atpakaļ
vecāks
revīzija
bcdc3d3a56
3 mainītis faili ar 27 papildinājumiem un 19 dzēšanām
  1. 19 0
      project/functions/greetings_template.sh
  2. 0 19
      project/functions/hello.bash
  3. 8 0
      project/run.sh

+ 19 - 0
project/functions/greetings_template.sh

@@ -0,0 +1,19 @@
+# Functions to deal with greetings
+#
+# Written by Domingo Manubens-Gil
+#
+# Barcelona Supercomputing Centre / Earth Sciences Department (BSC-ES)
+# Created: December 4, 2015
+# Adapted:
+
+#######################################
+# Say Hello in English
+# Globals:
+# Arguments: 
+# None
+# Returns:
+# None
+#######################################
+function say_hello() {
+	echo "This is a template!"
+}

+ 0 - 19
project/functions/hello.bash

@@ -1,19 +0,0 @@
-  # Functions to deal with greetings
-  #
-  # Written by My_name
-  #
-  # Earth and Life Institute / Université catholique de Louvain (ELIC-UCL)
-  # Created: May 4, 2017
-  # Adapted:
- 
-  #######################################
-  # Say Hello in English
-  # Globals:
-  # Arguments: 
-  # None
-  # Returns:
-  # None
-  #######################################
-  function say_hello() {
-    echo "Hello world !"
-  }

+ 8 - 0
project/run.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# Load (source) the functions 
+. functions/greetings_template.sh
+
+# Say Hello World
+echo "####### Hello World ! #######"
+say_hello