From 539b9014a0be5ae3cca3859e0ed2acd5e8e80ea6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 27 Oct 2008 22:35:06 +0000 Subject: [PATCH] - no longer standalone Changed files: adapter.awk -> 1.413 --- adapter.awk | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/adapter.awk b/adapter.awk index c57cfd0..2db15a5 100644 --- a/adapter.awk +++ b/adapter.awk @@ -1745,14 +1745,20 @@ function replace_php_virtual_deps() # Load rpm macros # you should update the list also in adapter when making changes here function import_rpm_macros() { + # File with rpm groups + sourcedir = ENVIRON["_sourcedir"] + + if (!sourcedir) { + print "adapter.awk should not not be invoked directly, but via adapter script" > "/dev/stderr" + do_not_touch_anything = 1 + exit(1); + } + # get cvsaddress for changelog section # using rpm macros as too lazy to add ~/.adapterrc parsing support. _cvsmaildomain = ENVIRON["_cvsmaildomain"] _cvsmailfeedback = ENVIRON["_cvsmailfeedback"] - # File with rpm groups - sourcedir = ENVIRON["_sourcedir"] - prefix = ENVIRON["_prefix"] bindir = ENVIRON["_bindir"] sbindir = ENVIRON["_sbindir"] -- 2.44.0