# alpine-chroot - Setup a Alpine Linux installation in a chroot. # Copyright (c) 2011-2014 Fabian Affolter # # 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. # # 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. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . NAME = alpine-chroot FILE = alpine-chroot.sh VERSION = 0 RELEASE = 2 TAG = $(NAME)-$(VERSION).$(RELEASE) prefix = /usr install: install -Dp -m 0755 $(FILE) $(DESTDIR)/usr/bin/$(NAME) uninstall: rm -rf /usr/bin/$(NAME) tag: @git tag -a -f -m "Tag as $(TAG)" -f $(TAG) @echo "Tagged as $(TAG)" archive: tag @git archive --format=tar --prefix=$(NAME)-$(VERSION)/ HEAD > $(NAME)-$(VERSION).tar @bzip2 -f $(NAME)-$(VERSION).tar @echo "$(NAME)-$(VERSION).tar.bz2 created" @sha1sum $(NAME)-$(VERSION).tar.bz2 > $(NAME)-$(VERSION).sha1sum ## @scp $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION).sha1sum dev.alpinelinux.org:archive/$(NAME) @echo "Everything done, files uploaded to alpinelinux.org." clean: rm -f *~ *bz2