summaryrefslogtreecommitdiffstats
path: root/source/x/x11/build/increment-all-drivers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/build/increment-all-drivers.sh')
-rwxr-xr-xsource/x/x11/build/increment-all-drivers.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/x/x11/build/increment-all-drivers.sh b/source/x/x11/build/increment-all-drivers.sh
new file mode 100755
index 000000000..b3f7cbbab
--- /dev/null
+++ b/source/x/x11/build/increment-all-drivers.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+# A script to increment build numbers of all the drivers.
+# This is used when upgrading to a new major version of the X server.
+#
+# Any drivers that are newly added should not have a build file in
+# here (or it should contain "1"). The usual method is to run this
+# script and then remove the build files for any new driver versions.
+
+for DRVSRC in ../src/driver/* ; do
+ DRVBASENAME=$(basename $DRVSRC | rev | cut -f 2- -d - | rev)
+ ./increment.sh $DRVBASENAME
+done
+