File: get

package info (click to toggle)
libapache2-mod-auth-plain 2.0.54
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 116 kB
  • sloc: ansic: 252; sh: 45; makefile: 25
file content (26 lines) | stat: -rwxr-xr-x 447 bytes parent folder | download | duplicates (7)
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=apache2

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."