install in fakeroot and save database
authorTimo Savola <tsavola@movial.fi>
Fri, 16 May 2008 12:58:20 +0000 (15:58 +0300)
committerTimo Savola <tsavola@movial.fi>
Fri, 16 May 2008 12:58:20 +0000 (15:58 +0300)
bin/matrixify
scripts/run.sh

index a5b5722868dbe104074aa4148f00cd8e33bfe9dc..8209f26be7128441eec9d99a366e4020baf4e722 100755 (executable)
@@ -34,6 +34,7 @@ cd meta
 echo -e 'MATRIX_BUILD_STYLE\t= autotools' > plug
 echo 'depends = ""' > $NAME.package
 echo '*.log' > .gitignore
+echo 'fakedb' >> .gitignore
 
 git init -q
 git add -- plug $NAME.package .gitignore
index 88e60ded823146a24865ef89f6f9a35573a32bff..ba127ff01778a35d0aafa9f787b73be2d1d995d2 100644 (file)
@@ -6,12 +6,19 @@ then
        MAKE="make"
 fi
 
+if [ "$MATRIX_ACTION" = "install" ]
+then
+       FAKEROOT="fakeroot -s $MATRIX_WORKDIR/meta/fakedb"
+else
+       FAKEROOT=
+fi
+
 MAKEFILE="$MATRIX_SCRIPTDIR/matrix.mk"
 TARGET="__matrix_$MATRIX_ACTION"
 
 if [ "$MATRIX_VERBOSE" ]
 then
-       "$MAKE" \
+       $FAKEROOT $MAKE \
                --no-print-directory \
                -j "$MATRIX_JOBS" \
                -C "$MATRIX_WORKDIR" \
@@ -20,7 +27,7 @@ then
                2>&1 | tee $MATRIX_LOG
        exit ${PIPESTATUS[0]}
 else
-       exec "$MAKE" \
+       exec $FAKEROOT $MAKE \
                --no-print-directory \
                -j "$MATRIX_JOBS" \
                -C "$MATRIX_WORKDIR" \