]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
debian/aptitude/config.real: Rename to config.in.
[config/dotfiles.git] / setup.sh
index f7c41b910ca7b87715b49dd9ca32ed22cb5ec90e..ce6b014852781efac5d73f55cc52f68fd1ba7fee 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -18,6 +18,8 @@
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
+set -e
+
 . ../lib.sh
 
 if test x"`os`" = xdarwin; then
@@ -27,10 +29,12 @@ if test x"`os`" = xdarwin; then
 fi
 if test x"`os`" = xdebian; then
     # Necessary as aptitude rewrites the config file on every start.
-    generate cat debian/aptitude/config .real
+    generate cat debian/aptitude/config .in
     # aptitude/config uses // as comment instead of #.
     sed -i 's|^#|//|' debian/aptitude/config
 
     link debian/aptitude ~/.aptitude
-    link debian/reportbugrc ~/.reportbugrc
+    if installed reportbug; then
+        link debian/reportbugrc ~/.reportbugrc
+    fi
 fi