[Lunar-commits] r15993 - lunar-iso/trunk/scripts
Auke Kok
sofar at lunar-linux.org
Wed Aug 3 20:05:27 UTC 2005
Author: sofar
Date: 2005-08-03 20:05:27 +0000 (Wed, 03 Aug 2005)
New Revision: 15993
Modified:
lunar-iso/trunk/scripts/aaa_base
Log:
Major fix: the 'diff' algorithm was completely b0rked. -U0 gives the proper effect and makes the aaa_base tarball acceptably small.
Modified: lunar-iso/trunk/scripts/aaa_base
===================================================================
--- lunar-iso/trunk/scripts/aaa_base 2005-08-03 10:27:10 UTC (rev 15992)
+++ lunar-iso/trunk/scripts/aaa_base 2005-08-03 20:05:27 UTC (rev 15993)
@@ -7,8 +7,9 @@
unset VERBOSE
optimize
-echo "+ cleaning up file structure"
+echo "+ cleaning up (some) file structure items"
rm -rf $ISO_TARGET/var/cache/ccache/*
+rmdir /usr/lib/locale/*
chroot $ISO_TARGET ccache -C
chroot $ISO_TARGET ccache -M 256M
rm -rf $ISO_TARGET/etc/ssh/ssh_host_*key $ISO_TARGET/etc/ssh/ssh_host_*key.pub
@@ -53,7 +54,7 @@
find $ISO_TARGET/usr/include/{linux,asm} | sed "s:^$ISO_TARGET::g" >> $ISO_TARGET/.present
# add the install logs
cat $ISO_TARGET/var/log/lunar/install/* | sort | uniq > $ISO_TARGET/.tracked
-diff -Bad $ISO_TARGET/.present $ISO_TARGET/.tracked | grep -e "^< " | cut -c 3- > $ISO_TARGET/.aaa_base.list
+diff -U0 $ISO_TARGET/.tracked $ISO_TARGET/.present | grep '^\+[^+]' | sed 's/^+//g' > $ISO_TARGET/.aaa_base.list
echo "/etc/lunar/local/optimizations" >> $ISO_TARGET/.aaa_base.list
# make the tarball
More information about the Lunar-commits
mailing list