Skip to content

Commit

Permalink
Added version 4.8.28
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Cao-Berg committed May 3, 2022
1 parent d25680d commit a8db8fe
Show file tree
Hide file tree
Showing 6 changed files with 113 additions and 0 deletions.
14 changes: 14 additions & 0 deletions 4.8.28/Singularity
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Bootstrap: docker
From: alpine:edge

%labels
AUTHOR icaoberg
EMAIL [email protected]
SUPPORT [email protected]
REPOSITORY http://gitub.com/pscedu/singularity-mc
COPYRIGHT Copyright © 2021-2022 Pittsburgh Supercomputing Center. All Rights Reserved.
VERSION 4.8.28

%post
apk update
apk add mc
19 changes: 19 additions & 0 deletions 4.8.28/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Copyright © 2021-2022 Pittsburgh Supercomputing Center.
# All Rights Reserved.

IMAGE=singularity-mc-4.8.28.sif
DEFINITION=Singularity

if [ -f $IMAGE ]; then
rm -fv $IMAGE
fi

sudo singularity build $IMAGE $DEFINITION

if [ -f $IMAGE ]; then
exit 0
else
exit 1
fi
18 changes: 18 additions & 0 deletions 4.8.28/mc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

VERSION=4.8.28
PACKAGE=mc
TOOL=$PACKAGE
DIRECTORY=$(dirname $0)

STORAGES=(/ocean /bil /hive /local)

OPTIONS=""
for STORAGE in "${STORAGES[@]}"
do
if [ -d "$STORAGE" ]; then
OPTIONS=$OPTIONS" -B $STORAGE"
fi
done

singularity exec $OPTIONS $DIRECTORY/singularity-$PACKAGE-$VERSION.sif $TOOL "$@"
38 changes: 38 additions & 0 deletions 4.8.28/modulefile.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
--
-- mc 4.8.28 modulefile
--
-- "URL: https://www.psc.edu/resources/software"
-- "Category: Other"
-- "Description: Midnight Commander (also known as mc) is a free cross-platform orthodox file manager and a clone of Norton Commander."

whatis("Name: mc")
whatis("Version: 4.8.28")
whatis("Category: Other")
whatis("Description: Midnight Commander (also known as mc) is a free cross-platform orthodox file manager and a clone of Norton Commander.")

help([[
GNU Midnight Commander is a visual file manager, licensed under GNU General Public License and therefore qualifies as Free Software. It's a feature rich full-screen text mode application that allows you to copy, move and delete files and whole directory trees, search for files and run commands in the subshell. Internal viewer and editor are included.
To load the module, type
> module load mc/4.8.28
To unload the module, type
> module unload mc/4.8.28
Documentation
-------------
For help, type
> mc --help
Tools included in this module are
* mc
]])

local package = "mc"
local version = "4.8.28"
local base = pathJoin("/opt/packages",package,version)
prepend_path("PATH", base)
19 changes: 19 additions & 0 deletions 4.8.28/rbuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Copyright © 2021-2022 Pittsburgh Supercomputing Center.
# All Rights Reserved.

IMAGE=singularity-mc-4.8.28.sif
DEFINITION=Singularity

if [ -f $IMAGE ]; then
rm -fv $IMAGE
fi

singularity build --remote $IMAGE $DEFINITION

if [ -f $IMAGE ]; then
exit 0
else
exit 1
fi
5 changes: 5 additions & 0 deletions 4.8.28/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

tree .

singularity exec singularity-mc-4.8.28.sif mc --help

0 comments on commit a8db8fe

Please sign in to comment.