Skip to content

Commit

Permalink
prepare source tarball containing external js libs
Browse files Browse the repository at this point in the history
Task #229 - yacas fails to build on openSUSE Build Service
  • Loading branch information
grzegorzmazur committed Jan 28, 2017
1 parent 1ea1276 commit c04c114
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cyacas/packaging/rpm/prepare_tgz_for_obs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#/usr/bin/bash

YACAS_VERSION=1.6.1

wget https://github.com/grzegorzmazur/yacas/archive/v${YACAS_VERSION}.tar.gz
tar xzf v${YACAS_VERSION}.tar.gz
cd yacas-${YACAS_VERSION}/cyacas/yacas-gui/resources
mkdir external_packages
for u in `grep URL CMakeLists.txt | sed "s/ *URL *//"`; do wget $u; mv `basename $u` external_packages; done
mv CMakeLists.txt CMakeLists.txt.orig
sed "s@https://github.com/.*/archive@\$\{CMAKE_CURRENT_SOURCE_DIR\}/external_packages@" < CMakeLists.txt.orig > CMakeLists.txt
cd ../../../..
tar czf yacas-${YACAS_VERSION}-obs.tar.gz yacas-${YACAS_VERSION}
rm -rf yacas-${YACAS_VERSION}

0 comments on commit c04c114

Please sign in to comment.