commit - 893d4d5be7d6b47b3e452c2406af83c33d841627
commit + db1540d9f26c7f85b8930effd962726255d49b43
blob - dc163f6818527bfab0500a154f870befe5c3091c
blob + ec62d4f59c2b52338db757c3c8fad69baf68e0e1
--- nwpg.sh
+++ nwpg.sh
# the algorithm, the code, the documentation,
# i.e. main.algo, main.c, main.doc
-mkdir -p $HOME/hack/$1 ;
touch $HOME/hack/$1/main.{,doc,algo} ;
#
# i.e. either C, Python, Rust, &tc.
#
+case $1 in
+ C || c )
+ file_ext="c" ;;
+ Python || Py || py )
+ file_ext="py" ;;
+ Rust )
+ file_ext=""
+ echo "Rust project" ;;
+ * )
+ file_ext="" ;;
+esac
+