Subversion Repositories livecd

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 beyerle@PS 1
#!/bin/bash
2
# convert directory tree into .MO compressed file
3
# which can be used as a LiveCD module
4
#
5
# Author: Tomas M. <http://www.linux-live.org>
6
#
7
 
8
if [ -a ./liblinuxlive ]; then
9
   . ./liblinuxlive
10
else
11
   . /usr/lib/liblinuxlive || exit 1
12
fi
13
 
14
if [ ! -d "$1" -o "$2" = "" ]; then
15
   echo
16
   echo "Convert directory tree into .MO compressed module"
17
   echo "usage: $0 source_directory output_file.mo"
18
   exit 1
19
fi
20
 
21
create_module "$1" "$2"
22
if [ $? != 0 ]; then echo "error building compressed image"; exit 1; fi