← Back to team overview

relinux-dev team mailing list archive

Re: [Question #177918]: Specifying EXCLUDES

 

Question #177918 on relinux changed:
https://answers.launchpad.net/relinux/+question/177918

Hernan Foffani posted a new comment:
FWIW, a context diff:

--- /usr/bin/relinux.ori	2011-11-10 16:28:50.702950941 +0100
+++ /usr/bin/relinux	2011-11-10 16:31:51.830898101 +0100
@@ -366,14 +366,15 @@
     TEMP=`echo $WORKDIR | sed 's:^.::g'`
     EXCLUDES="$EXCLUDES $TEMP"
   fi
+  excludefrom=/tmp/relinuxexclude$$
   if [ "$EXCLUDES" != "" ]
   then
     for addvar in $EXCLUDES ; do
-      VAREXCLUDES="$VAREXCLUDES --exclude='$addvar' "
+      echo $addvar >> $excludefrom
     done
   fi
-  rsync $VAREXCLUDES -a /var/. $WORKDIR/dummysys/var/.
-  rsync $VAREXCLUDES -a /etc/. $WORKDIR/dummysys/etc/.
+  rsync --exclude-from=$excludefrom -a /var/. $WORKDIR/dummysys/var/.
+  rsync --exclude-from=$excludefrom -a /etc/. $WORKDIR/dummysys/etc/.
   echo "Done. Removing unneeded files, and changing others"
   rm -rf $WORKDIR/dummysys/etc/X11/xorg.conf*
   rm -rf $WORKDIR/dummysys/etc/resolv.conf

-- 
You received this question notification because you are a member of
relinux development team, which is an answer contact for relinux.