mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 22:47:51 +00:00
tools/mkpkg: add script to get and pack 'flashrom' source package
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
9224dd9e28
commit
041002cd73
23
tools/mkpkg/mkpkg_flashrom
Executable file
23
tools/mkpkg/mkpkg_flashrom
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo "getting sources..."
|
||||||
|
svn co svn://coreboot.org/flashrom/trunk flashrom-latest
|
||||||
|
|
||||||
|
echo "getting version..."
|
||||||
|
cd flashrom-latest
|
||||||
|
SVN_REV=`LANG=C svn info 2>/dev/null | grep Revision: | sed -e 's/.*\: //'`
|
||||||
|
echo $SVN_REV
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
echo "copying sources..."
|
||||||
|
rm -rf flashrom-$SVN_REV
|
||||||
|
cp -R flashrom-latest flashrom-$SVN_REV
|
||||||
|
|
||||||
|
echo "cleaning sources..."
|
||||||
|
find flashrom-$SVN_REV -name .svn -exec rm -rf {} ";"
|
||||||
|
|
||||||
|
echo "packing sources..."
|
||||||
|
tar cvjf flashrom-$SVN_REV.tar.bz2 flashrom-$SVN_REV
|
||||||
|
|
||||||
|
echo "remove temporary sourcedir..."
|
||||||
|
rm -rf flashrom-$SVN_REV
|
Loading…
x
Reference in New Issue
Block a user