~ubuntu-branches/debian/squeeze/extplorer/squeeze

« back to all changes in this revision

Viewing changes to debian/create_dfsg_from_upstream

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Goirand
  • Date: 2010-07-05 19:53:12 UTC
  • Revision ID: james.westby@ubuntu.com-20100705195312-rufrbggaoi3snr7z
Tags: 2.1.0b6+dfsg-1
Initial release. (Closes: #561872)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
set -x
 
5
 
 
6
VERS=2.1.0b6+dfsg
 
7
PKGNAME=extplorer
 
8
 
 
9
MYCWD=`pwd`
 
10
# Create a temp folder to create the dfsg version in
 
11
if [ -e /etc/redhat-release ] ; then
 
12
        MKTEMP="mktemp -d -p /tmp"
 
13
else
 
14
        MKTEMP="mktemp -d -t"
 
15
fi
 
16
 
 
17
TMPDIR=`${MKTEMP} ${PKGNAME}.XXXXXX`
 
18
DIRNAME=${PKGNAME}-${VERS}
 
19
mkdir -p ${TMPDIR}/${DIRNAME}
 
20
 
 
21
# Copy all in the dest dir
 
22
cp -auxf * ${TMPDIR}/${DIRNAME}
 
23
cd ${TMPDIR}/${DIRNAME}
 
24
# Extract the scripts.tar.gz, delete Debian packaged libs, fix perms
 
25
tar -xzf scripts.tar.gz
 
26
rm -rf scripts/editarea scripts/extjs3 scripts/yui scripts.tar.gz
 
27
chmod 644 scripts/*.php scripts/index.html scripts/extjs3-ext/*/*
 
28
chmod 755 scripts scripts/extjs3-ext scripts/extjs3-ext/*
 
29
rm -rf debian .git
 
30
# Remove php-* Debian packaged libs
 
31
rm -rf libraries/Auth libraries/Console libraries/geshi libraries/HTTP libraries/compat.php41x.php libraries/compat.php42x.php libraries/compat.php50x.php
 
32
rm -rf libraries/JSON.php libraries/MIME libraries/PEAR.php libraries/Tar.php libraries/System.php
 
33
rm -rf libraries/FTP.php libraries/FTP
 
34
# Create the archive, move it to dest, delete temp folder
 
35
cd ..
 
36
tar -czf ${PKGNAME}_${VERS}.orig.tar.gz ${DIRNAME}
 
37
cd ${MYCWD}
 
38
mv ${TMPDIR}/${PKGNAME}_${VERS}.orig.tar.gz ..
 
39
rm -rf ${TMPDIR}