diff options
| author | Simon Rettberg | 2013-06-03 19:28:04 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2013-06-03 19:31:42 +0200 |
| commit | 899f98e303c2b060bcc4e306a8f97aced11f490b (patch) | |
| tree | 0dc9d2337b7fafffdb2955f7cc10ebb33b23b30d /remote/modules | |
| parent | Merge branch 'master' of simonslx:openslx-ng/tm-scripts (diff) | |
| download | tm-scripts-899f98e303c2b060bcc4e306a8f97aced11f490b.tar.gz tm-scripts-899f98e303c2b060bcc4e306a8f97aced11f490b.tar.xz tm-scripts-899f98e303c2b060bcc4e306a8f97aced11f490b.zip | |
[german] skeleton for module that activated german utf-8 locales, sets up the terminals properly and loads a german keymap
Diffstat (limited to 'remote/modules')
| -rw-r--r-- | remote/modules/german/german.build | 30 | ||||
| -rw-r--r-- | remote/modules/german/german.conf | 7 |
2 files changed, 37 insertions, 0 deletions
diff --git a/remote/modules/german/german.build b/remote/modules/german/german.build new file mode 100644 index 00000000..49ce31d7 --- /dev/null +++ b/remote/modules/german/german.build @@ -0,0 +1,30 @@ +fetch_source() { + : +} + +build() { + # Make sure uncompressed locales are present, so we can fetch german utf8 + if [ ! -d "/usr/lib/locale/de_DE.utf8" ]; then + pinfo "Generating locales..." + locale-gen --purge --no-archive || perror "Could not run locale-gen" + [ ! -d "/usr/lib/locale/de_DE.utf8" ] && perror "locale-gen was executed, but de_DE.utf8 does not exist." + fi + + # Put everything we build or get from the system in build dir + local FILELIST="$MODULE_DIR/list_copy_build" + rm -f "$FILELIST" + + # Copy required directories from source system to build dir + for FILE in ${REQUIRED_DIRECTORIES}; do + [ ! -d "${FILE}" ] && perror "Missing required directory $FILE" + echo ${FILE} >> "${FILELIST}" + done + + # Done collecting file and directory names, copy everything + tarcopy "$(sort -u "$FILELIST")" "$MODULE_BUILD_DIR" +} + +post_copy() { + : +} + diff --git a/remote/modules/german/german.conf b/remote/modules/german/german.conf new file mode 100644 index 00000000..ec22c760 --- /dev/null +++ b/remote/modules/german/german.conf @@ -0,0 +1,7 @@ +REQUIRED_CONTENT_PACKAGES="" +REQUIRED_BINARIES="" +REQUIRED_FILES="" +REQUIRED_DIRECTORIES=" + /usr/lib/locale/de_DE.utf8 +" + |
