tBench.sh - dotg - a bitreich fosdem adventure
 (HTM) git clone https://git.parazyd.org/dotg
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       tBench.sh (1789B)
       ---
            1 specific_bench() {
            2         item="$1"
            3 
            4         case "$item" in
            5                 Smartphone)
            6                         if [ -f "$inventory/.newmessage" ];
            7                         then
            8                                 _msg "Your friend texted you:
            9                                         »Here is something for you.«
           10                                         He attached a music file:"
           11 
           12                                 parapluutje
           13 
           14                                 _msg "A small package with a parachute is slowly
           15                                         landing next to you. You open it."
           16 
           17                                 ritem="$(printf "Beers\nChocolate_Milks\nBlack_dildo\nGoogle_Ad_coupons\nDeveloping_NodeJS\nAlso_sprach_Zarathustra\nThe_Birth_of_Tragedy\nSiddharta\nBaby_and_child_care\nThe_C_Programming_Language\nTo_Kill_a_Mockingbird\nSex_drugs_and_cocoa_puffs\nFight_Club\nCheese\nCocaine\n" | shuf | head -n 1)"
           18 
           19                                 _msg "Your friend sent you $ritem. You are
           20                                 thankful in the cold."
           21 
           22                                 printf 1 > "$inventory/$ritem"
           23                                 rm -f "$inventory/.newmessage"
           24                         else
           25                                 _msg "Noone called you. You are alone in this
           26                                 world."
           27                         fi
           28                         ;;
           29 
           30                 Chocolate_Milks)
           31                         _msg "You drink a chocolate milk."
           32                         ;;
           33 
           34                 Black_dildo)
           35                         _msg "You wonder what the people at the party are doing."
           36                         ;;
           37 
           38                 Google_Ad_coupons)
           39                         _msg "You go online and set up some Trump ads."
           40                         ;;
           41 
           42                 Developing_NodeJS)
           43                         _msg "You make a nice fire from this book. This is heartwarming."
           44                         ;;
           45 
           46                 Also_sprach_Zarathustra)
           47                         _msg "By reading this book your heart gets warm."
           48                         ;;
           49 
           50                 The_Birth_of_Tragedy)
           51                         _msg "You feel the same as the book."
           52                         ;;
           53 
           54                 Siddharta)
           55                         _msg "Enlightenment is close or just your cold death."
           56                         ;;
           57 
           58                 Baby_and_child_care)
           59                         _msg "Interesting."
           60                         ;;
           61 
           62                 The_C_Programming_Language)
           63                         _msg "You write some patches for your friend's software and commit them."
           64                         ;;
           65 
           66                 To_Kill_a_Mockingbird)
           67                         _msg "What a nice fire for your hands."
           68                         ;;
           69 
           70                 Sex_drugs_and_cocoa_puffs)
           71                         _msg "How about some cocaine?"
           72                         ;;
           73 
           74                 Fight_Club)
           75                         _msg "He told me about it!"
           76                         ;;
           77 
           78         esac
           79 }