]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
setup.sh: Use generate() to create aptitude/config.
authorSimon Ruderich <simon@ruderich.org>
Mon, 27 Apr 2009 13:20:18 +0000 (15:20 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 27 Apr 2009 13:26:40 +0000 (15:26 +0200)
setup.sh

index e7d9ac67945457312da65ec8f1ddca5ef8b67f3f..e78989cbdcddd8f0a12d9a6e2d357fc21d3ad2c7 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -12,7 +12,9 @@ if [ `os` = darwin ]; then
 fi
 if [ `os` = debian ]; then
     # Necessary as aptitude rewrites the config file on every start.
-    cp debian/aptitude/config.real debian/aptitude/config
+    generate cat debian/aptitude/config .real
+    # aptitude/config uses // as comment instead of #.
+    sed -i 's|^#|//|' debian/aptitude/config
 
     link debian/aptitude ~/.aptitude
 fi