summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Fedora Unity) <kanarip@fedoraunity.org>2008-05-04 04:19:02 (GMT)
committerJeroen van Meeuwen (Fedora Unity) <kanarip@fedoraunity.org>2008-05-04 04:19:02 (GMT)
commit582a0680db74d9b1dab46c5fb3f5b7e5c9a4e01c (patch)
tree981d8b78fe5e659af761f449678a87ade189ca47
parent465a8fcf72ed202be095afa722a93d4cf125a2c7 (diff)
downloadrevisor-582a0680db74d9b1dab46c5fb3f5b7e5c9a4e01c.zip
revisor-582a0680db74d9b1dab46c5fb3f5b7e5c9a4e01c.tar.gz
revisor-582a0680db74d9b1dab46c5fb3f5b7e5c9a4e01c.tar.xz
Linking is way faster then copying
-rwxr-xr-xunity/scripts/make_me_source_iso.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/unity/scripts/make_me_source_iso.sh b/unity/scripts/make_me_source_iso.sh
index 21f537c..350b2f6 100755
--- a/unity/scripts/make_me_source_iso.sh
+++ b/unity/scripts/make_me_source_iso.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-DATA=/data/revisor/20080204
+DATA=/data/revisor/20080501
DIR1=$1
DIR2=$2
DIR3=$3
@@ -29,9 +29,9 @@ DIR_SOURCE=`echo $DIR1 | sed -e 's/i386/source/g' | sed -e 's/x86_64/source/g'`
mkdir -p $DATA/$DIR_SOURCE/os/source/SRPMS
mkdir -p $DATA/$DIR_SOURCE/iso
-[ -d "$DATA/$DIR1/os" ] && \cp -v $DATA/$DIR1/os/source/SRPMS/* $DATA/$DIR_SOURCE/os/source/SRPMS/.
-[ -d "$DATA/$DIR2/os" ] && \cp -v $DATA/$DIR2/os/source/SRPMS/* $DATA/$DIR_SOURCE/os/source/SRPMS/.
-[ ! -z "$3" ] && \cp -v $DATA/$DIR3/os/source/SRPMS/* $DATA/$DIR_SOURCE/os/source/SRPMS/.
+[ -d "$DATA/$DIR1/os" ] && ln -v $DATA/$DIR1/os/source/SRPMS/* $DATA/$DIR_SOURCE/os/source/SRPMS/. 2>/dev/null
+[ -d "$DATA/$DIR2/os" ] && ln $DATA/$DIR2/os/source/SRPMS/* $DATA/$DIR_SOURCE/os/source/SRPMS/. 2>/dev/null
+[ ! -z "$3" ] && ln $DATA/$DIR3/os/source/SRPMS/* $DATA/$DIR_SOURCE/os/source/SRPMS/. 2>/dev/null
iso=`ls $DATA/$DIR1/iso/*DVD*.iso | head -n 1`
basename=`echo $iso | sed -e 's/i386/source/g' | sed -e 's/x86_64/source/g'`