File: NewLayout

package info (click to toggle)
tkcdlayout 0.2-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 120 kB
  • ctags: 2
  • sloc: sh: 437; makefile: 34
file content (25 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#  NewLayout - shell script to create a CD Layout from ~/.tkcdlayout/config
#   can be used manually or from tkcdlayout

libdir=$(dirname $0)
. $libdir/config &&
. $libdir/Funcs &&
Warning &&
(
  if [ "$layout_type" = "taf" ]; then              # Title and files
       GetFiles
       Title
       WriteLines
  elif [ "$layout_type" = "btas" ]; then           # Big title and subtitle
       BigTitle
       Subtitle
  fi
  
  if [ "$page" = "back" ]; then
       BackBorders
  fi
  
  DoLayout
)