blob: b81f20dde3ffb101e6bef669965a816f0ae277cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# alpine-chroot - Setup a Alpine Linux installation in a chroot.
# Copyright (c) 2011-2014 Fabian Affolter <fabian at affolter-engineering.ch>
#
# 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 <http://www.gnu.org/licenses/>.
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
|