Print

Print


Commit in SimDist/build on MAIN
util.inc.sh+11added 1.1
add a few shell utility functions

SimDist/build
util.inc.sh added at 1.1
diff -N util.inc.sh
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ util.inc.sh	18 Nov 2005 01:40:14 -0000	1.1
@@ -0,0 +1,11 @@
+# Change versions with letters and underscores to periods only.  Removes leading character.
+function func_dot_version()
+{
+  echo $1 | sed -e 's/[a-zA-Z]/\./g' -e 's/^\.//g' -e 's/_/./g'
+}
+
+# Change versions with letters and underscores to underscores only.  Removes leading underscore.
+function func_underscore_version()
+{
+  echo $1 | sed -e 's/[a-zA-Z]/_/g' -e 's/^_//g'
+}
CVSspam 0.2.8