File: get

package info (click to toggle)
libapache-mod-auth-plain 1.3.31-3-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 100 kB
  • ctags: 33
  • sloc: ansic: 312; sh: 45; makefile: 21
file content (26 lines) | stat: -rwxr-xr-x 446 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
#!/bin/sh

# (c) 2001-2003 Piotr Roszatycki <dexter@debian.org> GPL

# This utility fetch original source

set -e

if [ -f ../debian/changelog ]; then
    cd ..
elif [ ! -f debian/changelog ]; then
    echo "can't find changelog file"
    exit 1
fi

SRCNAME=apache

srcversion=`head -n 1 debian/changelog | sed -e 's/.*(//' -e 's/-[^-]*).*//'`

cd ..

echo "N: Fetching source package..."

apt-get source -d $SRCNAME=$srcversion

echo "N: Done."