mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-11-24 10:09:21 +01:00
merge mkfilelist into distribute (-l switch)
This commit is contained in:
parent
fdbd883ec6
commit
22799774a8
19
distribute
19
distribute
@ -54,10 +54,29 @@ make_distribution ()
|
||||
echo -e "\n </long_description>\n</app>" >> HomebrewFilter/meta.xml
|
||||
}
|
||||
|
||||
make_filelist()
|
||||
{
|
||||
|
||||
ARC=$1
|
||||
THM=$(basename $1 .zip)
|
||||
|
||||
unp -U $1
|
||||
|
||||
cd $THM/
|
||||
|
||||
for i in $(ls -1 *.png *.xml); do \
|
||||
echo "$THM/file:$i" >> temp ; \
|
||||
cat temp | tr "\n" "+" > filelist ; \
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
if [[ $1 == "-c" ]]; then
|
||||
make clean
|
||||
make -C boot clean
|
||||
make -C installer clean
|
||||
rm HomebrewFilter/meta.xml
|
||||
elif [[ $1 == "-l" ]]; then
|
||||
make_filelist $2
|
||||
else make_distribution
|
||||
fi
|
||||
|
11
mkfilelist
11
mkfilelist
@ -1,11 +0,0 @@
|
||||
ARC=$1
|
||||
THM=$(basename $1 .zip)
|
||||
|
||||
unp -U $1
|
||||
|
||||
cd $THM/
|
||||
|
||||
for i in $(ls -1 *.png *.xml); do \
|
||||
echo "$THM/file:$i" >> temp ; \
|
||||
cat temp | tr "\n" "+" > filelist ; \
|
||||
done
|
Loading…
Reference in New Issue
Block a user