#!/bin/sh -pe # # locale2papersize outputs the paper size "a4" or "letter" based on # the height and width in the locale that is passed as an argument. export LC_PAPER=$1 height=$( locale height ) width=$( locale width ) if [ "$height" = 279 -a "$width" = 216 ]; then size=letter else size=a4 fi echo $size
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
language-options | File | 2.78 KB | 0755 |
|
language-validate | File | 1.79 KB | 0755 |
|
language2locale | File | 1.75 KB | 0755 |
|
locale2papersize | File | 320 B | 0755 |
|
main-countries | File | 420 B | 0644 |
|
save-to-pam-env | File | 1.03 KB | 0755 |
|
set-language-helper | File | 732 B | 0755 |
|
update-langlist | File | 1.36 KB | 0755 |
|