diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-02-20 20:55:43 +0100 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-02-20 20:55:43 +0100 |
commit | 5c6cdad0ed119a2bd4c91390b23f9a5a4f4399fd (patch) | |
tree | 7829c00e2e1a5e4db1cd0096c792160411419332 /build.sh | |
download | dwm-master.tar.xz |
Signed-off-by: TheArcaneBrony <myrainbowdash949@gmail.com>
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..dfcf5c1 --- /dev/null +++ b/build.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env sh + +echo 'Cleaning up previous builds...' +rm -rf build +mkdir build + +echo 'Copying fresh sources' +cp -rf dwm-src/* build + +echo 'Enumerating patches...' +cd patches +find * | sort -n | tee ../build/patches.lst + +echo 'Applying patches...' +cd ../build +cat patches.lst | while read p; +do + echo "Applying patch \"${p}\"..." + if ! patch -sp1 < ../patches/$p; then + echo "Patch ${p} failed!!! Aborting." + exit 1 + fi +done |