File: makeSource.sh

package info (click to toggle)
gccxml 0.9.0%2Bgit20140716-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 60,796 kB
  • ctags: 77,240
  • sloc: ansic: 793,461; cpp: 37,497; asm: 26,833; sh: 5,086; makefile: 4,700; lex: 589; awk: 566; perl: 334; yacc: 271; pascal: 86
file content (38 lines) | stat: -rwxr-xr-x 960 bytes parent folder | download
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
#! /bin/sh
#
# Assumes ../upstream is a git checkout of upstream

set -e

VERSION=0.9.0
DATE=`date +%Y%m%d`

dirname=gccxml-${VERSION}+git${DATE}.orig
tarname=gccxml_${VERSION}+git${DATE}.orig.tar.xz

echo "to run correctly this script needs the upstream git repository located in the ../upstream directory"
cd ../upstream
git pull

cd ..
rm -rf ${dirname}
cp -a upstream ${dirname}
rm -rf ${dirname}/.git*
find ${dirname} -name .gitattributes -exec rm {} \;

# Remove files with (a) no license, or (b) non-free license.
#
rm -rf ${dirname}/GCC_XML/Support/Borland
rm -f  ${dirname}/GCC/libiberty/xatexit.c

# Remove prebuilt windows binaries
rm -rf ${dirname}/GCC/config_cmake/nawk.exe
rm -rf ${dirname}/GCC_XML/VcInstall/vcCat.exe
rm -rf ${dirname}/GCC_XML/VcInstall/vcPatch.exe

# Build tarball
#
mkdir -p tarballs
GZIP="--best --no-name" tar cfJ tarballs/${tarname} ${dirname}
rm -rf ${dirname}
echo "your new package is located in ../tarballs/${tarname}"