Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:skeletk13:webgeostatistic
libwgsclient
prepare_source.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File prepare_source.sh of Package libwgsclient
#!/bin/bash package_name="libwgsclient" target_dir=$package_name if test $# -ge 1 then target_dir=$1 fi echo "Creating tar archive with the package source" echo "The target directory is specified in the first parameter. Default is $package_name. Follows symlinks." # Find the version of the package package_version="unknown" if test -r "$target_dir/VERSION" then package_version=$(cat "$target_dir/VERSION") fi # Find the exclusion file exclusion_file="tar_exclude" if test -r "$target_dir/exclude_from_source" then exclusion_file="$target_dir/exclude_from_source" fi echo "package name: $package_name" echo "package version: $package_version" echo "target directory: $target_dir" echo "exclusion file: $exclusion_file" # Create the archive ln -n $target_dir $package_name-$package_version tar -czhvf $package_name-$package_version.tar.gz -X $exclusion_file $package_name-$package_version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor