summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-22 11:00:15 +0200
committerErich Eckner <git@eckner.net>2022-09-30 08:43:49 +0200
commit0c62020cb7b17f13c95ee9c16c82dca89e79b6fc (patch)
treec427212bd3ed35171378cbbd2062e32eb2c49117
parentace95614e677c243098c702127ca06f75b025d3e (diff)
downloaddevtools-0c62020cb7b17f13c95ee9c16c82dca89e79b6fc.tar.xz
introduce i486 as well
-rw-r--r--.gitignore2
-rw-r--r--Makefile29
2 files changed, 30 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index c475e38..9a72ab6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,5 +22,7 @@ arch-nspawn
sogrep
doc/*.1
doc/*.7
+pacman-*-i486.conf
pacman-*-i686.conf
+makepkg-i486.conf
makepkg-i686.conf
diff --git a/Makefile b/Makefile
index 55c413b..7271f43 100644
--- a/Makefile
+++ b/Makefile
@@ -28,12 +28,19 @@ BINPROGS = \
$(IN_PROGS)
GENERATED_CONFIGFILES = \
+ pacman-extra-i486.conf \
pacman-extra-i686.conf \
+ pacman-testing-i486.conf \
pacman-testing-i686.conf \
+ pacman-staging-i486.conf \
pacman-staging-i686.conf \
+ pacman-staging-with-build-support-i486.conf \
pacman-staging-with-build-support-i686.conf \
+ pacman-kde-unstable-i486.conf \
pacman-kde-unstable-i686.conf \
+ pacman-gnome-unstable-i486.conf \
pacman-gnome-unstable-i686.conf \
+ makepkg-i486.conf \
makepkg-i686.conf
CONFIGFILES = \
@@ -69,21 +76,27 @@ COMMITPKG_LINKS = \
gnome-unstablepkg
ARCHBUILD_LINKS = \
+ extra-i486-build \
extra-i686-build \
extra-x86_64-build \
extra-x86_64_v3-build \
+ testing-i486-build \
testing-i686-build \
testing-x86_64-build \
testing-x86_64_v3-build \
+ staging-i486-build \
staging-i686-build \
staging-x86_64-build \
staging-x86_64_v3-build \
+ staging-with-build-support-i486-build \
staging-with-build-support-i686-build \
multilib-build \
multilib-testing-build \
multilib-staging-build \
+ kde-unstable-i486-build \
kde-unstable-i686-build \
kde-unstable-x86_64-build \
+ gnome-unstable-i486-build \
gnome-unstable-i686-build \
gnome-unstable-x86_64-build
@@ -118,13 +131,27 @@ man: $(MANS)
edit = sed -e "s|@pkgdatadir[@]|$(PREFIX)/share/devtools|g"
+makepkg-i486.conf: makepkg-x86_64.conf
+ @echo "GEN $@"
+ @sed 's,\(["=]\)x86[-_]64\([-" ]\),\1i486\2,g' "$<" > "$@"
+
makepkg-i686.conf: makepkg-x86_64.conf
@echo "GEN $@"
@sed 's,\(["=]\)x86[-_]64\([-" ]\),\1i686\2,g' "$<" > "$@"
+pacman-%-i486.conf: pacman-%.conf
+ @echo "GEN $@"
+ @sed " \
+ s,/mirrorlist\$$,\032,; \
+ /^Architecture = / s/^.*\$$/Architecture = i486/; \
+ " "$<" > "$@"
+
pacman-%-i686.conf: pacman-%.conf
@echo "GEN $@"
- @sed 's,/mirrorlist$$,\032,' "$<" > "$@"
+ @sed " \
+ s,/mirrorlist\$$,\032,; \
+ /^Architecture = / s/^.*$$/Architecture = i686/ \
+ " "$<" > "$@"
%: %.in Makefile lib/common.sh
@echo "GEN $@"