From 5c2dd97a91421e6e5f7e920579fcb88bb71e7fa7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 13 Jan 2013 18:41:31 -0500 Subject: use /usr/share/devtools/makechrootpkg.sh instead of *.gpl2 --- src/chroot-tools/librechroot.gpl2 | 41 --------------------------------------- 1 file changed, 41 deletions(-) delete mode 100755 src/chroot-tools/librechroot.gpl2 (limited to 'src/chroot-tools/librechroot.gpl2') diff --git a/src/chroot-tools/librechroot.gpl2 b/src/chroot-tools/librechroot.gpl2 deleted file mode 100755 index 1b5d90a..0000000 --- a/src/chroot-tools/librechroot.gpl2 +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -# Contains code derived from devtools' "makechrootpkg" - -# Copyright 2011-2012 The Arch Linux Development Team -# Copyright 2012 Luke Shumaker -# -# 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; version 2 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -sync() { - if [[ $CHROOTCOPY = root ]]; then - error "Cannot sync the root copy with itself" - exit 1 - fi - - lock_open_read 8 "$rootdir" \ - "Waiting for existing lock on \`$rootdir' to be released" - - stat_busy 'Creating clean working copy' - local use_rsync=false - if type -P btrfs >/dev/null; then - [[ -d $copydir ]] && btrfs subvolume delete "$copydir" &>/dev/null - btrfs subvolume snapshot "$rootdir" "$copydir" &>/dev/null || use_rsync=true - else - use_rsync=true - fi - - if $use_rsync; then - mkdir -p "$copydir" - rsync -a --delete -q -W -x "$rootdir/" "$copydir" - fi - stat_done - - lock_close 8 -} -- cgit v1.2.2