File: make-all.sh

package info (click to toggle)
linuxdoc-tools 0.9.86-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,312 kB
  • sloc: ansic: 16,247; perl: 3,769; sh: 1,134; makefile: 813; lex: 566; lisp: 309
file content (49 lines) | stat: -rwxr-xr-x 1,140 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

#!/bin/sh
#
# $Id: make-all.sh,v 1.1.1.1 2001/05/24 15:57:39 sano Exp $
#
# make all available howtos into all available formats
# -----------------------------------------------------
# this assumes a directory structure with subdirectories named
# txt, html, info, ps under the $HOWTO directory that contains
# files of the format "something-howto"
#
# vince@halcyon.com
#
# ---------- start editing here ------------------------------

# where are the howtos
HOWTOS="/home/vince/howtos"

# what formats are available
FORMATS="txt html info ps"

# ---------- stop editing here -------------------------------

if [ -d $HOWTOS ]
then
   cd $HOWTOS

   #-- loop through the howto files ----
   for file in *howto
   do

     #-- loop over the various formats for this file
     for FORMAT in $FORMATS
     do
        if [ -d $HOWTOS/$FORMAT ]
        then
  	  cd $HOWTOS/$FORMAT
    	  echo "..................processing $file ($FORMAT)........................."
	  sgml2$FORMAT $HOWTOS/$file
        else
          echo "can't cd to $FORMAT subdirectory"
        fi
     done

  done

else
   echo "exiting - no dir $HOWTOS found..."
fi