소스 검색

Update project

tmp001 7 년 전
부모
커밋
bcdc3d3a56
3개의 변경된 파일27개의 추가작업 그리고 19개의 파일을 삭제
  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