- updated some release related scripts
This commit is contained in:
parent
54285daa4f
commit
1e65f6f74e
|
@ -22,9 +22,7 @@ diff --strip-trailing-cr --brief -r -x "*~" megaglest-data-$OLD_VERSION/megagles
|
||||||
|
|
||||||
cd megaglest-data-$VERSION
|
cd megaglest-data-$VERSION
|
||||||
|
|
||||||
if [ -e ../megaglest-data-$VERSION-fileslist.txt ]; then
|
[[ -f "../megaglest-data-$VERSION-fileslist.txt" ]] && rm "../megaglest-data-$VERSION-fileslist.txt"
|
||||||
rm ../megaglest-data-$VERSION-fileslist.txt
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat ../megaglest-data-$VERSION-changes.txt | while read line;
|
cat ../megaglest-data-$VERSION-changes.txt | while read line;
|
||||||
do
|
do
|
||||||
|
@ -42,20 +40,29 @@ addfilepos=`awk "BEGIN {print index(\"$line\", \"megaglest-data-$VERSION\")}"`
|
||||||
#echo [${line:$addfilepos-1}]
|
#echo [${line:$addfilepos-1}]
|
||||||
|
|
||||||
#echo [Looking for ONLY in: `expr match "$line" 'Only in '`]
|
#echo [Looking for ONLY in: `expr match "$line" 'Only in '`]
|
||||||
onlyinpos=`expr match "$line" 'Only in '`
|
onlyinpos=`expr match "$line" "Only in "`
|
||||||
#echo [$onlyinpos]
|
#echo [$onlyinpos]
|
||||||
|
|
||||||
if [ "$onlyinpos" -eq "8" ]; then
|
if [ "$onlyinpos" -eq "8" ]; then
|
||||||
|
|
||||||
echo **NOTE: Found ONLY IN string...
|
echo **NOTE: Found ONLY IN string... original line [${line}]
|
||||||
|
|
||||||
|
onlyinpos=`expr match "$line" "Only in megaglest-data-$VERSION"`
|
||||||
|
if [ "$onlyinpos" -ge "24" ]; then
|
||||||
line=${line:$addfilepos-1}
|
line=${line:$addfilepos-1}
|
||||||
line=${line/: //}
|
line=${line/: //}
|
||||||
line=${line/megaglest-data-$VERSION\/}
|
line=${line/megaglest-data-$VERSION\/}
|
||||||
|
|
||||||
echo New path: [$line]
|
echo New path: [$line]
|
||||||
|
else
|
||||||
|
echo **NOTE: skipping file since it is not in current version [${line}] match [$onlyinpos]
|
||||||
|
line=
|
||||||
|
echo New path: [$line]
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
|
|
||||||
|
echo Section B ... original line [${line}]
|
||||||
|
|
||||||
line=${line:$addfilepos-1}
|
line=${line:$addfilepos-1}
|
||||||
line=${line/ differ/}
|
line=${line/ differ/}
|
||||||
line=${line/megaglest-data-$VERSION\/}
|
line=${line/megaglest-data-$VERSION\/}
|
||||||
|
@ -68,7 +75,9 @@ fi
|
||||||
#echo compress_files = [$compress_files]
|
#echo compress_files = [$compress_files]
|
||||||
#echo ${line##megaglest-data-$VERSION*}
|
#echo ${line##megaglest-data-$VERSION*}
|
||||||
|
|
||||||
echo "${line} " >> ../megaglest-data-$VERSION-fileslist.txt
|
if [ -n "${line}" ]; then
|
||||||
|
echo "${line} " >> ../megaglest-data-$VERSION-fileslist.txt
|
||||||
|
fi
|
||||||
|
|
||||||
done
|
done
|
||||||
#exit
|
#exit
|
||||||
|
@ -77,12 +86,12 @@ files_list=`cat ../megaglest-data-$VERSION-fileslist.txt`
|
||||||
|
|
||||||
#echo compress_files = [$files_list]
|
#echo compress_files = [$files_list]
|
||||||
|
|
||||||
if [ -e ../$RELEASENAME.7z ]; then
|
[[ -f "../$RELEASENAME.tar.xz" ]] && rm "../$RELEASENAME.tar.xz"
|
||||||
rm ../$RELEASENAME.7z
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
echo Current Folder is [`pwd`]
|
||||||
#echo 7za a "../$RELEASENAME.7z" $files_list
|
#echo 7za a "../$RELEASENAME.7z" $files_list
|
||||||
7za a -mx=9 -ms=on -mhc=on "../$RELEASENAME.7z" $files_list
|
#7za a -mx=9 -ms=on -mhc=on "../$RELEASENAME.7z" $files_list
|
||||||
|
tar -cf - --add-file $files_list | xz -9e > ../$RELEASENAME.tar.xz
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ sync_support_libs(){
|
||||||
local _cp="/bin/cp"
|
local _cp="/bin/cp"
|
||||||
#local skip_deps="libm.so libpthread.so libstdc++.so libgcc_s.so libc.so libdl.so libX11.so libpulse libfusion libdirect libnvidia libXext librt libxcb libICE libSM libXtst libwrap libdbus libXau libXdmcp libnsl libFLAC libGL"
|
#local skip_deps="libm.so libpthread.so libstdc++.so libgcc_s.so libc.so libdl.so libX11.so libpulse libfusion libdirect libnvidia libXext librt libxcb libICE libSM libXtst libwrap libdbus libXau libXdmcp libnsl libFLAC libGL"
|
||||||
local skip_deps=""
|
local skip_deps=""
|
||||||
local keep_deps="libcurl libgnu libicu liblua libxerces libjpeg libpng"
|
local keep_deps="libcurl libgnu libicu liblua libxerces libjpeg libpng libopenal libwx libgtk libgdk libvorbis libogg"
|
||||||
|
|
||||||
local scan_via_skiplist=1
|
local scan_via_skiplist=1
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue