Skip to content
Permalink
Browse files

Automating snap for releases

  • Loading branch information
ralsina committed May 21, 2017
1 parent 7c9753c commit c6b6c7c6a4a8f75c023d1e845b2edf10577a9a33
Showing with 21 additions and 0 deletions.
  1. +21 −0 scripts/snapcraft/nikola.sh
@@ -0,0 +1,21 @@
#!/bin/sh

export HOME=$SNAP_USER_DATA

export I18NPATH=$SNAP/usr/share/i18n
export LOCPATH=$SNAP_USER_DATA

APPLANG=en_US
APPENC=UTF-8
APPLOC="$APPLANG.$APPENC"

# generate a locale so we get properly working charsets and graphics
if [ ! -e $SNAP_USER_DATA/$APPLOC ]; then
localedef --prefix=$SNAP_USER_DATA -f $APPENC -i $APPLANG $SNAP_USER_DATA/$APPLOC
fi

export LC_ALL=$APPLOC
export LANG=$APPLOC
export LANGUAGE=${APPLANG%_*}

$SNAP/bin/nikola "$@"

0 comments on commit c6b6c7c

Please sign in to comment.
You can’t perform that action at this time.