From b238cb229798bb0c88b6e8bf8c5cdee8d37d9592 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 28 May 2014 12:42:21 +0200 Subject: [PATCH] Remove "bup-save-user", it now lives in the "ax-unix" project "bup-save-user" isn't linux specific, so move it to the "ax-unix" project. --- Makefile | 2 +- bup/Makefile | 13 ------------ bup/save-user/Makefile | 19 ----------------- bup/save-user/bup-save-user | 42 ------------------------------------- 4 files changed, 1 insertion(+), 75 deletions(-) delete mode 100644 bup/Makefile delete mode 100644 bup/save-user/Makefile delete mode 100755 bup/save-user/bup-save-user diff --git a/Makefile b/Makefile index 0d50740..548a3c0 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,6 @@ # (at your option) any later version. # -SUBDIRS = btrfs bup lvm +SUBDIRS = btrfs lvm include Makefile.ax diff --git a/bup/Makefile b/bup/Makefile deleted file mode 100644 index ad0cabb..0000000 --- a/bup/Makefile +++ /dev/null @@ -1,13 +0,0 @@ -# -# ax-linux: Alex' Linux Tools & Scripts -# Copyright (c)2013 Alexander Barton (alex@barton.de) -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# - -SUBDIRS = save-user - -include ../Makefile.ax diff --git a/bup/save-user/Makefile b/bup/save-user/Makefile deleted file mode 100644 index b079868..0000000 --- a/bup/save-user/Makefile +++ /dev/null @@ -1,19 +0,0 @@ -# -# ax-linux: Alex' Linux Tools & Scripts -# Copyright (c)2013-2014 Alexander Barton (alex@barton.de) -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# - -ALL = bup-save-user - -include ../../Makefile.ax - -install-local: bup-save-user - install -d -o $(USER) -g $(GROUP) -m 755 \ - $(DESTDIR)$(PREFIX)/bin - install -p -o $(USER) -g $(GROUP) -m 755 bup-save-user \ - $(DESTDIR)$(PREFIX)/bin/bup-save-user diff --git a/bup/save-user/bup-save-user b/bup/save-user/bup-save-user deleted file mode 100755 index e341ca8..0000000 --- a/bup/save-user/bup-save-user +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/sh -# -# bup-save-user -- Save user data using bup(1) -# Copyright (c)2013-2014 Alexander Barton (alex@barton.de) -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# - -NAME=`basename "$0"` - -Usage() -{ - echo "Usage: $NAME"; echo - exit 1 -} - -[ $# -eq 0 ] || Usage - -if [ ! -d "$HOME/.bup" ]; then - echo "$NAME: \"$HOME/.bup\" does not exist. Initialite it first!" - exit 1 -fi - -paths="$HOME" -[ -n "$LOCAL_HOME" -a "$LOCAL_HOME" != "$HOME" -a -d "$LOCAL_HOME" ] \ - && paths="$paths $LOCAL_HOME" -[ -d "/var/spool/mail/$LOGNAME" ] \ - && paths="$paths /var/spool/mail/$LOGNAME" - -set -x - -bup index --update --xdev --exclude-rx="/.cache/." $paths || exit 1 - -bup save --name "$LOGNAME" $paths -exit_code=$? - -bup ls "$LOGNAME" || exit 1 - -exit $exit_code -- 2.39.2