cScm Configuration Daemon

cScm – is a tool to convert SCM configuration files into binary format and store its in shared memory for reading by cSvn-ui and cGit-ui CGI scripts

12 Commits   0 Branches   1 Tag
Index: bootstrap
===================================================================
--- bootstrap	(nonexistent)
+++ bootstrap	(revision 5)
@@ -0,0 +1,99 @@
+#!/bin/sh
+
+CWD=`pwd`
+
+program=`basename $0`
+
+usage() {
+  cat << EOF
+
+Usage: $program [options]
+
+Options:
+  -h,--help                  Display this message.
+  -d,--target-dest-dir=DIR   The target ROOTFS directory
+                             [default: DIR=/].
+
+EOF
+}
+
+TARGET_DEST_DIR=/
+ACDIR=usr/share/aclocal
+INCDIR=usr/include
+SYSTEM_ACDIR=
+SYSTEM_INCDIR=
+
+while [ 0 ] ; do
+  if [ "$1" = "-h" -o "$1" = "--help" ] ; then
+    usage
+    exit 0
+  elif [ "$1" = "-d" -o "$1" = "--target-dest-dir" ] ; then
+    if [ "$2" = "" ] ; then
+      echo -e "\n${program}: ERROR: --target-dest-dir is not specified.\n"
+      usage
+      exit 1
+    fi
+    TARGET_DEST_DIR="$2"
+    shift 2
+  elif [[ $1 == --target-dest-dir=* ]] ; then
+    TARGET_DEST_DIR="`echo $1 | cut -f2 -d'='`"
+    shift 1
+  else
+    if [ "$1" != "" ] ; then
+      echo -e "\n${program}: ERROR: Unknown argument: $1.\n"
+      usage
+      exit 1
+    fi
+    break
+  fi
+done
+
+if [ ! -d "${TARGET_DEST_DIR}" ] ; then
+  echo -e "\n${program}: ERROR: --target-dest-dir is not a directory.\n"
+  usage
+  exit 1
+fi
+
+#
+# Absolute path:
+#
+if [ "${TARGET_DEST_DIR:0:1}" != "/" ] ; then
+  TARGET_DEST_DIR=${CWD}/${TARGET_DEST_DIR}
+fi
+
+#
+# Remove last '/' char:
+#
+if [ "${TARGET_DEST_DIR: -1}" = "/" ] ; then
+  len=${#TARGET_DEST_DIR}
+  let "len = len - 1"
+  tmp="${TARGET_DEST_DIR:0:$len}"
+  TARGET_DEST_DIR=${tmp}
+fi
+
+SYSTEM_ACDIR="${TARGET_DEST_DIR}/${ACDIR}"
+SYSTEM_INCDIR="${TARGET_DEST_DIR}/${INCDIR}"
+
+
+aclocal --install -I m4 --force --system-acdir=${SYSTEM_ACDIR}
+autoheader --include=${SYSTEM_INCDIR}
+automake --foreign --add-missing --copy --force-missing
+autoconf --force
+
+#
+# Add 'cCgit Features' header to split help output:
+#
+cat >cscm-features <<_CGIT
+_ACEOF
+
+  cat <<\\_ACEOF
+
+cScm Features:
+_CGIT
+
+sed -i '/^[ ]*\-\-with\-controldir=DIR/ {
+r cscm-features
+N
+}' configure
+
+rm -f cscm-features

Property changes on: bootstrap
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property