public inbox for gentoo-catalyst@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-catalyst] [PATCH 1/6] Concentrated some cp commands
@ 2017-04-12  8:43 Christos Kotsi
  2017-04-12  8:43 ` [gentoo-catalyst] [PATCH 2/6] updated gitignore with patches directory Christos Kotsi
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: Christos Kotsi @ 2017-04-12  8:43 UTC (permalink / raw
  To: gentoo-catalyst; +Cc: christo.kotsi

---
 targets/livecd-stage2/livecd-stage2-controller.sh | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/targets/livecd-stage2/livecd-stage2-controller.sh b/targets/livecd-stage2/livecd-stage2-controller.sh
index 10ee98e..16a9071 100755
--- a/targets/livecd-stage2/livecd-stage2-controller.sh
+++ b/targets/livecd-stage2/livecd-stage2-controller.sh
@@ -42,12 +42,9 @@ case $1 in
 					echo "${clst_livecd_type}. You should switch to using"
 					echo "generic-livecd instead."
 				fi
-				cp -pPR ${clst_sharedir}/livecd/files/generic.motd.txt \
-					${clst_sharedir}/livecd/files/universal.motd.txt \
-					${clst_sharedir}/livecd/files/minimal.motd.txt \
-					${clst_sharedir}/livecd/files/livecd.motd.txt \
-					${clst_sharedir}/livecd/files/gamecd.motd.txt \
-					${clst_chroot_path}/etc
+				cp -pPR ${clst_sharedir}/livecd/files/{generic.motd.txt,universal.motd.txt,minimal.motd.txt} ${clst_chroot_path}/etc
+				cp -pPR ${clst_sharedir}/livecd/files/{livecd.motd.txt,gamecd.motd.txt} ${clst_chroot_path}/etc
+
 			;;
 			*)
 				if [ -n "${clst_livecd_motd}" ]
@@ -147,8 +144,7 @@ case $1 in
 						exit 1
 					fi
 				fi
-				cp -f ${clst_snapshot_path} $1/snapshots
-				cp -f ${clst_snapshot_path}.DIGESTS $1/snapshots
+				cp -f ${clst_snapshot_path}{,.DIGESTS} $1/snapshots
 			;;
 			gentoo-release-livedvd)
 				targets="distfiles snapshots stages"
@@ -171,8 +167,7 @@ case $1 in
 							continue
 						;;
 						snapshots)
-							cp -f ${clst_snapshot_path} $1/snapshots
-							cp -f ${clst_snapshot_path}.DIGESTS $1/snapshots
+							cp -f ${clst_snapshot_path}{,.DIGESTS} $1/snapshots
 						;;
 						stages)
 							### TODO: make this copy stages
-- 
2.10.2



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-04-13 16:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-12  8:43 [gentoo-catalyst] [PATCH 1/6] Concentrated some cp commands Christos Kotsi
2017-04-12  8:43 ` [gentoo-catalyst] [PATCH 2/6] updated gitignore with patches directory Christos Kotsi
2017-04-12 19:20   ` Mike Frysinger
2017-04-12  8:43 ` [gentoo-catalyst] [PATCH 3/6] Concentrated export&delete_from_root lines Christos Kotsi
2017-04-12 19:24   ` Mike Frysinger
2017-04-12  8:43 ` [gentoo-catalyst] [PATCH 4/6] Added some loops Christos Kotsi
2017-04-12  8:43 ` [gentoo-catalyst] [PATCH 5/6] ln,echo and cp commands concentration Christos Kotsi
2017-04-12 19:24   ` Mike Frysinger
2017-04-12  8:43 ` [gentoo-catalyst] [PATCH 6/6] changed mkdir line for kernels/misc Christos Kotsi
2017-04-13 16:45 ` [gentoo-catalyst] [PATCH 1/6] Concentrated some cp commands Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox