Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
56b383b8
Commit
56b383b8
authored
Apr 27, 2015
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debian/roll-tarballs.sh: whitespace changes for consistency.
parent
06bdc272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
30 deletions
+30
-30
roll-tarballs.sh
debian/roll-tarballs.sh
+30
-30
No files found.
debian/roll-tarballs.sh
View file @
56b383b8
...
...
@@ -141,36 +141,36 @@ test -f replace.sh || test -f debian/Makefile.replace.sh && cp -v debian/Makefil
if
[
"x
$MODE
"
=
"xfull"
]
;
then
#### stuff we do not needed
UNUSED_FOLDERS
=
`
cat
debian/CODE-REDUCTION_CLEANUP-UNUSED
`
CLEANUP_FOLDERS
=
`
cat
debian/CODE-REDUCTION_CLEANUP-BRUTAL
`
UNNEEDED_BACKUPS
=
`
cat
debian/CODE-REDUCTION_CLEANUP-BACKUPFILES
`
PRESERVE_SYMLINKED_FILES
=
`
cat
debian/CODE-REDUCTION_PRESERVE-SYMLINKED
`
PRESERVE_INCLUDED_FILES
=
`
cat
debian/CODE-REDUCTION_PRESERVE-INCLUDED
`
PRESERVE_NEEDED_FILES
=
`
cat
debian/CODE-REDUCTION_PRESERVE-NEEDED
`
# remove folders that we do not want to roll into the tarball
rm
-Rf
".pc/"
rm
-Rf
"debian/"
mkdir
-p
.preserve/
for
path
in
${
PRESERVE_SYMLINKED_FILES
}
${
PRESERVE_INCLUDED_FILES
}
${
PRESERVE_NEEDED_FILES
}
;
do
if
[
!
-d
$path
]
;
then
path_dirname
=
$(
dirname
"
$path
"
)
else
path_dirname
=
"
$path
"
fi
mkdir
-vp
".preserve/
$path_dirname
"
cp
-av
"
$path
"
".preserve/
$path
"
done
for
path
in
${
UNUSED_FOLDERS
}
${
CLEANUP_FOLDERS
}
${
UNNEEDED_BACKUPS
}
;
do
rm
-R
"
$path
"
done
# re-create the to-be-preserved files
cp
-a
.preserve/
*
./
rm
-Rf
.preserve/
#### stuff we do not needed
UNUSED_FOLDERS
=
`
cat
debian/CODE-REDUCTION_CLEANUP-UNUSED
`
CLEANUP_FOLDERS
=
`
cat
debian/CODE-REDUCTION_CLEANUP-BRUTAL
`
UNNEEDED_BACKUPS
=
`
cat
debian/CODE-REDUCTION_CLEANUP-BACKUPFILES
`
PRESERVE_SYMLINKED_FILES
=
`
cat
debian/CODE-REDUCTION_PRESERVE-SYMLINKED
`
PRESERVE_INCLUDED_FILES
=
`
cat
debian/CODE-REDUCTION_PRESERVE-INCLUDED
`
PRESERVE_NEEDED_FILES
=
`
cat
debian/CODE-REDUCTION_PRESERVE-NEEDED
`
# remove folders that we do not want to roll into the tarball
rm
-Rf
".pc/"
rm
-Rf
"debian/"
mkdir
-p
.preserve/
for
path
in
${
PRESERVE_SYMLINKED_FILES
}
${
PRESERVE_INCLUDED_FILES
}
${
PRESERVE_NEEDED_FILES
}
;
do
if
[
!
-d
$path
]
;
then
path_dirname
=
$(
dirname
"
$path
"
)
else
path_dirname
=
"
$path
"
fi
mkdir
-vp
".preserve/
$path_dirname
"
cp
-av
"
$path
"
".preserve/
$path
"
done
for
path
in
${
UNUSED_FOLDERS
}
${
CLEANUP_FOLDERS
}
${
UNNEEDED_BACKUPS
}
;
do
rm
-R
"
$path
"
done
# re-create the to-be-preserved files
cp
-a
.preserve/
*
./
rm
-Rf
.preserve/
fi
# remove files, that we do not want in the tarballs (build cruft)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment