From: "Jorge Manuel B. S. Vicetto" <jmbsvicetto@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/catalyst:master commit in: targets/support/
Date: Sun, 30 Sep 2012 22:29:51 +0000 (UTC) [thread overview]
Message-ID: <1349044106.17b34223a4afc1f070ac2fb9bdfb51e47c03db61.jmbsvicetto@gentoo> (raw)
commit: 17b34223a4afc1f070ac2fb9bdfb51e47c03db61
Author: Jorge Manuel B. S. Vicetto (jmbsvicetto) <jmbsvicetto <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 30 22:27:29 2012 +0000
Commit: Jorge Manuel B. S. Vicetto <jmbsvicetto <AT> gentoo <DOT> org>
CommitDate: Sun Sep 30 22:28:26 2012 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/catalyst.git;a=commit;h=17b34223
Make sure we have ${destdir} on copy_to_chroot and simplify exec_in_chroot.
---
targets/support/functions.sh | 42 ++++++++++++++----------------------------
1 files changed, 14 insertions(+), 28 deletions(-)
diff --git a/targets/support/functions.sh b/targets/support/functions.sh
index 4ccad4c..60ad249 100644
--- a/targets/support/functions.sh
+++ b/targets/support/functions.sh
@@ -1,6 +1,7 @@
copy_to_chroot() {
local src_file=$1
local dest_dir=${clst_chroot_path}${2:-/tmp}
+ mkdir -p ${dest_dir}
echo "copying ${src_file##*/} to ${dest_dir}"
cp -pPR "${src_file}" "${dest_dir}"/
}
@@ -18,34 +19,19 @@ exec_in_chroot(){
# copies the file to the /tmp directory of the chroot
# and executes it.
local file_name=$(basename ${1})
- local subdir=${2#/}
-
- if [ "${subdir}" != "" ]
- then
- copy_to_chroot ${1} ${subdir}/tmp/
- chroot_path=${clst_chroot_path}${subdir}
- copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh \
- ${subdir}/tmp/
- echo "Running ${file_name} in chroot ${chroot_path}"
- ${clst_CHROOT} ${chroot_path} /tmp/${file_name} || exit 1
- else
- copy_to_chroot ${1} tmp/
- chroot_path=${clst_chroot_path}
- copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh \
- tmp/
- echo "Running ${file_name} in chroot ${chroot_path}"
- ${clst_CHROOT} ${chroot_path}/ /tmp/${file_name} || exit 1
- fi
-
- rm -f ${chroot_path}/tmp/${file_name}
- if [ "${subdir}" != "" ]
- then
- delete_from_chroot ${subdir}/tmp/${file_name}
- delete_from_chroot ${subdir}/tmp/chroot-functions.sh
- else
- delete_from_chroot tmp/chroot-functions.sh
- delete_from_chroot tmp/${file_name}
- fi
+ local subdir=${2}
+ local destdir=${subdir}/tmp
+ destdir=${destdir#/}
+
+ copy_to_chroot ${1} ${destdir}
+ chroot_path=${clst_chroot_path}${subdir}
+ copy_to_chroot ${clst_sharedir}/targets/support/chroot-functions.sh \
+ ${destdir}
+ echo "Running ${file_name} in chroot ${chroot_path}"
+ ${clst_CHROOT} ${chroot_path} ${destdir}/${file_name} || exit 1
+
+ delete_from_chroot ${destdir}/${file_name}
+ delete_from_chroot ${destdir}/chroot-functions.sh
}
#return codes
next reply other threads:[~2012-09-30 22:30 UTC|newest]
Thread overview: 225+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-30 22:29 Jorge Manuel B. S. Vicetto [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-23 21:26 [gentoo-commits] proj/catalyst:master commit in: targets/support/ Andreas K. Hüttel
2024-12-20 19:28 Andreas K. Hüttel
2024-12-20 19:28 Andreas K. Hüttel
2024-12-15 21:28 Andreas K. Hüttel
2024-12-07 13:26 Andreas K. Hüttel
2024-12-07 13:26 Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-10-13 20:33 Andreas K. Hüttel
2024-06-07 11:07 Ben Kohler
2024-05-14 13:27 Ben Kohler
2024-05-13 15:26 Ben Kohler
2024-05-13 15:07 Ben Kohler
2024-05-13 14:59 Ben Kohler
2024-05-02 17:58 Ben Kohler
2024-01-08 15:36 Ben Kohler
2023-09-03 20:03 Andreas K. Hüttel
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-03-31 13:28 Ben Kohler
2023-01-02 20:23 Ben Kohler
2022-12-27 11:21 Andreas K. Hüttel
2022-12-26 23:02 Andreas K. Hüttel
2022-11-28 20:38 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-11-22 21:19 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-28 20:38 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-11-22 21:19 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-20 0:21 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-11-17 23:42 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-20 0:21 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2022-04-20 23:26 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-11-17 23:42 Matt Turner
2022-11-17 23:42 Matt Turner
2022-03-15 14:36 Andreas K. Hüttel
2022-01-30 20:42 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2021-07-29 1:22 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2022-01-30 20:42 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2021-07-19 3:03 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2021-07-29 22:00 Matt Turner
2021-07-29 1:22 Matt Turner
2021-06-10 0:48 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2021-02-21 2:05 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-12-19 19:56 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-12-27 23:15 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-12-19 19:56 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-11-02 17:05 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-29 21:00 [gentoo-commits] proj/catalyst:wip/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-28 20:51 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-24 22:07 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-28 20:51 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-24 22:07 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-22 18:06 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-22 18:06 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-22 18:06 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-21 17:58 Matt Turner
2020-10-20 8:30 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-20 8:30 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-20 8:30 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-10-21 17:58 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-10-03 16:03 Matt Turner
2020-05-21 20:25 Matt Turner
2020-05-20 3:39 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-05-21 20:25 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-05-17 3:26 Matt Turner
2020-05-16 6:54 [gentoo-commits] proj/catalyst:pending/mattst88 " Matt Turner
2020-05-17 3:26 ` [gentoo-commits] proj/catalyst:master " Matt Turner
2020-05-05 0:38 Matt Turner
2020-05-05 0:38 Matt Turner
2020-05-05 0:38 Matt Turner
2020-04-23 16:15 Rick Farina
2020-04-17 19:57 Ben Kohler
2020-04-13 20:36 Matt Turner
2020-04-10 6:18 Matt Turner
2020-04-10 6:18 Matt Turner
2020-04-10 6:18 Matt Turner
2020-04-10 2:11 Matt Turner
2020-04-10 2:11 Matt Turner
2020-04-10 2:11 Matt Turner
2020-04-09 18:48 Matt Turner
2020-04-09 18:48 Matt Turner
2020-04-09 18:48 Matt Turner
2020-04-09 18:48 Matt Turner
2020-04-07 17:25 Matt Turner
2020-04-07 17:25 Matt Turner
2020-04-03 7:48 Matt Turner
2020-04-03 7:48 Matt Turner
2020-04-03 7:48 Matt Turner
2020-04-03 7:48 Matt Turner
2020-04-03 7:48 Matt Turner
2020-04-03 7:48 Matt Turner
2020-04-01 4:22 Matt Turner
2020-04-01 4:22 Matt Turner
2020-04-01 4:22 Matt Turner
2020-04-01 4:22 Matt Turner
2020-03-31 18:38 Matt Turner
2020-03-31 18:38 Matt Turner
2020-03-31 3:59 Matt Turner
2020-03-31 3:59 Matt Turner
2020-03-30 23:47 Matt Turner
2020-03-29 17:48 Matt Turner
2020-03-29 17:48 Matt Turner
2020-03-29 17:48 Matt Turner
2020-03-28 20:07 Matt Turner
2020-02-02 2:26 Matt Turner
2019-10-22 21:07 Ben Kohler
2019-07-03 16:20 Rick Farina
2019-01-15 20:09 Rick Farina
2019-01-15 20:09 Rick Farina
2018-12-21 14:14 Ben Kohler
2018-12-21 14:14 Ben Kohler
2018-11-20 21:32 Matt Turner
2018-11-16 18:00 Matt Turner
2018-11-16 17:53 Matt Turner
2018-11-16 17:52 Matt Turner
2018-10-17 19:26 Ben Kohler
2018-10-02 20:30 Ben Kohler
2018-10-02 20:21 Ben Kohler
2018-10-01 16:30 Brian Dolbec
2018-10-01 16:30 Brian Dolbec
2018-09-14 5:40 Matt Turner
2018-09-14 5:40 Matt Turner
2018-09-14 5:40 Matt Turner
2018-09-14 5:40 Matt Turner
2018-08-01 15:45 Richard Farina
2018-07-28 0:55 Richard Farina
2018-07-16 16:25 Richard Farina
2018-07-13 20:35 Ben Kohler
2018-07-13 20:00 Richard Farina
2018-07-13 18:11 Richard Farina
2018-07-03 20:35 Richard Farina
2018-07-03 20:35 Richard Farina
2018-07-03 1:33 Richard Farina
2018-07-02 18:55 Richard Farina
2018-03-05 20:45 Richard Farina
2018-03-05 20:45 Richard Farina
2018-03-05 20:37 Richard Farina
2018-03-05 20:27 Richard Farina
2018-03-05 20:21 Richard Farina
2018-03-05 20:21 Richard Farina
2018-01-05 16:41 Brian Dolbec
2017-12-15 23:35 Robin H. Johnson
2017-11-29 17:33 Brian Dolbec
2017-10-12 19:41 Robin H. Johnson
2017-03-11 22:22 Mike Frysinger
2016-09-19 3:27 Brian Dolbec
2016-09-15 0:57 Richard Farina
2016-07-16 17:35 Brian Dolbec
2016-07-09 3:46 Brian Dolbec
2016-04-21 17:05 Mike Frysinger
2016-04-21 5:38 Mike Frysinger
2016-03-27 4:55 Mike Frysinger
2015-09-23 18:45 Richard Farina
2015-09-23 17:55 Richard Farina
2015-09-20 19:46 Richard Farina
2015-09-10 19:39 Richard Farina
2015-09-03 1:51 Richard Farina
2015-09-02 21:25 Richard Farina
2015-08-31 20:07 Richard Farina
2015-08-31 18:49 Richard Farina
2015-08-31 4:03 Richard Farina
2015-08-31 3:45 Richard Farina
2015-08-31 3:36 Richard Farina
2015-05-24 0:08 Brian Dolbec
2015-05-24 0:08 Brian Dolbec
2015-05-24 0:08 Brian Dolbec
2015-05-24 0:08 Brian Dolbec
2015-05-24 0:08 Brian Dolbec
2015-05-24 0:08 Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24 0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24 0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24 0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24 0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-05-21 23:53 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-05-24 0:08 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2015-02-26 20:12 Brian Dolbec
2015-02-26 20:12 Brian Dolbec
2015-02-26 20:12 Brian Dolbec
2015-02-26 19:25 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2015-02-26 20:12 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2014-12-24 14:43 Raúl Porcel
2014-12-24 14:43 Raúl Porcel
2014-11-28 11:42 Raúl Porcel
2014-10-26 12:24 Raúl Porcel
2014-09-11 3:26 Brian Dolbec
2014-09-11 3:26 Brian Dolbec
2014-09-11 3:08 [gentoo-commits] proj/catalyst:pending " Brian Dolbec
2014-09-11 3:26 ` [gentoo-commits] proj/catalyst:master " Brian Dolbec
2014-05-05 19:17 Brian Dolbec
2013-10-26 20:10 Matt Turner
2013-10-26 20:10 Matt Turner
2013-08-06 0:40 Richard Farina
2013-08-02 6:16 Richard Farina
2013-08-02 5:27 Richard Farina
2013-08-02 5:26 Richard Farina
2013-07-30 8:08 Brian Dolbec
2013-07-30 7:08 Matt Turner
2013-07-25 5:33 Matt Turner
2013-05-28 20:20 Richard Farina
2013-04-14 17:30 Jorge Manuel B. S. Vicetto
2013-03-09 2:55 Matt Turner
2013-03-06 1:09 Matt Turner
2013-03-01 6:06 Matt Turner
2013-02-23 2:02 Matt Turner
2013-02-05 8:34 Matt Turner
2013-01-08 21:42 Richard Farina
2012-11-02 1:49 Jorge Manuel B. S. Vicetto
2012-11-02 1:19 Jorge Manuel B. S. Vicetto
2012-11-02 1:12 Richard Farina
2012-11-02 1:12 Richard Farina
2012-11-02 1:12 Richard Farina
2012-11-02 0:07 Richard Farina
2012-11-02 0:07 Richard Farina
2012-11-02 0:07 Richard Farina
2012-10-13 2:48 Jorge Manuel B. S. Vicetto
2012-10-01 11:10 Jorge Manuel B. S. Vicetto
2012-09-30 22:29 Jorge Manuel B. S. Vicetto
2012-09-28 1:35 Matt Turner
2012-08-23 5:55 Jorge Manuel B. S. Vicetto
2012-08-23 5:55 Jorge Manuel B. S. Vicetto
2012-04-22 2:43 Jorge Manuel B. S. Vicetto
2011-12-20 7:16 Jorge Manuel B. S. Vicetto
2011-09-01 23:22 Matt Turner
2011-07-14 0:48 Jorge Manuel B. S. Vicetto
2011-06-25 21:46 Jorge Manuel B. S. Vicetto
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=1349044106.17b34223a4afc1f070ac2fb9bdfb51e47c03db61.jmbsvicetto@gentoo \
--to=jmbsvicetto@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox