summaryrefslogtreecommitdiff
path: root/school/node_modules/node-forge/build-setup
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-10 14:54:04 +0100
committerMinteck <contact@minteck.org>2023-01-10 14:54:04 +0100
commit99c1d9af689e5325f3cf535c4007b3aeb8325229 (patch)
treee663b3c2ebdbd67c818ac0c5147f0ce1d2463cda /school/node_modules/node-forge/build-setup
parent9871b03912fc28ad38b4037ebf26a78aa937baba (diff)
downloadpluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.tar.gz
pluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.tar.bz2
pluralconnect-99c1d9af689e5325f3cf535c4007b3aeb8325229.zip
Update - This is an automated commit
Diffstat (limited to 'school/node_modules/node-forge/build-setup')
-rwxr-xr-xschool/node_modules/node-forge/build-setup46
1 files changed, 46 insertions, 0 deletions
diff --git a/school/node_modules/node-forge/build-setup b/school/node_modules/node-forge/build-setup
new file mode 100755
index 0000000..5c3866e
--- /dev/null
+++ b/school/node_modules/node-forge/build-setup
@@ -0,0 +1,46 @@
+#!/bin/sh
+#
+# This shell script sets up the software to be built using 'make'. In
+# order to perform a build from a fresh source tree, do the following:
+#
+# 1. ./build-setup
+# 2. make
+#
+# If you don't want ./configure to be run automatically, you can do
+# the following: ./build-setup -s
+
+# Process command line options
+SKIP_CONFIGURE=0
+for arg in "$*"
+do
+ case $arg in
+ "-s" | "--setup-only" ) SKIP_CONFIGURE=1 ;;
+ esac
+done
+
+# Check and add potential aclocal dirs
+MAYBE_AC_DIRS="
+ /usr/local/share/aclocal
+ /opt/local/share/aclocal
+ /sw/share/aclocal
+ "
+ACDIRS="-I m4"
+for dir in $MAYBE_AC_DIRS; do
+ if test -d $dir; then
+ ACDIRS="$ACDIRS -I $dir"
+ fi
+done
+
+# Run aclocal on the set of local ac scripts
+cd setup
+aclocal $ACDIRS
+# Generate the configure script
+autoconf && mv configure ..
+cd ..
+
+# Run the configure script if "-s" isn't a command line option
+if [ $SKIP_CONFIGURE -eq 0 ]; then
+ # Run the configure script in default development mode
+ ./configure $*
+fi
+