File tree 7 files changed +40
-6
lines changed
7 files changed +40
-6
lines changed Original file line number Diff line number Diff line change
1
+ .gitattributes export-ignore
2
+ .gitignore export-ignore
Original file line number Diff line number Diff line change
1
+ * ~
2
+ arch-chroot
3
+ genfstab
4
+ pacstrap
5
+ arch-install-scripts- * .tar.gz *
Original file line number Diff line number Diff line change
1
+ V =20120618
2
+
3
+ PREFIX = /usr/local
4
+
5
+ BINPROGS = arch-chroot genfstab pacstrap
6
+
7
+ all : $(BINPROGS )
8
+
9
+ % : % .in Makefile common
10
+ @echo " GEN $@ "
11
+ @$(RM ) " $@ "
12
+ @m4 -P $@ .in > $@
13
+ @chmod a-w " $@ "
14
+ @chmod +x " $@ "
15
+
16
+ clean :
17
+ rm -f $(BINPROGS )
18
+
19
+ install :
20
+ install -dm0755 $(DESTDIR )$(PREFIX ) /bin
21
+ install -m0755 ${BINPROGS} $(DESTDIR )$(PREFIX ) /bin
22
+
23
+ uninstall :
24
+ for f in ${BINPROGS} ; do rm -f $( DESTDIR) $( PREFIX) /bin/$$ f; done
25
+
26
+ dist :
27
+ git archive --format=tar --prefix=arch-install-scripts-$(V ) / $(V ) | gzip -9 > arch-install-scripts-$(V ) .tar.gz
28
+ gpg --detach-sign --use-agent arch-install-scripts-$(V ) .tar.gz
29
+
30
+ .PHONY : all clean install uninstall dist
Original file line number Diff line number Diff line change 2
2
3
3
shopt -s extglob
4
4
5
- . ./ common
5
+ m4_include( common)
6
6
7
7
usage () {
8
8
cat << EOF
Original file line number Diff line number Diff line change 1
- #! /bin/bash
2
-
3
1
out() { printf "$1 $2\n" "${@:3}"; }
4
2
error() { out "==> ERROR:" "$@"; }
5
3
msg() { out "==>" "$@"; }
@@ -71,7 +69,6 @@ fstype_is_pseudofs() {
71
69
'spufs'
72
70
'sysfs'
73
71
'tmpfs')
74
-
75
72
in_array "$1" "${pseudofs_types[@]}"
76
73
}
77
74
Original file line number Diff line number Diff line change 2
2
3
3
shopt -s extglob
4
4
5
- . ./ common
5
+ m4_include( common)
6
6
7
7
# we need this because %q isn't the opposite of %b
8
8
mangle () {
Original file line number Diff line number Diff line change 10
10
11
11
shopt -s extglob
12
12
13
- source ./ common
13
+ m4_include( common)
14
14
15
15
declare newroot=/mnt
16
16
You can’t perform that action at this time.
0 commit comments