ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <at@altlinux.ru>
To: devel@lists.altlinux.org
Cc: Sergey V Turchin <zerg@altlinux.org>
Subject: [devel] kdesdk-3.5.7-alt1
Date: Wed, 12 Sep 2007 02:02:08 +0400
Message-ID: <20070911220208.GW6051@solemn.turbinal> (raw)

[-- Attachment #1: Type: text/plain, Size: 1485 bytes --]

> kdesdk-3.5.7-alt1
> 	/usr/src/tmp/kdesdk-buildroot/usr/bin/svnlastchange syntax OK
> 	/usr/src/tmp/kdesdk-buildroot/usr/bin/kde-build: line 839: syntax error near unexpected
> 	token `|'
> 	/usr/src/tmp/kdesdk-buildroot/usr/bin/kde-build: line 839: `	  |'
> 	RPM build errors:
> 	error: /bin/sh failed
> 	error: Failed to find Requires
> 	/bin/sh failed

Здесь находится скрипт, который исполняется через "#!/usr/bin/env bash",
поэтому раньше он не обрабатывался; а теперь корректно работает как
поиск интерпретатора, так и диспетчеризация типа (последнее всё ещё
возможно, в отличие от re-exec хаков на следующих строчках скрипта).

$ rpmpeek kdesdk-misc-3.5.7-alt1.i586.rpm head -1 ./usr/bin/kde-build
#! /usr/bin/env bash
$

В этом скрипте встроена pod документация открытым текстом после exit.
Шелл не понимает такой синтаксической конструкции, так как его парсер
не интерпретирует команду exit "без отсутпа" специальным образом.

$ rpmpeek kdesdk-misc-3.5.7-alt1.i586.rpm cat -n ./usr/bin/kde-build |egrep -m1 -C2 $'[0-9]\t='
   822  exit $err_no_error
   823  
   824  =head1 NAME
   825  
   826  kde-build - Updates and recompiles a tree of KDE modules
$

Zerg, я помню этот скрипт ещё когда был моложе, чем сейчас.
Если очень хочется сохранить документацию в скрипте as is,
то можно завернуть ее вот в такую конструкцию:

: <<'__EOF__'

(пустая строчка сверху обязательна)
(документация)
(пустая строчка снизу обязательна)

__EOF__

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2007-09-11 22:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-11 22:02 Alexey Tourbin [this message]
2007-09-12 10:14 ` Sergey V Turchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070911220208.GW6051@solemn.turbinal \
    --to=at@altlinux.ru \
    --cc=devel@lists.altlinux.org \
    --cc=zerg@altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git