~modemmanager/modemmanager/ubuntu.precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Mathieu Trudel-Lapierre
  • Date: 2012-02-08 20:44:16 UTC
  • Revision ID: mathieu@canonical.com-20120208204416-sxvezv6cdr4mgz8e
* upstream snapshot 2012-02-08 18:07:13 (GMT)
  + 635fce193ff3a1dbbdee2abab9aa3ab121df25f0
* debian/rules: as for NetworkManager, drop a few characters from the version
  number for git snapshots.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                echo "getting specific upstream revision/tag: $(1)"; \
65
65
                cd `ls | head -n 1`; git checkout -b orig $(1); \
66
66
                commit_id=`git log -n1 --abbrev-commit | grep '^commit ' | sed -e 's/commit //'`; \
67
 
                raw=`date --utc --date="$$(git log --pretty=fuller -n1 --date=rfc | grep CommitDate: | sed -e 's/CommitDate:[^0-9]*//')" "+%Y%m%dt%H%M%S"`; \
 
67
                raw=`date --utc --date="$$(git log --pretty=fuller -n1 --date=rfc | grep CommitDate: | sed -e 's/CommitDate:[^0-9]*//')" "+%Y%m%d%H%M"`; \
68
68
                if echo $(1) | grep -c "orig" > /dev/null || echo $(DEB_VERSION) | grep -c "git" > /dev/null; \
69
69
                then \
70
 
                        upstream_version=$(DEB_MAJOR_VERSION)git.$$raw.$$commit_id; \
 
70
                        upstream_version=$(DEB_MAJOR_VERSION)git$$raw.$$commit_id; \
71
71
                else \
72
72
                        upstream_version=$(DEB_UPSTREAM_VERSION); \
73
73
                fi; \