~ubuntu-branches/ubuntu/oneiric/kde-l10n-is/oneiric-updates

« back to all changes in this revision

Viewing changes to debian/build-l10n.sh

  • Committer: Bazaar Package Importer
  • Author(s): Harald Sitter
  • Date: 2011-07-13 19:24:03 UTC
  • mfrom: (1.12.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20110713192403-entmqmjkglj7zhgv
Tags: 4:4.6.90-0ubuntu1
* Enable easy switching between stable and unstable translations
* Make module desktop fetching more robust by trying to step into every
  element within the messages directory and if successful try to svn export
  a related desktop file
* Update build script for new branch name
* Update build script to use ftpmaster rather than ktown
* Introduce new targets:
  - get-l10n: called by the build script and
    depends on all other targets that need execution to get l10n
  - get-desktop: prerequisites all targets to get desktop file translations
  - get-messages: prerequisites all targets to get UI translations
  - get-messages-kdepim: gets all kdepim translations
  - get-desktop-sc: gets all desktop files for all modules in the source tree
  - get-desktop-extragear: gets all desktop files for extragera apps in main
    (as per list installed by pkg-kde-tools)
  - get-desktop-kdepim: copies kdepim's desktop file to kdepim_runtime
* Introduce new debian/config file which hold settings for rules and build
  script.
* Check presence of necessary debian/config values in debian/rules
* Fetch desktop files by regex in debian/rules (split modules have multiple
  desktop_* files in their SVN path)
* Bump standards version to 3.9.2
* Update VCS paths (now living in the kubuntu-packaging project)

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
  esac
51
51
}
52
52
 
53
 
GET="scp ftpubuntu@ktown.kde.org:/home/packager/ftpubuntu"
54
 
 
55
53
clean_dld=1
56
54
subset=""
57
55
 
77
75
    cd ..;;
78
76
  "build" )
79
77
    cd ..;;
80
 
  "kubuntu-kde-l10n-common" )
 
78
  "kde-l10n-common" )
81
79
    ;;
82
80
esac
83
81
 
 
82
if ! source debian/config ; then
 
83
    echo "could not source config!!"
 
84
    exit 1
 
85
fi
 
86
 
84
87
if [ -e build ]; then
85
88
  echo "A already existing build/ directory was found, which indicates that there was a build done earlier."
86
89
  echo "Note: you can also run this script with -ncd to preserve only the tar.bz2 files from build/."
104
107
cd build
105
108
WDIR=`pwd`
106
109
 
107
 
BRANCH="lp:~kubuntu-members/kubuntu-dev-tools/kde-l10n-common"
108
 
CO="common"
109
110
BOILERPLATE="# ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !#\n# DO NOT EVEN THINK ABOUT CHANGING THIS FILE DIRECTLY! ! ! !\n# PLEASE USE THE BZR BRANCH AS SEEN IN debian\/control\n# MAKE YOUR CHANGES THERE AND THEN RUN debian\/build-l10n.sh\n# kthxbai :)\n################################################################################\n################################################################################\n################################################################################\n################################################################################"
110
111
 
111
112
if [[ `bzr revno` != `bzr revno ${BRANCH}` ]]; then
133
134
if [ $clean_dld -ne 0 ]; then
134
135
  if [[ "$subset" == "" ]]; then
135
136
    # get all
136
 
    $GET/stable/${KDEVERSION}/src/kde-l10n/kde-l10n-*.tar.bz2 .
 
137
    $GET/${TYPE}/${KDEVERSION}/src/kde-l10n/kde-l10n-*.tar.bz2 .
137
138
  else
138
139
    # only get subset
139
140
    for pkg in $subset; do
140
 
      $GET/stable/${KDEVERSION}/src/kde-l10n/kde-l10n-$pkg-*.tar.bz2 .
 
141
      $GET/${TYPE}/${KDEVERSION}/src/kde-l10n/kde-l10n-$pkg-*.tar.bz2 .
141
142
    done
142
143
  fi
143
144
fi
194
195
################################################################################/$BOILERPLATE/g" $dfile
195
196
    done
196
197
 
197
 
    bzr-buildpackage -S --builder "make -f debian/rules get-desktop && dpkg-buildpackage -S -us -uc"
 
198
    bzr-buildpackage -S --builder "make -f debian/rules get-l10n && dpkg-buildpackage -S -us -uc"
198
199
  fi
199
200
done