summaryrefslogtreecommitdiffstats
path: root/etc/pacman.d/gen-mirrorlist.sh
diff options
context:
space:
mode:
Diffstat (limited to 'etc/pacman.d/gen-mirrorlist.sh')
-rwxr-xr-xetc/pacman.d/gen-mirrorlist.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/pacman.d/gen-mirrorlist.sh b/etc/pacman.d/gen-mirrorlist.sh
new file mode 100755
index 00000000..cbb6362c
--- /dev/null
+++ b/etc/pacman.d/gen-mirrorlist.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+# gen-mirrorlist.sh
+# There's absolutely no way to make autoconf do this, so instead, autoconf will
+# call this script - simple enough.
+
+
+REPOS="current extra unstable release community"
+
+for i in $REPOS; do
+ rm -f $i
+ cat mirrorlist | sed "s|@@REPO@@|$i|g" > $i
+done