libdwarf-lite/pull.sh

28 lines
847 B
Bash
Raw Normal View History

#!/bin/bash
echo "Removing files"
rm -rfv cmake src CMakeLists.txt COPYING
echo "Fetching"
git clone https://github.com/davea42/libdwarf-code.git
cd libdwarf-code
2024-01-10 17:02:33 -06:00
#git checkout "6216e185863f41d6f19ab850caabfff7326020d7" # v0.8.0
2024-02-07 21:30:12 -06:00
#git checkout "8b0bd09d8c77d45a68cb1bb00a54186a92b683d9" # v0.9.0
2024-04-27 14:10:16 -05:00
#git checkout "8cdcc531f310d1c5ae61da469d8056bdd36b77e7" # v0.9.1 + cmake fixes
git checkout "5e43a5ab73cb00c8a46660b361366a8c9c3c93c9" # v0.9.2
cd ..
echo "Copying files"
mkdir -p src/lib
mv -v libdwarf-code/CMakeLists.txt .
mv -v libdwarf-code/COPYING .
mv -v libdwarf-code/cmake .
mv -v libdwarf-code/src/lib/libdwarf src/lib
echo "Deleting cloned repo"
rm -rf libdwarf-code
echo "Cleaning up src/lib/libdwarf"
cd src/lib/libdwarf
rm -rfv ChangeLog* CHANGES CODINGSTYLE NEWS
cd ../../..
echo "Patching"
patch < patches/CMakeLists.patch
echo "Done"