From b2d5d69efacbaa542c43241f5af22257a78e5323 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Thu, 12 Jan 2017 01:38:43 +0000 Subject: comment tools scripts replace.sh --- tools/scripts/replace.sh | 1 + 1 file changed, 1 insertion(+) mode change 100644 => 100755 tools/scripts/replace.sh (limited to 'tools/scripts') diff --git a/tools/scripts/replace.sh b/tools/scripts/replace.sh old mode 100644 new mode 100755 index 8e393f0..e925e7d --- a/tools/scripts/replace.sh +++ b/tools/scripts/replace.sh @@ -1,5 +1,6 @@ #!/bin/sh +# find and replace string on files folder=$1 oldstring=$2 newstring=$3 -- cgit 1.4.1-2-gfad0 From 028414affd22a1ae57b5024d390c856caf7ae44a Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Sun, 15 Jan 2017 03:24:51 +0000 Subject: added script to update ports repo --- tools/scripts/autoport.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tools/scripts/autoport.sh (limited to 'tools/scripts') diff --git a/tools/scripts/autoport.sh b/tools/scripts/autoport.sh new file mode 100644 index 0000000..178b9d3 --- /dev/null +++ b/tools/scripts/autoport.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +# Root Directory +DIR=$(dirname "$PWD"); + +DIR_CONF=$DIR"/conf" +COL_DIR=$DIR"/c9-ports/" + +#rm ck4up.conf +for port in ${COL_DIR}*/ ; do + + echo "Checking port $port" + # (cd $port && git clean -f -d . ) + # prtwash -p -s $port + prtverify -m clean-repo $port + + #echo "${port}Pkgfile;" + #source ${port}Pkgfile; + + #echo "$name md5 ${source[0]} @TAR@" >> ck4up.conf +done + +#portspage . > $DIR/ports.html +httpup-repgen $COL_DIR -- cgit 1.4.1-2-gfad0 From 6e6c7bee0bb353f225ed6fab8aa29e2131b9c5e9 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Fri, 20 Jan 2017 21:19:27 +0000 Subject: tools scripts help ports --- tools/scripts/autoport.sh | 2 +- tools/scripts/pkgmk-test.conf | 38 ++++++++++++++++++++++++++++++++++++++ tools/scripts/pkgmk-test.sh | 5 +++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 tools/scripts/pkgmk-test.conf create mode 100644 tools/scripts/pkgmk-test.sh (limited to 'tools/scripts') diff --git a/tools/scripts/autoport.sh b/tools/scripts/autoport.sh index 178b9d3..9965936 100644 --- a/tools/scripts/autoport.sh +++ b/tools/scripts/autoport.sh @@ -20,5 +20,5 @@ for port in ${COL_DIR}*/ ; do #echo "$name md5 ${source[0]} @TAR@" >> ck4up.conf done -#portspage . > $DIR/ports.html +portspage --title=c9-ports . > index.html httpup-repgen $COL_DIR diff --git a/tools/scripts/pkgmk-test.conf b/tools/scripts/pkgmk-test.conf new file mode 100644 index 0000000..2336685 --- /dev/null +++ b/tools/scripts/pkgmk-test.conf @@ -0,0 +1,38 @@ +# +# /etc/pkgmk.conf: pkgmk(8) configuration +# + +export CFLAGS="-O2 -march=x86-64" +export CXXFLAGS="${CFLAGS}" + +export MAKEFLAGS="-j4" + +case ${PKGMK_ARCH} in + "64"|"") + ;; + "32") + export CFLAGS="${CFLAGS} -m32" + export CXXFLAGS="${CXXFLAGS} -m32" + export LDFLAGS="${LDFLAGS} -m32" + export PKG_CONFIG_LIBDIR="/usr/lib32/pkgconfig" + ;; + *) + echo "Unknown architecture selected! Exiting." + exit 1 + ;; +esac + + PKGMK_SOURCE_MIRRORS=(https://ports.c9.core/distfiles/) +# PKGMK_SOURCE_DIR="$PWD" +# PKGMK_PACKAGE_DIR="$PWD" +# PKGMK_WORK_DIR="$PWD/work" +# PKGMK_DOWNLOAD="no" +# PKGMK_IGNORE_FOOTPRINT="no" +# PKGMK_IGNORE_NEW="no" +# PKGMK_NO_STRIP="no" +# PKGMK_DOWNLOAD_PROG="wget" +# PKGMK_WGET_OPTS="" +# PKGMK_CURL_OPTS="" +# PKGMK_COMPRESSION_MODE="gz" + + diff --git a/tools/scripts/pkgmk-test.sh b/tools/scripts/pkgmk-test.sh new file mode 100644 index 0000000..5509ac2 --- /dev/null +++ b/tools/scripts/pkgmk-test.sh @@ -0,0 +1,5 @@ +#!/bin/bash +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +CONF=${DIR}/pkgmk-test.conf + +fakeroot pkgmk -cf $CONF -d $1 -- cgit 1.4.1-2-gfad0