File: init.in

package info (click to toggle)
quilt 0.63-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,868 kB
  • ctags: 153
  • sloc: sh: 5,792; perl: 1,236; lisp: 492; makefile: 431
file content (49 lines) | stat: -rw-r--r-- 1,048 bytes parent folder | download | duplicates (5)
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
#! @BASH@

#  This script is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License version 2 as
#  published by the Free Software Foundation.
#
#  See the COPYING and AUTHORS files for more details.

# Read in library functions
if [ "$(type -t patch_file_name)" != function ]
then
	if ! [ -r $QUILT_DIR/scripts/patchfns ]
	then
		echo "Cannot read library $QUILT_DIR/scripts/patchfns" >&2
		exit 1
	fi
	. $QUILT_DIR/scripts/patchfns
fi

usage()
{
	printf $"Usage: quilt init\n"
	if [ x$1 = x-h ]
	then
		printf $"
Initializes the quilt meta-data in the current sub-directory. This
command is optional as any quilt command creates these meta-data on
need, but it can still be interesting to specify easily the directory
that should be used as root directory before working from a
sub-directory."
		exit 0
	else
		exit 1
	fi
}

if [ $? -ne 0 ]
then
	usage
fi

create_db

printf $"The quilt meta-data is now initialized.\n"

### Local Variables:
### mode: shell-script
### End:
# vim:filetype=sh