pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
gopkgdep: remove
Module Name: pkgsrc-wip
Committed By: Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By: bsiegert
Date: Sat Jun 29 16:55:52 2024 +0200
Changeset: c7ad92722df76bfa5782e6ad682c7b2cac4e3879
Removed Files:
gopkgdep/files/gopkgdep.sh
gopkgdep/files/scan.sh
Log Message:
gopkgdep: remove
This is old and obsolete code, pre-modules.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c7ad92722df76bfa5782e6ad682c7b2cac4e3879
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
gopkgdep/files/gopkgdep.sh | 28 ----------------------------
gopkgdep/files/scan.sh | 15 ---------------
2 files changed, 43 deletions(-)
diffs:
diff --git a/gopkgdep/files/gopkgdep.sh b/gopkgdep/files/gopkgdep.sh
deleted file mode 100644
index 5a6d1dffe3..0000000000
--- a/gopkgdep/files/gopkgdep.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-#
-# output dependencies for a given Go package. Input is the GO_SRCPATH.
-
-ME=$(basename $0)
-
-if [ -z "$1" ]; then
- echo "Usage: $0 srcpath" >&2
- exit 1
-fi
-
-
-GOPATH=$(mktemp -d -t ${ME}) || exit 2
-export GOPATH
-OUT_TMPFILE=$(mktemp -t ${ME}-out) || exit 2
-
-echo "=> Downloading code for $1"
-go get -v "$1/..." 2> ${OUT_TMPFILE}
-
-echo "=> Repositories downloaded"
-awk '/\(download\)/ { print $1 }' ${OUT_TMPFILE}
-
-echo "=> Recursive dependencies (excluding stdlib)"
-go list -f '{{range .Deps}}{{.}}
-{{end}}' "$1/..." \
- | sort -u \
- | xargs go list -e -f '{{if not .Standard}}{{.ImportPath}}{{end}}' \
- | grep -v "^$1"
diff --git a/gopkgdep/files/scan.sh b/gopkgdep/files/scan.sh
deleted file mode 100644
index 3616ccaab7..0000000000
--- a/gopkgdep/files/scan.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-#
-# Scan a pkgsrc tree for GO_SRCPATH. To be run from the top-level dir.
-#
-# To optimize scan time, this only greps for files including go-package.mk.
-# If the include is in a Makefile.common, this will break.
-
-: ${MAKE:=bmake}
-
-for i in */*; do
- fgrep -q GO_SRCPATH $i/Makefile 2>/dev/null && {
- printf "$i\t"
- ${MAKE} -C $i show-var VARNAME=GO_SRCPATH 2>/dev/null
- }
-done
Home |
Main Index |
Thread Index |
Old Index