[Genabel-commits] r1960 - pkg/GenABEL-general/distrib_scripts
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Fri May 1 14:51:23 CEST 2015
Author: lckarssen
Date: 2015-05-01 14:51:22 +0200 (Fri, 01 May 2015)
New Revision: 1960
Modified:
pkg/GenABEL-general/distrib_scripts/getdeps.awk
Log:
Update the getdeps.awk script from the distrib_scripts to also list the packages in the "Imports:" field of the DESCRIPTION file as a dependency.
Modified: pkg/GenABEL-general/distrib_scripts/getdeps.awk
===================================================================
--- pkg/GenABEL-general/distrib_scripts/getdeps.awk 2015-05-01 12:19:28 UTC (rev 1959)
+++ pkg/GenABEL-general/distrib_scripts/getdeps.awk 2015-05-01 12:51:22 UTC (rev 1960)
@@ -17,7 +17,7 @@
}
-$1 ~ "Depends" || $1 ~ "Suggests" {
+$1 ~ "Depends" || $1 ~ "Suggests" || $1 ~ "Imports" {
requirements = 1
}
@@ -29,8 +29,8 @@
}
-$1 !~ "Depends" && $1 !~ "Suggests" && continued == 0 {
- # If we're not on a continued line and we don't have the two
+$1 !~ "Depends" && $1 !~ "Suggests" && $1 !~ "Imports" && continued == 0 {
+ # If we're not on a continued line and we don't have one of the
# keywords in the first field, this line doesn't contain a
# requirement.
requirements = 0
@@ -41,11 +41,12 @@
if (requirements || (requirements && continued)) {
# We're on a line with requirements or a continuation of such
# a line.
- if ($1 ~ "Depends" || $1 ~ "Suggests") {
- # Remove the words Depends: and Suggests: from the first
- # field, they're not package names
+ if ($1 ~ "Depends" || $1 ~ "Suggests" || $1 "Imports") {
+ # Remove the words Depends: etc. from the first field,
+ # they're not package names
gsub("Depends:", "", $1)
gsub("Suggests:", "", $1)
+ gsub("Imports:", "", $1)
}
for (i = 1; i <= NF; i++) {
More information about the Genabel-commits
mailing list