mirror of
https://github.com/helixarch/debtap
synced 2024-12-22 13:35:13 +01:00
Update
This commit is contained in:
parent
67b12fcbed
commit
c638872839
37
debtap
37
debtap
|
@ -3278,13 +3278,14 @@ if [ -e optional-dependencies-untranslated-names-only ]; then
|
|||
fi
|
||||
|
||||
# Appending ready translated names (if any needed) to the translated packages names list
|
||||
grep -q libgl1 tempfile02 && echo libgl >> final-check-list
|
||||
grep -q libglu1 tempfile02 && echo glu >> final-check-list
|
||||
grep -q default-jre tempfile02 && echo java-runtime >> final-check-list
|
||||
grep -q python:any tempfile02 && echo python >> final-check-list
|
||||
grep libpango tempfile02 | grep -v libpangomm | sed s"/`grep libpango tempfile02 | grep -v libpangomm | gawk '{print $1}' | head -1`/pango/g" | sed s'/=/= /g' | sed s'/>/> /g' | sed s'/</< /g' | sed s'/> =/>=/g' | sed s'/< =/<=/g' | sed s'/-multilib$\|^lib32-//g' >> final-check-list
|
||||
grep libpangomm tempfile02 | sed s"/`grep libpangomm tempfile02 | gawk '{print $1}' | head -1`/pangomm/g" | sed s'/=/= /g' | sed s'/>/> /g' | sed s'/</< /g' | sed s'/> =/>=/g' | sed s'/< =/<=/g' | sed s'/-multilib$\|^lib32-//g' >> final-check-list
|
||||
grep -q fonts-freefont-ttf tempfile02 && echo ttf-freefont >> final-check-list
|
||||
grep -q "^xlibs$\|^xlibs =\|^xlibs >\|^xlibs <" tempfile02 && echo libx11 >> final-check-list
|
||||
grep -q "^libgl1$\|^libgl1 =\|^libgl1 >\|^libgl1 <" tempfile02 && echo libgl >> final-check-list
|
||||
grep -q "^libglu1$\|^libglu1 =\|^libglu1 >\|^libglu1 <" tempfile02 && echo glu >> final-check-list
|
||||
grep -q "^default-jre$\|^default-jre =\|^default-jre >\|^default-jre <" tempfile02 && echo java-runtime >> final-check-list
|
||||
grep -q "^python:any$\|^python:any =\|^python:any >\|^python:any <" tempfile02 && echo python >> final-check-list
|
||||
grep "^libpango$\|^libpango =\|^libpango >\|^libpango <" tempfile02 | sed s"/`grep "^libpango$\|^libpango =\|^libpango >\|^libpango <" tempfile02 | gawk '{print $1}' | head -1`/pango/g" | sed s'/=/= /g' | sed s'/>/> /g' | sed s'/</< /g' | sed s'/> =/>=/g' | sed s'/< =/<=/g' | sed s'/-multilib$\|^lib32-//g' >> final-check-list
|
||||
grep "^libpangomm$\|^libpangomm =\|^libpangomm >\|^libpangomm <" tempfile02 | sed s"/`grep "^libpangomm$\|^libpangomm =\|^libpangomm >\|^libpangomm <" tempfile02 | gawk '{print $1}' | head -1`/pangomm/g" | sed s'/=/= /g' | sed s'/>/> /g' | sed s'/</< /g' | sed s'/> =/>=/g' | sed s'/< =/<=/g' | sed s'/-multilib$\|^lib32-//g' >> final-check-list
|
||||
grep -q "^fonts-freefont-ttf$\|^fonts-freefont-ttf =\|^fonts-freefont-ttf >\|^fonts-freefont-ttf <" tempfile02 && echo ttf-freefont >> final-check-list
|
||||
|
||||
# Stripping unnecessary symbols and words from packages versions
|
||||
grep -v "^$" final-check-list | while read line; do
|
||||
|
@ -3296,7 +3297,7 @@ cat tempfile13 | while read line; do
|
|||
for i in {git,bzr,darcs,hg}; do
|
||||
if [ $(echo "$line" | gawk '{print $3}' | grep -q $i; echo $?) -eq 0 ]; then
|
||||
echo "$(echo `echo "$line" | gawk '{print $1}'`-$i | sed s"/-$i-$i/-$i/") `echo "$line" | gawk '{print $2}'` `echo "$line" | gawk '{print $3}' | gawk -F "$i" '{print $2}' | gawk -F '-' '{print $1}'`" >> tempfile14
|
||||
fi
|
||||
fi
|
||||
done
|
||||
for i in {svn.r,svnr}; do
|
||||
if [ $(echo "$line" | gawk '{print $3}' | grep -q $i; echo $?) -eq 0 ]; then
|
||||
|
@ -3376,9 +3377,9 @@ if [ $(grep -q ^Replaces: control; echo $?) -eq 0 ]; then
|
|||
done
|
||||
done
|
||||
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
|
||||
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > replacements-initial-check-list
|
||||
grep -v 'xlibs\|libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > replacements-initial-check-list
|
||||
packages-names-translator
|
||||
for i in `sort -u tempfile20`; do echo "replaces = $i" >> .PKGINFO ; done
|
||||
for i in `sort -u tempfile20`; do echo "replaces = $i" >> .PKGINFO; done
|
||||
rm -rf *tempfile* replacements-initial-check-list final-check-list
|
||||
fi
|
||||
|
||||
|
@ -3390,9 +3391,9 @@ if [ $(grep -q ^Conflicts: control; echo $?) -eq 0 ]; then
|
|||
done
|
||||
done
|
||||
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
|
||||
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > conflicts-initial-check-list
|
||||
grep -v 'xlibs\|libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > conflicts-initial-check-list
|
||||
packages-names-translator
|
||||
for i in `sort -u tempfile20`; do echo "conflict = $i" >> .PKGINFO ; done
|
||||
for i in `sort -u tempfile20`; do echo "conflict = $i" >> .PKGINFO; done
|
||||
rm -rf *tempfile* conflicts-initial-check-list final-check-list
|
||||
fi
|
||||
|
||||
|
@ -3404,9 +3405,9 @@ if [ $(grep -q ^Provides: control; echo $?) -eq 0 ]; then
|
|||
done
|
||||
done
|
||||
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
|
||||
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > provisions-initial-check-list
|
||||
grep -v 'xlibs\|libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > provisions-initial-check-list
|
||||
packages-names-translator
|
||||
for i in `sort -u tempfile20`; do echo "provides = $i" >> .PKGINFO ; done
|
||||
for i in `sort -u tempfile20`; do echo "provides = $i" >> .PKGINFO; done
|
||||
rm -rf *tempfile* provisions-initial-check-list final-check-list
|
||||
fi
|
||||
|
||||
|
@ -3418,7 +3419,7 @@ if [ -e conffiles ]; then
|
|||
else
|
||||
sed -i -e s'/^bin\//usr\/bin\//g' -e s'/^sbin\//usr\/bin\//g' -e s'/^usr\/sbin\//usr\/bin\//g' -e s'/^usr\/games\//usr\/bin\//g' -e s'/^lib\//usr\/lib\//g' -e s'/^lib32\//usr\/lib32\//g' -e s'/^lib64\//usr\/lib\//g' -e s'/^usr\/lib64\//usr\/lib\//g' -e s'/^usr\/local\/sbin\//usr\/bin\//g' -e s'/^usr\/local\/games\//usr\/bin\//g' -e s'/^usr\/local\/lib64\//usr\/lib\//g' -e s'/^usr\/local\//usr\//g' tempfile
|
||||
fi
|
||||
for i in `sort -u tempfile`; do echo "backup = $i" >> .PKGINFO ; done
|
||||
for i in `sort -u tempfile`; do echo "backup = $i" >> .PKGINFO; done
|
||||
rm -rf tempfile
|
||||
fi
|
||||
|
||||
|
@ -3430,9 +3431,9 @@ if [ $(grep -q '^Depends:\|^Pre-Depends:' control; echo $?) -eq 0 ]; then
|
|||
done
|
||||
done
|
||||
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
|
||||
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > dependencies-initial-check-list
|
||||
grep -v 'xlibs\|libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > dependencies-initial-check-list
|
||||
packages-names-translator
|
||||
for i in `sort -u tempfile20`; do echo "depend = $i" >> .PKGINFO ; done
|
||||
for i in `sort -u tempfile20`; do echo "depend = $i" >> .PKGINFO; done
|
||||
rm -rf *tempfile* dependencies-initial-check-list final-check-list
|
||||
fi
|
||||
|
||||
|
@ -3444,7 +3445,7 @@ if [ $(grep -q '^Recommends:\|^Suggests:' control; echo $?) -eq 0 ]; then
|
|||
done
|
||||
done
|
||||
sed -e s'/(/ /g' -e s'/)//g' tempfile01 | sort > tempfile02
|
||||
grep -v 'libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > optional-dependencies-initial-check-list
|
||||
grep -v 'xlibs\|libgl1\|libglu1\|default-jre\|python:any\|libpango\|fonts-freefont-ttf\|dpkg\|apt-get\|aptitude' tempfile02 > optional-dependencies-initial-check-list
|
||||
packages-names-translator
|
||||
for i in `sort -u tempfile20`; do
|
||||
j=$(echo $i | sed s'/=\|>\|</ /' | gawk '{print $1}')
|
||||
|
|
Loading…
Reference in New Issue
Block a user