-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced Packaging for Debian/Ubuntu
Added script to generate all packages fix #42
- Loading branch information
Showing
7 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Package: CXXGraph | ||
Version: 0.1.4 | ||
Section: custom | ||
Priority: optional | ||
Architecture: all | ||
Essential: no | ||
Maintainer: zigrazor@gmail.com | ||
Description: Header-Only C++ Library for Graph Representation and Algorithms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
rm -rf CXXGraph/usr | ||
rm -rf *.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
#Clean | ||
./clean_deb.sh | ||
|
||
#Prepare | ||
mkdir -p CXXGraph/usr/include/ | ||
chmod -R 0755 CXXGraph/DEBIAN | ||
cp -r ../../include/* CXXGraph/usr/include/ | ||
|
||
#Packaging | ||
dpkg-deb --build CXXGraph | ||
|
||
#Rename | ||
mv CXXGraph.deb CXXGraph_$VERSION-$RELEASE.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
#variables | ||
MAJOR=$(cat ../include/CXXGraphConfig.h | grep CXXGraph_VERSION_MAJOR | awk '{ print $3 }') | ||
MINOR=$(cat ../include/CXXGraphConfig.h | grep CXXGraph_VERSION_MINOR | awk '{ print $3 }') | ||
PATCH=$(cat ../include/CXXGraphConfig.h | grep CXXGraph_VERSION_PATCH | awk '{ print $3 }') | ||
|
||
echo "Packaging version $MAJOR.$MINOR.$PATCH" | ||
|
||
export VERSION=${MAJOR}.${MINOR} | ||
export RELEASE=${PATCH} | ||
|
||
#tarballs | ||
echo "Create Tarballs..." | ||
./tarballs.sh | ||
echo "Tarballs Created" | ||
|
||
#rpm | ||
echo "Create RPM..." | ||
cd rpm | ||
./make_rpm.sh | ||
cd .. | ||
echo "RPM Created" | ||
|
||
echo "Create DEB..." | ||
#deb | ||
cd deb | ||
./make_deb.sh | ||
cd .. | ||
echo "DEB Created" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
tar --transform='flags=r;s|include/|/usr/include/|' -cvjSf CXXGraph.tar.bz2 ../include/* | ||
tar --transform='flags=r;s|include/|/usr/include/|' -cvjSf CXXGraph-$VERSION-$RELEASE.tar.bz2 ../include/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
tar -cvzf SOURCES/v0.1.4.tar.gz ../../include/* | ||
tar -cvzf SOURCES/v$VERSION.$RELEASE.tar.gz ../../include/* |