~ubuntu-branches/ubuntu/precise/kde-l10n-ar/precise

« back to all changes in this revision

Viewing changes to debian/build-l10n.sh

  • Committer: Package Import Robot
  • Author(s): Philip Muškovac
  • Date: 2012-03-11 13:48:07 UTC
  • mfrom: (1.12.12)
  • Revision ID: package-import@ubuntu.com-20120311134807-s810zjvrisnn8d38
Tags: 4:4.8.1-0ubuntu1
New upstream release (svn: 1283253, type: stable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 
87
87
if [ -e build ]; then
88
88
  echo "A already existing build/ directory was found, which indicates that there was a build done earlier."
89
 
  echo "Note: you can also run this script with -ncd to preserve only the tar.bz2 files from build/."
 
89
  echo "Note: you can also run this script with -ncd to preserve only the tar.xz files from build/."
90
90
  echo "Do you REALLY REALLY want to mess with the current build dir? (y/n)"
91
91
  read -e reply
92
92
  if [[ $reply != "y" ]]; then
98
98
# clean build dir
99
99
if [ $clean_dld -eq 0 ]; then
100
100
  find build/* -maxdepth 0 | grep -v build-area | xargs rm -rfv
101
 
  find build/build-area/* -maxdepth 0 | grep -v ".tar.bz2" | xargs rm -rfv
 
101
  find build/build-area/* -maxdepth 0 | grep -v ".tar.xz" | xargs rm -rfv
102
102
else
103
103
  rm -rvf build
104
104
  mkdir build
134
134
if [ $clean_dld -ne 0 ]; then
135
135
  if [[ "$subset" == "" ]]; then
136
136
    # get all
137
 
    $GET/${TYPE}/${KDEVERSION}/src/kde-l10n/kde-l10n-*.tar.bz2 .
 
137
    $GET/${TYPE}/${KDEVERSION}/src/kde-l10n/kde-l10n-*.tar.xz .
138
138
  else
139
139
    # only get subset
140
140
    for pkg in $subset; do
141
 
      $GET/${TYPE}/${KDEVERSION}/src/kde-l10n/kde-l10n-$pkg-*.tar.bz2 .
 
141
      $GET/${TYPE}/${KDEVERSION}/src/kde-l10n/kde-l10n-$pkg-*.tar.xz .
142
142
    done
143
143
  fi
144
144
fi
145
145
 
146
 
for tfile in `ls kde-l10n-*.tar.bz2`; do
 
146
for tfile in `ls kde-l10n-*.tar.xz`; do
147
147
  cd $WDIR
148
148
  cd build-area
149
149
 
150
 
  if [[ $tfile =~ kde-l10n-(.*)-$KDEVERSION.tar.bz2 ]]; then
 
150
  if [[ $tfile =~ kde-l10n-(.*)-$KDEVERSION.tar.xz ]]; then
151
151
    kdecode=${BASH_REMATCH[1]}
152
152
 
153
153
    # set mappings
158
158
    mapUbuntuNameToDep ubuntudep
159
159
 
160
160
    # remove any left overs from previous runs
161
 
    rm -r kde-l10n-${ubuntucode}_${VERSION}.orig.tar.bz2
 
161
    rm -r kde-l10n-${ubuntucode}_${VERSION}.orig.tar.xz
162
162
 
163
 
    ln -s $tfile kde-l10n-${ubuntucode}_${VERSION}.orig.tar.bz2
164
 
    tar xf kde-l10n-${ubuntucode}_${VERSION}.orig.tar.bz2
 
163
    ln -s $tfile kde-l10n-${ubuntucode}_${VERSION}.orig.tar.xz
 
164
    tar xf kde-l10n-${ubuntucode}_${VERSION}.orig.tar.xz
165
165
 
166
166
    i=0
167
167
    while read line; do